/* Shared forum layout; only pages explicitly marked forum-refined opt in. */
html.forum-refined{--bg:#f5f6f8;--panel:#fff;--panel-2:#f7f8fa;--sidebar:#fff;--line:#e5e7eb;--ink:#20242c;--muted:#6b7280;--blue:#1769db;--chip:#f0f2f5;--hover:#f2f5fa}
html.forum-refined.dark-theme{--bg:#111317;--panel:#1a1d23;--panel-2:#20242c;--sidebar:#181b21;--line:#303640;--ink:#ebedf0;--muted:#a1a9b6;--blue:#72acff;--chip:#262b33;--hover:#252e3b}
html.forum-refined .app{grid-template-columns:360px minmax(0,1fr)}
html.forum-refined .sidebar{border-right:1px solid var(--line);background:var(--sidebar);box-shadow:none;backdrop-filter:none}
html.forum-refined .side-head{padding:20px 20px 12px!important;gap:16px!important}
html.forum-refined .forum-switch{display:flex;gap:4px;background:var(--chip);border-radius:10px;padding:4px}
html.forum-refined .forum-switch a{flex:1;text-align:center;font-size:12px;padding:8px 4px;border-radius:7px;color:var(--muted)}
html.forum-refined .forum-switch a[aria-current]{background:var(--panel);color:var(--ink);font-weight:600;box-shadow:0 1px 4px #0000000c}
html.forum-refined .brand-row{position:relative;min-height:34px}
html.forum-refined .brand{font-size:18px;letter-spacing:-.4px}
html.forum-refined .brand-mark{width:8px;height:24px;border-radius:3px;background:var(--blue);box-shadow:none}
html.forum-refined .new-post{border-radius:9px;height:42px!important;background:#1769db;color:#fff!important;font-size:14px}
html.forum-refined .search-box input{border-radius:9px;background:var(--panel-2);height:40px!important;font-size:13px}
html.forum-refined .side-filters{padding:6px 20px 17px!important;gap:14px!important;max-height:33dvh!important;overflow-y:auto!important}
html.forum-refined .filter-label{font-size:11px;letter-spacing:.4px;color:var(--muted);margin-bottom:8px}
html.forum-refined .chip-row{gap:5px}
html.forum-refined .chip{border-radius:6px;font-size:11px;padding:7px 9px!important;font-weight:500}
html.forum-refined .chip.active{background:color-mix(in srgb,var(--blue) 12%,transparent);color:var(--blue);font-weight:600}
html.forum-refined .post-list{padding:8px 12px!important;overscroll-behavior:contain;scrollbar-width:thin}
html.forum-refined .post-item{border-radius:9px;padding:15px 12px!important;margin-bottom:4px;border:1px solid transparent;gap:8px}
html.forum-refined .post-item.active{background:color-mix(in srgb,var(--blue) 7%,var(--panel));border-color:color-mix(in srgb,var(--blue) 22%,var(--line));box-shadow:inset 3px 0 var(--blue)}
html.forum-refined .post-title{font-size:14px;font-weight:600;line-height:1.5}
html.forum-refined .post-excerpt{font-size:12px;line-height:1.65;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
html.forum-refined .post-meta{font-size:10px;gap:6px;flex-wrap:wrap}
html.forum-refined .post-watermark{display:none}
html.forum-refined .post-thumb{border-radius:6px}
html.forum-refined .side-bottom{padding:12px 18px!important;box-shadow:none!important}
html.forum-refined .user-card{border-radius:9px;padding:8px!important}
html.forum-refined .side-links{font-size:11px;gap:13px}
html.forum-refined .topbar{min-height:76px;padding:16px 32px;border-bottom:1px solid var(--line);background:var(--panel);gap:14px}
html.forum-refined .top-title{min-width:0;flex:1}
html.forum-refined .top-title strong{font-size:15px;max-width:none;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.forum-refined .top-title span{font-size:11px;margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.forum-refined .top-actions{flex-shrink:0;gap:8px}
html.forum-refined .icon-button{width:36px;height:36px;border-radius:9px;background:var(--panel)}
html.forum-refined .pill-button{border-radius:8px;min-height:36px;font-size:12px}
html.forum-refined .pill-button.primary{background:#1769db;color:white}
html.forum-refined .content-scroll{background:var(--bg);scrollbar-width:thin;scroll-padding-top:24px}
html.forum-refined .reader{max-width:940px;padding:32px 34px 65px;margin:0 auto;width:100%}
html.forum-refined .reader > article,html.forum-refined .reader > .comments{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:38px 42px}
html.forum-refined .reader > .comments{margin-top:22px;padding-top:28px}
html.forum-refined .article-head{margin-bottom:28px;padding-bottom:24px;border-bottom:1px solid var(--line)}
html.forum-refined .article-title{font-size:clamp(25px,2.7vw,37px);line-height:1.3;letter-spacing:-.8px;margin:17px 0}
html.forum-refined .article-meta{font-size:12px;gap:8px 20px;line-height:1.8;flex-wrap:wrap;color:var(--muted)}
html.forum-refined .kicker{gap:7px;flex-wrap:wrap}
html.forum-refined .label,html.forum-refined .status-stamp{font-size:11px;padding:5px 9px;border-radius:6px;transform:none;letter-spacing:0}
html.forum-refined .markdown-body{font-size:15px;line-height:1.95;overflow-wrap:anywhere}
html.forum-refined .markdown-body h2{font-size:23px;margin-top:30px;letter-spacing:-.4px}
html.forum-refined .markdown-body p{margin:14px 0}
html.forum-refined .markdown-body pre{max-width:100%;overflow:auto;border-radius:8px}
html.forum-refined .gallery{margin:20px 0;gap:10px}
html.forum-refined .comments-head h2{font-size:19px}
html.forum-refined .comment{padding:18px 0;border-radius:0;border:0;border-bottom:1px solid var(--line);background:transparent;box-shadow:none}
html.forum-refined .comment.is-reply{margin-left:24px;border-left:2px solid var(--line);padding-left:16px}
html.forum-refined .comment-body{font-size:14px;line-height:1.8}
html.forum-refined .comment-meta{font-size:11px;flex-wrap:wrap;gap:8px}
html.forum-refined .textarea{border-radius:9px;min-height:110px}
html.forum-refined .empty-state{min-height:55vh;display:grid;place-items:center}
html.forum-refined .empty-card{max-width:480px;text-align:center;background:var(--panel);border:1px solid var(--line);padding:40px;border-radius:14px;box-shadow:none}
html.forum-refined .empty-card h1{font-size:24px;line-height:1.4}
html.forum-refined .empty-card p{font-size:13px;line-height:1.8;color:var(--muted)}
html.forum-refined .forum-close,html.forum-refined .forum-backdrop{display:none}
html.forum-refined :focus-visible{outline:3px solid var(--blue);outline-offset:3px}
@media(max-width:1100px) and (min-width:901px){html.forum-refined .app{grid-template-columns:320px minmax(0,1fr)}html.forum-refined .reader{padding:24px}html.forum-refined .reader > article,html.forum-refined .reader > .comments{padding:28px}}
@media(max-width:900px){
html.forum-refined .app{grid-template-columns:minmax(0,1fr)}
html.forum-refined .sidebar{width:min(360px,92vw)!important;z-index:70!important}
html.forum-refined .sidebar:not(.active){visibility:hidden}
html.forum-refined .forum-close{display:block;order:3;background:var(--chip);border:0;border-radius:8px;width:34px;height:34px;font-size:23px;cursor:pointer;flex-shrink:0}
html.forum-refined .brand-row{gap:8px}
html.forum-refined .brand{flex:1;font-size:16px}
html.forum-refined .forum-backdrop:not([hidden]){display:block;position:fixed;inset:0;background:#10182766;z-index:65;border:0;backdrop-filter:blur(2px)}
html.forum-refined .topbar{min-height:70px;padding:12px 14px;gap:10px}
html.forum-refined .top-title strong{font-size:13px;max-width:none}
html.forum-refined .top-title span{font-size:10px;max-width:40vw}
html.forum-refined .top-actions{gap:5px}
html.forum-refined #share-button{display:inline-flex;padding:7px;font-size:11px}
html.forum-refined .reader{padding:18px 14px 50px}
html.forum-refined .reader > article,html.forum-refined .reader > .comments{padding:25px 21px;border-radius:11px}
html.forum-refined .article-title{font-size:26px;letter-spacing:-.5px}
html.forum-refined .article-meta{font-size:11px;gap:5px 12px}
html.forum-refined .markdown-body{font-size:14px;line-height:1.85}
html.forum-refined .empty-card{padding:28px 20px}
}
@media(max-height:650px){html.forum-refined .side-head{padding:9px 14px!important;gap:7px!important}html.forum-refined .side-filters{padding:5px 14px 9px!important;gap:8px!important;max-height:25dvh!important}html.forum-refined .forum-switch a{padding:5px}html.forum-refined .side-bottom{padding:6px 14px!important}}
@media(prefers-reduced-motion:reduce){html.forum-refined *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
html.forum-refined .user-main{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0}
