body[data-route="forum"] { --forum-radius:20px; --forum-card:var(--surface-solid,var(--surface)); --forum-muted:var(--surface-2); }
body[data-route="forum"] .forum-main { min-width:0; }
body[data-route="forum"] #viewRoot { width:100%; max-width:none; min-width:0; margin:0; }
.forum-page { width:100%; max-width:none; margin:0; padding:0 24px 72px; color:var(--text); font-family:var(--font-body); }
.forum-page * { box-sizing:border-box; }
.forum-page :is(a,button,input,textarea,select) { font:inherit; }
.forum-page a { color:inherit; }
.forum-eyebrow { margin:0 0 7px; color:var(--gold-deep); font-size:10px; font-weight:850; letter-spacing:.15em; }
.forum-breadcrumbs { min-height:30px; margin:0 0 18px; display:flex; align-items:center; gap:9px; color:var(--text-faint); font-size:11px; overflow:hidden; }
.forum-breadcrumbs a { display:inline-flex; align-items:center; gap:7px; color:var(--text-soft); text-decoration:none; }
.forum-breadcrumbs > span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.forum-breadcrumbs > i { font-size:8px; }

.forum-hero { position:relative; min-height:300px; padding:44px; display:grid; grid-template-columns:minmax(0,1fr) 270px; gap:32px; align-items:end; overflow:hidden; background:linear-gradient(125deg,#11161a 0%,#171d21 56%,#25251f 100%); border:1px solid color-mix(in srgb,var(--gold) 25%,#2d353b); border-radius:28px; box-shadow:var(--shadow); }
.forum-hero::before { content:""; position:absolute; inset:auto -90px -170px auto; width:430px; aspect-ratio:1; border:1px solid rgba(233,200,137,.22); border-radius:50%; box-shadow:0 0 0 65px rgba(233,200,137,.035),0 0 0 130px rgba(233,200,137,.025); }
.forum-hero::after { content:""; position:absolute; inset:0; pointer-events:none; background:linear-gradient(110deg,transparent 58%,rgba(233,200,137,.055)); }
.forum-hero-copy,.forum-hero-stats { position:relative; z-index:1; }
.forum-hero .forum-eyebrow { color:var(--gold); }
.forum-hero h1 { max-width:740px; margin:0; color:#fff; font:850 clamp(34px,4.6vw,58px)/1.02 var(--font-display); letter-spacing:-.045em; }
.forum-hero-copy > p:not(.forum-eyebrow) { max-width:670px; margin:18px 0 0; color:#aeb7bf; font-size:14px; line-height:1.7; }
.forum-hero-actions { margin-top:26px; display:flex; flex-wrap:wrap; gap:10px; }
.forum-hero-stats { display:grid; grid-template-columns:repeat(3,1fr); background:rgba(11,15,18,.64); border:1px solid rgba(255,255,255,.11); border-radius:18px; backdrop-filter:blur(12px); }
.forum-hero-stats div { min-width:0; padding:18px 10px; text-align:center; }
.forum-hero-stats div+div { border-left:1px solid rgba(255,255,255,.1); }
.forum-hero-stats strong { display:block; color:var(--gold-bright); font-size:20px; }
.forum-hero-stats span { display:block; margin-top:3px; color:#87919a; font-size:9px; font-weight:700; }

.forum-btn { min-height:43px; padding:0 16px; display:inline-flex; align-items:center; justify-content:center; gap:8px; border:1px solid transparent; border-radius:12px; font-size:11px!important; font-weight:850!important; line-height:1; text-decoration:none!important; cursor:pointer; transition:transform .18s ease,background .18s ease,border-color .18s ease,color .18s ease; }
.forum-btn:hover { transform:translateY(-1px); }
.forum-btn-primary { color:#000!important; background:linear-gradient(135deg,var(--gold-bright),var(--gold)); border-color:color-mix(in srgb,var(--gold-deep) 60%,transparent); box-shadow:0 8px 22px rgba(123,83,24,.15); }
.forum-btn-secondary { color:var(--text)!important; background:var(--forum-card); border-color:var(--line); }
.forum-hero .forum-btn-secondary { color:#ecf0f3!important; background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.16); }
.forum-btn.is-active { color:var(--gold-deep)!important; background:var(--gold-wash); border-color:var(--gold); }
/* Zlote wypelnienie obserwowania pochodzi ze wspolnego stylu; stan forum nie moze rozjasniac tekstu. */
.forum-btn.global-follow-button:is(.following,.active) { color:#000!important; }
.forum-btn-primary :is(i,span,strong,small,b) { color:inherit!important; }
.forum-btn:focus-visible,.forum-page button:focus-visible,.forum-page a:focus-visible,.forum-page input:focus-visible,.forum-page textarea:focus-visible,.forum-page select:focus-visible { outline:3px solid color-mix(in srgb,var(--gold) 38%,transparent); outline-offset:2px; }

.forum-search { height:62px; margin:-14px 28px 35px; padding:8px 8px 8px 18px; position:relative; z-index:2; display:flex; align-items:center; gap:12px; background:var(--forum-card); border:1px solid var(--line); border-radius:17px; box-shadow:var(--shadow-soft); }
.forum-search > i { color:var(--gold-deep); }
.forum-search input { min-width:0; flex:1; color:var(--text); background:transparent; border:0; outline:0; font-size:12px; }
.forum-search button { height:44px; padding:0 20px; color:#000; background:var(--gold); border:0; border-radius:11px; font-size:11px; font-weight:850; cursor:pointer; }
.forum-notifications { margin:0 0 28px; padding:17px; background:var(--forum-card); border:1px solid var(--line); border-radius:20px; box-shadow:var(--shadow-soft); }
.forum-notifications>header { margin-bottom:11px; display:flex; align-items:end; justify-content:space-between; gap:12px; }
.forum-notifications h2 { margin:0; font-size:17px; font-weight:850; }
.forum-notifications>header>span { color:var(--text-faint); font-size:8px; }
.forum-notifications>div { display:grid; gap:6px; }
.forum-notifications a { min-height:58px; padding:8px 10px; display:grid; grid-template-columns:38px minmax(0,1fr) auto 25px; align-items:center; gap:10px; color:var(--text); background:var(--forum-muted); border:1px solid var(--line); border-radius:12px; text-decoration:none; }
.forum-notifications a.is-unread { background:linear-gradient(100deg,var(--gold-wash),var(--forum-muted)); border-color:color-mix(in srgb,var(--gold) 50%,var(--line)); }
.forum-notifications img { width:38px; height:38px; object-fit:cover; border-radius:50%; }
.forum-notifications a>span { min-width:0; display:grid; grid-template-columns:auto 1fr; column-gap:4px; }
.forum-notifications a b,.forum-notifications a small { font-size:8px; }
.forum-notifications a small { color:var(--text-faint); }
.forum-notifications a strong { grid-column:1/-1; margin-top:3px; font-size:10px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.forum-notifications time { color:var(--text-faint); font-size:8px; white-space:nowrap; }
.forum-notifications a>i { color:var(--gold-deep); font-size:9px; }

.forum-section { margin-top:30px; }
.forum-section-head { margin-bottom:16px; display:flex; align-items:end; justify-content:space-between; gap:18px; }
.forum-section-head h2 { margin:0; color:var(--text); font:820 clamp(24px,3vw,34px)/1.1 var(--font-display); letter-spacing:-.035em; }
.forum-section-head > span { color:var(--text-faint); font-size:10px; font-weight:750; }
.forum-section-head select { min-height:42px; padding:0 34px 0 13px; color:var(--text-soft); background:var(--forum-card); border:1px solid var(--line); border-radius:11px; outline:0; font-size:10px; font-weight:750; }
.forum-category-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(340px,1fr)); gap:12px; }
.forum-category-card { min-height:150px; padding:20px; display:grid; grid-template-columns:52px minmax(0,1fr) auto; grid-template-rows:1fr auto; gap:14px 16px; overflow:hidden; position:relative; color:var(--text); background:var(--forum-card); border:1px solid var(--line); border-radius:var(--forum-radius); box-shadow:var(--shadow-soft); text-decoration:none; transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease; }
.forum-category-card::after { content:""; width:130px; aspect-ratio:1; position:absolute; right:-70px; bottom:-80px; background:color-mix(in srgb,var(--forum-category) 16%,transparent); border:1px solid color-mix(in srgb,var(--forum-category) 24%,transparent); border-radius:50%; }
.forum-category-card:hover { transform:translateY(-3px); border-color:color-mix(in srgb,var(--forum-category) 55%,var(--line)); box-shadow:var(--shadow); }
.forum-category-icon { width:52px; height:52px; display:grid; place-items:center; color:color-mix(in srgb,var(--forum-category) 78%,var(--text)); background:color-mix(in srgb,var(--forum-category) 15%,var(--surface)); border:1px solid color-mix(in srgb,var(--forum-category) 34%,var(--line)); border-radius:16px; font-size:19px; }
.forum-category-copy { min-width:0; display:block; }
.forum-category-copy strong { display:block; margin:2px 0 7px; font-size:15px; font-weight:850; }
.forum-category-copy small { display:block; color:var(--text-soft); font-size:10px; line-height:1.55; }
.forum-category-meta { grid-column:2/4; display:flex; align-items:center; gap:5px; color:var(--text-faint); font-size:9px; font-weight:700; }
.forum-category-meta b { color:var(--text); font-size:11px; }
.forum-category-meta i { margin-left:auto; color:color-mix(in srgb,var(--forum-category) 80%,var(--text)); }

.forum-category-hero,.forum-topic-hero { padding:25px; display:flex; align-items:center; gap:18px; background:linear-gradient(125deg,color-mix(in srgb,var(--forum-category) 10%,var(--forum-card)),var(--forum-card)); border:1px solid color-mix(in srgb,var(--forum-category) 35%,var(--line)); border-radius:24px; box-shadow:var(--shadow-soft); }
.forum-category-hero > div { min-width:0; flex:1; }
.forum-category-hero h1 { margin:0; font:850 clamp(28px,4vw,42px)/1.04 var(--font-display); letter-spacing:-.04em; }
.forum-category-hero div>p:last-child { margin:9px 0 0; color:var(--text-soft); font-size:11px; line-height:1.55; }

.forum-topic-section { padding:20px; background:var(--forum-card); border:1px solid var(--line); border-radius:24px; box-shadow:var(--shadow-soft); }
.forum-topic-list { display:grid; gap:8px; }
.forum-topic-row { min-width:0; min-height:112px; padding:15px; display:grid; grid-template-columns:48px minmax(0,1fr) 160px 145px 34px; gap:14px; align-items:center; background:var(--forum-muted); border:1px solid var(--line); border-radius:15px; transition:background .18s ease,border-color .18s ease; }
.forum-topic-row:hover { background:color-mix(in srgb,var(--forum-muted) 74%,var(--gold-wash)); border-color:var(--line-strong); }
.forum-topic-avatar img { width:48px; height:48px; display:block; object-fit:cover; border:2px solid var(--forum-card); border-radius:50%; box-shadow:0 0 0 1px var(--line); }
.forum-topic-copy { min-width:0; }
.forum-topic-badges { min-height:17px; display:flex; align-items:center; flex-wrap:wrap; gap:6px; }
.forum-topic-badges :is(span,a) { padding:3px 7px; color:var(--gold-deep); background:var(--gold-wash); border:1px solid color-mix(in srgb,var(--gold) 55%,var(--line)); border-radius:999px; font-size:8px; font-weight:800; text-decoration:none; }
.forum-topic-title { margin-top:4px; display:inline-block; font-size:13px; font-weight:850; line-height:1.35; text-decoration:none; }
.forum-topic-title:hover { color:var(--gold-deep); }
.forum-topic-copy p { margin:4px 0; color:var(--text-soft); font-size:9px; line-height:1.45; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.forum-topic-copy small { color:var(--text-faint); font-size:8px; }
.forum-topic-copy small b { color:var(--text-soft); }
.forum-topic-numbers { display:grid; grid-template-columns:repeat(2,1fr); gap:6px; }
.forum-topic-numbers span { padding:9px 6px; color:var(--text-faint); background:var(--forum-card); border:1px solid var(--line); border-radius:10px; font-size:8px; text-align:center; }
.forum-topic-numbers b { display:block; margin-bottom:2px; color:var(--text); font-size:12px; }
.forum-topic-last { min-width:0; display:flex; flex-direction:column; align-items:flex-start; }
.forum-topic-last span { color:var(--text-faint); font-size:8px; }
.forum-topic-last b { margin:3px 0; color:var(--text); font-size:9px; }
.forum-topic-last small { max-width:100%; color:var(--text-soft); font-size:8px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.forum-topic-open { width:34px; height:34px; display:grid; place-items:center; color:var(--text-soft); background:var(--forum-card); border:1px solid var(--line); border-radius:10px; text-decoration:none; }
.forum-pagination { margin-top:14px; display:flex; align-items:center; justify-content:center; gap:6px; }
.forum-pagination a { width:34px; height:34px; display:grid; place-items:center; color:var(--text-soft); background:var(--forum-card); border:1px solid var(--line); border-radius:10px; font-size:9px; font-weight:800; text-decoration:none; }
.forum-pagination a.is-active { color:#000; background:var(--gold); border-color:var(--gold-deep); }

.forum-topic-hero { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; }
.forum-topic-hero h1 { max-width:800px; margin:10px 0 8px; font:850 clamp(28px,4.4vw,48px)/1.06 var(--font-display); letter-spacing:-.04em; }
.forum-topic-hero>div:first-child>p:last-child { margin:0; color:var(--text-faint); font-size:10px; }
.forum-topic-hero>div:first-child>p a { color:var(--text-soft); font-weight:800; }
.forum-topic-category { display:inline-flex; align-items:center; gap:7px; color:color-mix(in srgb,var(--forum-category) 78%,var(--text)); font-size:9px; font-weight:850; text-decoration:none; text-transform:uppercase; letter-spacing:.08em; }
.forum-topic-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
.forum-topic-summary { grid-column:1/-1; margin-top:12px; padding-top:14px; display:flex; align-items:center; gap:18px; border-top:1px solid var(--line); }
.forum-topic-summary span { color:var(--text-faint); font-size:9px; }
.forum-topic-summary b { color:var(--text); }
.forum-moderation-actions { grid-column:1/-1; padding:10px; display:flex; gap:7px; background:var(--forum-muted); border:1px dashed var(--line-strong); border-radius:12px; }
.forum-moderation-actions button { min-height:32px; padding:0 10px; display:inline-flex; align-items:center; gap:6px; color:var(--text-soft); background:var(--forum-card); border:1px solid var(--line); border-radius:9px; font-size:9px; font-weight:800; cursor:pointer; }

.forum-post-list { margin-top:15px; display:grid; gap:12px; }
.forum-post { min-width:0; display:grid; grid-template-columns:174px minmax(0,1fr); background:var(--forum-card); border:1px solid var(--line); border-radius:20px; box-shadow:var(--shadow-soft); overflow:hidden; scroll-margin-top:92px; }
.forum-post.is-first { border-color:color-mix(in srgb,var(--gold) 55%,var(--line)); }
.forum-post-author { padding:22px 16px; display:flex; flex-direction:column; align-items:center; gap:11px; background:linear-gradient(180deg,var(--forum-muted),color-mix(in srgb,var(--forum-muted) 75%,var(--forum-card))); border-right:1px solid var(--line); text-align:center; }
.forum-post-author img { width:72px; height:72px; display:block; object-fit:cover; border:3px solid var(--forum-card); border-radius:50%; box-shadow:0 0 0 1px var(--line-strong); }
.forum-post-author div { min-width:0; display:flex; flex-direction:column; align-items:center; }
.forum-post-author div>a { max-width:100%; font-size:11px; font-weight:850; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; text-decoration:none; }
.forum-post-author span,.forum-post-author small { margin-top:3px; color:var(--text-faint); font-size:8px; }
.forum-post-content { min-width:0; padding:18px 20px 14px; }
.forum-post-content>header { min-height:25px; padding-bottom:10px; display:flex; justify-content:space-between; gap:12px; color:var(--text-faint); border-bottom:1px solid var(--line); font-size:8px; }
.forum-post-content>header a { color:var(--gold-deep); font-weight:850; text-decoration:none; }
.forum-post-content blockquote { margin:14px 0 0; padding:12px 14px; display:grid; gap:4px; color:var(--text); background:var(--forum-muted); border:0; border-left:3px solid var(--gold); border-radius:0 10px 10px 0; font-size:14px; line-height:1.6; overflow-wrap:anywhere; }
.forum-post-content blockquote b { color:color-mix(in srgb,var(--gold-deep) 80%,var(--text)); font-size:14px; }
.forum-post-content blockquote span { min-width:0; white-space:normal; }
.forum-post-body { min-height:70px; padding:17px 0; color:var(--text); font-size:12px; line-height:1.78; overflow-wrap:anywhere; }
.forum-post-body a,.forum-mention { color:var(--gold-deep)!important; font-weight:750; text-decoration:underline; text-decoration-color:color-mix(in srgb,var(--gold) 50%,transparent); }
.forum-post-gallery { margin:2px 0 16px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; overflow:hidden; border-radius:15px; }
.forum-post-gallery.is-1 { grid-template-columns:1fr; }
.forum-post-gallery a { height:230px; display:block; overflow:hidden; background:var(--forum-muted); }
.forum-post-gallery.is-1 a { height:min(520px,55vw); }
.forum-post-gallery img { width:100%; height:100%; display:block; object-fit:cover; transition:transform .24s ease; }
.forum-post-gallery a:hover img { transform:scale(1.018); }
.forum-youtube { width:min(100%,760px); margin:2px 0 16px; }
.forum-youtube iframe { width:100%; aspect-ratio:16/9; display:block; background:#000; border:0; border-radius:15px; }
.forum-youtube.is-short { width:min(100%,390px); }
.forum-youtube.is-short iframe { aspect-ratio:9/16; max-height:680px; }
.forum-youtube>a { margin-top:7px; display:inline-flex; align-items:center; gap:7px; color:var(--text-soft); font-size:9px; font-weight:750; text-decoration:none; }
.forum-youtube>a i { color:#e43d3d; font-size:14px; }
.forum-edited { margin:0 0 8px; color:var(--text-faint); font-size:8px; }
.forum-post-content>footer { padding-top:11px; display:flex; align-items:center; justify-content:space-between; gap:10px; border-top:1px solid var(--line); }
.forum-post-content>footer>div { display:flex; flex-wrap:wrap; gap:5px; }
.forum-post-content>footer button { min-height:32px; padding:0 10px; display:inline-flex; align-items:center; gap:6px; color:var(--text-soft); background:transparent; border:1px solid transparent; border-radius:9px; font-size:9px; font-weight:780; cursor:pointer; }
.forum-post-content>footer button:hover { color:var(--text); background:var(--forum-muted); border-color:var(--line); }
.forum-post-content>footer .forum-reaction i { font-size:16px; }
.forum-post-content>footer .forum-reaction.is-active { color:var(--danger); background:color-mix(in srgb,var(--danger) 8%,var(--forum-card)); border-color:color-mix(in srgb,var(--danger) 35%,var(--line)); }
.forum-post-content>footer .forum-reaction b { min-width:17px; height:17px; display:grid; place-items:center; background:var(--forum-card); border-radius:50%; font-size:8px; }

.forum-reply-card,.forum-login-card,.forum-locked { margin-top:15px; background:var(--forum-card); border:1px solid var(--line); border-radius:20px; box-shadow:var(--shadow-soft); }
.forum-reply-card>header { padding:20px; display:flex; align-items:end; justify-content:space-between; border-bottom:1px solid var(--line); }
.forum-reply-card h2 { margin:0; font-size:22px; font-weight:850; }
.forum-reply-card>header>span { color:var(--text-faint); font-size:8px; }
.forum-reply-card form { padding:18px; }
.forum-reply-card textarea,.forum-field input,.forum-field textarea,.forum-field select,.forum-youtube-field input { width:100%; color:var(--text); background:var(--forum-muted); border:1px solid var(--line); border-radius:13px; outline:0; }
.forum-reply-card textarea,.forum-field textarea { padding:14px; resize:vertical; font-size:11px; line-height:1.65; }
.forum-field input,.forum-field select,.forum-youtube-field input { min-height:45px; padding:0 13px; font-size:10px; }
.forum-reply-card textarea:focus,.forum-field :is(input,textarea,select):focus,.forum-youtube-field input:focus { border-color:var(--gold); box-shadow:0 0 0 3px var(--gold-wash); }
.forum-quote-preview { margin-bottom:10px; padding:12px 14px; display:flex; align-items:flex-start; justify-content:space-between; gap:12px; color:var(--text); background:var(--gold-wash); border:1px solid color-mix(in srgb,var(--gold) 50%,var(--line)); border-radius:11px; font-size:14px; line-height:1.6; }
.forum-quote-preview[hidden] { display:none; }
.forum-quote-preview>div { min-width:0; flex:1; display:flex; align-items:baseline; gap:10px; }
.forum-quote-preview>div>i { flex-shrink:0; color:color-mix(in srgb,var(--gold-deep) 80%,var(--text)); }
.forum-quote-preview span { min-width:0; white-space:normal; overflow-wrap:anywhere; }
.forum-quote-preview button { flex:0 0 28px; width:28px; height:28px; display:grid; place-items:center; color:var(--text-soft); background:var(--forum-card); border:1px solid var(--line); border-radius:8px; cursor:pointer; }
.forum-youtube-field { margin-top:12px; padding:13px; display:grid; gap:9px; background:color-mix(in srgb,#e62929 4%,var(--forum-muted)); border:1px solid var(--line); border-radius:14px; }
.forum-youtube-field>label { display:flex; align-items:center; gap:8px; color:var(--text); font-size:9px; font-weight:800; }
.forum-youtube-field>label i { color:#e33c3c; font-size:16px; }
.forum-youtube-field>label small { color:var(--text-faint); font-weight:600; }
.forum-youtube-preview { padding:10px; display:flex; align-items:center; gap:10px; color:var(--text-soft); background:var(--forum-card); border:1px solid var(--line); border-radius:11px; font-size:9px; }
.forum-youtube-preview img { width:76px; aspect-ratio:16/9; object-fit:cover; border-radius:7px; }
.forum-youtube-preview b { display:block; color:var(--text); }
.forum-upload { margin-top:12px; padding:12px; background:var(--forum-muted); border:1px dashed var(--line-strong); border-radius:14px; }
.forum-upload>label { min-height:58px; display:flex; align-items:center; gap:11px; cursor:pointer; }
.forum-upload>label input { position:absolute; width:1px; height:1px; opacity:0; }
.forum-upload>label>i { width:39px; height:39px; display:grid; place-items:center; color:var(--gold-deep); background:var(--gold-wash); border:1px solid var(--line); border-radius:11px; }
.forum-upload>label span { display:flex; flex-direction:column; }
.forum-upload>label b { font-size:10px; }
.forum-upload>label small { margin-top:3px; color:var(--text-faint); font-size:8px; }
.forum-file-preview { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:6px; }
.forum-file-preview:empty { display:none; }
.forum-file-preview figure { margin:0; aspect-ratio:1; overflow:hidden; position:relative; background:var(--forum-card); border:1px solid var(--line); border-radius:9px; }
.forum-file-preview img { width:100%; height:100%; display:block; object-fit:cover; }
.forum-file-preview small { position:absolute; right:4px; bottom:4px; padding:3px 5px; color:#fff; background:rgba(0,0,0,.7); border-radius:5px; font-size:7px; }
.forum-file-remove { width:26px; height:26px; padding:0; position:absolute; top:5px; right:5px; z-index:2; display:grid; place-items:center; color:#fff; background:rgba(12,15,18,.84); border:1px solid rgba(255,255,255,.48); border-radius:50%; box-shadow:0 4px 12px rgba(0,0,0,.24); cursor:pointer; }
.forum-file-remove:hover { color:#000; background:var(--gold); border-color:var(--gold); }
.forum-file-remove:focus-visible { outline:3px solid color-mix(in srgb,var(--gold) 48%,transparent); outline-offset:2px; }
.forum-reply-card form>footer { margin-top:14px; display:flex; align-items:center; justify-content:flex-end; gap:12px; }
.forum-reply-card form>footer>span { margin-right:auto; color:var(--text-faint); font-size:8px; }
.forum-login-card,.forum-locked { min-height:88px; padding:17px 20px; display:flex; align-items:center; justify-content:space-between; gap:14px; }
.forum-login-card>div,.forum-locked>div { min-width:0; display:flex; align-items:center; gap:12px; }
.forum-login-card>div>i,.forum-locked>i { width:42px; height:42px; display:grid; flex:0 0 42px; place-items:center; color:var(--gold-deep); background:var(--gold-wash); border-radius:12px; }
.forum-login-card span,.forum-locked>div { display:flex; flex-direction:column; }
.forum-login-card strong,.forum-locked strong { font-size:11px; }
.forum-login-card small,.forum-locked span { margin-top:3px; color:var(--text-faint); font-size:9px; }

.forum-empty,.forum-setup-card { min-height:340px; padding:45px 25px; display:flex; flex-direction:column; align-items:center; justify-content:center; color:var(--text-soft); background:var(--forum-card); border:1px solid var(--line); border-radius:24px; box-shadow:var(--shadow-soft); text-align:center; }
.forum-empty>i,.forum-setup-card>span { width:62px; height:62px; margin-bottom:15px; display:grid; place-items:center; color:var(--gold-deep); background:var(--gold-wash); border-radius:18px; font-size:22px; }
.forum-empty h1,.forum-empty h3,.forum-setup-card h1 { margin:0 0 8px; color:var(--text); font-weight:850; }
.forum-empty p,.forum-setup-card>p:not(.forum-eyebrow) { max-width:520px; margin:0 0 19px; font-size:10px; line-height:1.6; }
.forum-empty a { color:var(--gold-deep); font-size:10px; font-weight:800; }
.forum-empty-inline { min-height:220px; box-shadow:none; }

.forum-modal { position:fixed; inset:0; z-index:1200; display:none; place-items:center; padding:24px; }
.forum-modal.is-open { display:grid; }
.forum-modal-backdrop { position:absolute; inset:0; background:rgba(6,9,11,.72); backdrop-filter:blur(7px); }
.forum-modal-dialog { width:min(760px,100%); max-height:min(880px,calc(100dvh - 40px)); position:relative; display:flex; flex-direction:column; overflow:hidden; color:var(--text); background:var(--forum-card); border:1px solid var(--line); border-radius:24px; box-shadow:0 30px 90px rgba(0,0,0,.28); }
.forum-modal-dialog.is-compact { width:min(680px,100%); }
.forum-modal-dialog.is-small { width:min(520px,100%); }
.forum-modal-dialog>header { padding:21px 22px 17px; display:flex; align-items:flex-start; justify-content:space-between; gap:18px; border-bottom:1px solid var(--line); }
.forum-modal-dialog h2 { margin:0; font-size:24px; font-weight:850; letter-spacing:-.025em; }
.forum-modal-dialog header span { margin-top:5px; display:block; color:var(--text-faint); font-size:9px; line-height:1.5; }
.forum-modal-dialog>header>button { width:38px; height:38px; display:grid; flex:0 0 38px; place-items:center; color:var(--text-soft); background:var(--forum-muted); border:1px solid var(--line); border-radius:50%; cursor:pointer; }
.forum-modal-dialog>form { min-height:0; display:flex; flex-direction:column; }
.forum-modal-body { min-height:0; padding:18px 22px; display:grid; gap:13px; overflow-y:auto; }
.forum-field { display:grid; gap:7px; }
.forum-field>span { color:var(--text-soft); font-size:9px; font-weight:800; }
.forum-modal-dialog form>footer { padding:12px 22px; display:flex; align-items:center; justify-content:flex-end; gap:9px; border-top:1px solid var(--line); }
.forum-modal-dialog form>footer>span { margin-right:auto; color:var(--text-faint); font-size:8px; }
body.forum-modal-open { overflow:hidden; }

/* Potwierdzenie linku: uklad modalu usuwania materialu z create-media. */
body.forum-link-modal-open { overflow:hidden; }
.forum-link-dialog { width:min(430px,calc(100% - 32px)); max-height:calc(100dvh - 32px); margin:auto; padding:26px; color:var(--text); background:var(--surface-solid); border:1px solid var(--line-strong); border-radius:20px; box-shadow:0 28px 85px rgba(19,12,4,.34); overflow-y:auto; }
.forum-link-dialog[open] { display:grid; grid-template-columns:52px minmax(0,1fr); column-gap:18px; align-items:start; animation:forum-link-open .2s ease; }
.forum-link-dialog::backdrop { background:rgba(17,12,6,.48); backdrop-filter:blur(7px); -webkit-backdrop-filter:blur(7px); }
.forum-link-dialog-icon { width:52px; height:52px; display:grid; place-items:center; color:var(--gold-deep); background:var(--gold-wash); border-radius:16px; font-size:20px; }
.forum-link-dialog-copy { min-width:0; }
.forum-link-dialog h2 { margin:5px 0 0; font-size:25px; line-height:1.2; }
.forum-link-dialog p { margin:10px 0 0; color:var(--text-soft); font-size:13px; line-height:1.6; }
.forum-link-address { margin-top:12px; padding:10px 12px; display:grid; gap:5px; max-height:130px; overflow:auto; background:var(--surface-2); border:1px solid var(--line); border-radius:11px; overflow-wrap:anywhere; }
.forum-link-address strong { font-size:13px; }
.forum-link-address span { color:var(--text-soft); font-size:12px; line-height:1.5; }
.forum-link-dialog footer { grid-column:2; margin-top:22px; display:flex; justify-content:flex-end; gap:9px; }
.forum-link-dialog .forum-btn { min-height:44px; padding:0 14px; font-size:12px!important; }
@keyframes forum-link-open { from { opacity:0; transform:translateY(8px) scale(.96); } to { opacity:1; transform:translateY(0) scale(1); } }

html[data-theme="dark"] body[data-route="forum"] { --forum-card:var(--su-dark-panel); --forum-muted:var(--su-dark-panel-raised); }
html[data-theme="dark"] .forum-page { --text:#f3f5f7; --text-soft:#b4bdc5; --text-faint:#7f8992; --line:var(--su-dark-border); --line-strong:var(--su-dark-border-strong); --gold-deep:#e9c06e; --gold-wash:rgba(216,185,104,.10); }
html[data-theme="dark"] .forum-category-card,.forum-topic-section,.forum-post,.forum-reply-card,.forum-login-card,.forum-locked,.forum-modal-dialog,.forum-empty,.forum-setup-card,.forum-category-hero,.forum-topic-hero { box-shadow:0 14px 38px rgba(0,0,0,.16); }

@media (min-width:701px) {
  .forum-modal-dialog { max-height:min(920px,calc(100dvh - 24px)); }
  .forum-modal-dialog>header { padding:24px 26px 20px; }
  .forum-modal-dialog h2 { font-size:27px; }
  .forum-modal-dialog header span { margin-top:7px; font-size:11px; line-height:1.55; }
  .forum-modal-body { padding:22px 26px; gap:17px; }
  .forum-field { gap:9px; }
  .forum-field>span { font-size:11px; }
  .forum-field input,.forum-field select,.forum-youtube-field input { min-height:50px; padding:0 15px; font-size:12px; }
  .forum-field textarea { padding:16px; font-size:13px; line-height:1.65; }
  .forum-modal-dialog .forum-field textarea { min-height:118px; max-height:150px; }
  .forum-youtube-field { padding:15px; gap:11px; }
  .forum-youtube-field>label { font-size:11px; }
  .forum-youtube-field>label small { font-size:9px; }
  .forum-youtube-preview { font-size:10px; }
  .forum-upload { padding:14px; }
  .forum-upload>label { min-height:66px; gap:13px; }
  .forum-upload>label>i { width:44px; height:44px; font-size:16px; }
  .forum-upload>label b { font-size:12px; }
  .forum-upload>label small { margin-top:4px; font-size:9px; }
  .forum-modal-dialog form>footer { padding:14px 26px; }
  .forum-modal-dialog .forum-btn { min-height:46px; padding:0 18px; font-size:12px!important; }
  .forum-reply-card textarea { font-size:13px; line-height:1.65; }
  .forum-reply-card .forum-btn { min-height:46px; font-size:12px!important; }
}

@media (min-width:901px) {
  .forum-breadcrumbs { font-size:13px; }
  .forum-breadcrumbs a:hover { color:var(--gold-deep); }
  .forum-category-hero .forum-eyebrow,.forum-topic-list-head .forum-eyebrow { font-size:11px; }
  .forum-category-hero div>p:last-child { font-size:13px; line-height:1.6; }
  .forum-category-hero>.forum-btn { min-height:44px; font-size:11px!important; }
  .forum-section-head>span { font-size:11px; }
  .forum-section-head select { min-height:46px; font-size:12px; }
  .forum-topic-row { min-height:126px; padding:17px; grid-template-columns:52px minmax(0,1fr) 170px 155px 38px; gap:16px; }
  .forum-topic-avatar img { width:52px; height:52px; }
  .forum-topic-badges :is(span,a) { font-size:10px; }
  .forum-topic-title { font-size:16px; }
  .forum-topic-copy p { margin:6px 0; font-size:12px; line-height:1.5; }
  .forum-topic-copy small { font-size:10px; }
  .forum-topic-numbers span { padding:11px 7px; font-size:10px; }
  .forum-topic-numbers b { font-size:14px; }
  .forum-topic-last span,.forum-topic-last small { font-size:10px; }
  .forum-topic-last b { font-size:11px; }
  .forum-topic-open { width:38px; height:38px; }
  .forum-topic-category { font-size:12px; }
  .forum-topic-hero>div:first-child>p:last-child { font-size:12px; line-height:1.55; }
  .forum-topic-actions .forum-btn { min-height:44px; font-size:11px!important; }
  .forum-topic-summary span { font-size:12px; }
  .forum-topic-summary b { font-size:13px; }
  .forum-moderation-actions button { font-size:11px; }
  .forum-post { grid-template-columns:190px minmax(0,1fr); }
  .forum-post-author div>a { font-size:13px; }
  .forum-post-author span,.forum-post-author small { font-size:11px; line-height:1.45; }
  .forum-post-content { padding:21px 24px 17px; }
  .forum-post-content>header { min-height:29px; padding-bottom:12px; font-size:11px; }
  .forum-post-content blockquote,.forum-quote-preview { font-size:15px; }
  .forum-post-body { min-height:82px; padding:20px 0; font-size:14px; line-height:1.75; }
  .forum-youtube>a { font-size:11px; }
  .forum-edited { font-size:10px; }
  .forum-post-content>footer button { min-height:36px; padding:0 12px; font-size:12px; }
  .forum-post-content>footer .forum-reaction b { font-size:9px; }
  .forum-reply-card h2 { font-size:24px; }
  .forum-reply-card>header>span,.forum-reply-card form>footer>span { font-size:10px; }
  .forum-reply-card textarea { padding:16px; font-size:14px; }
  .forum-reply-card .forum-youtube-field>label { font-size:12px; }
  .forum-reply-card .forum-youtube-field>label small { font-size:10px; }
  .forum-reply-card .forum-youtube-field input { font-size:13px; }
  .forum-reply-card .forum-upload>label b { font-size:13px; }
  .forum-reply-card .forum-upload>label small { font-size:10px; }
}

@media (max-width:1160px) {
  .forum-topic-row { grid-template-columns:44px minmax(0,1fr) 130px 34px; }
  .forum-topic-last { display:none; }
}
@media (max-width:900px) {
  .forum-page { padding:22px 16px 90px; }
  .forum-hero { grid-template-columns:1fr; padding:34px; }
  .forum-hero-stats { width:min(100%,430px); }
  .forum-category-grid { grid-template-columns:1fr; }
  .forum-topic-row { grid-template-columns:42px minmax(0,1fr) 34px; min-height:100px; }
  .forum-topic-numbers { display:none; }
  .forum-post { grid-template-columns:1fr; }
  .forum-post-author { padding:13px 16px; flex-direction:row; text-align:left; border-right:0; border-bottom:1px solid var(--line); }
  .forum-post-author img { width:45px; height:45px; border-width:2px; }
  .forum-post-author div { align-items:flex-start; }
  .forum-post-author small { display:none; }
}
@media (max-width:700px) {
  .forum-link-dialog { width:calc(100% - 28px); max-height:calc(100dvh - 28px); padding:21px; border-radius:18px; }
  .forum-link-dialog[open] { grid-template-columns:46px minmax(0,1fr); column-gap:14px; }
  .forum-link-dialog-icon { width:46px; height:46px; border-radius:14px; }
  .forum-link-dialog h2 { font-size:22px; }
  .forum-link-dialog footer { grid-column:1/-1; display:grid; grid-template-columns:1fr 1fr; }
  .forum-link-dialog .forum-btn { padding-inline:10px; }
  body[data-route="forum"] .forum-main { padding-bottom:0; }
  .forum-page { width:100%; padding:15px 9px calc(76px + env(safe-area-inset-bottom)); }
  .forum-breadcrumbs { padding:0 6px; margin-bottom:11px; }
  .forum-breadcrumbs span { max-width:180px; }
  .forum-hero { min-height:0; padding:28px 20px 22px; border-radius:20px; }
  .forum-hero h1 { font-size:32px; }
  .forum-hero-copy>p:not(.forum-eyebrow) { font-size:11px; line-height:1.65; }
  .forum-hero-actions { display:grid; grid-template-columns:1fr; }
  .forum-hero-stats { grid-template-columns:repeat(3,1fr); }
  .forum-hero-stats div { padding:13px 5px; }
  .forum-hero-stats strong { font-size:16px; }
  .forum-search { height:56px; margin:-8px 10px 27px; padding-left:14px; gap:8px; }
  .forum-search button { height:40px; padding:0 14px; }
  .forum-notifications { padding:11px; border-radius:17px; }
  .forum-notifications a { grid-template-columns:34px minmax(0,1fr) 22px; gap:8px; }
  .forum-notifications img { width:34px; height:34px; }
  .forum-notifications time { display:none; }
  .forum-section { margin-top:23px; }
  .forum-section-head { padding:0 4px; align-items:flex-start; }
  .forum-section-head h2 { font-size:24px; }
  .forum-section-head>span { display:none; }
  .forum-topic-list-head { flex-direction:column; }
  .forum-topic-list-head form,.forum-topic-list-head select { width:100%; }
  .forum-category-card { min-height:138px; padding:15px; grid-template-columns:46px minmax(0,1fr); gap:11px; border-radius:17px; }
  .forum-category-icon { width:46px; height:46px; border-radius:14px; }
  .forum-category-meta { grid-column:2; }
  .forum-category-copy strong { font-size:13px; }
  .forum-category-copy small { font-size:9px; }
  .forum-category-hero { padding:18px; display:grid; grid-template-columns:47px minmax(0,1fr); border-radius:19px; }
  .forum-category-hero>.forum-btn { grid-column:1/-1; width:100%; }
  .forum-category-hero h1 { font-size:28px; }
  .forum-topic-section { padding:11px; border-radius:19px; }
  .forum-topic-row { min-height:94px; padding:11px 8px; grid-template-columns:40px minmax(0,1fr) 29px; gap:9px; border-radius:13px; }
  .forum-topic-avatar img { width:40px; height:40px; }
  .forum-topic-copy p { display:none; }
  .forum-topic-title { font-size:11px; }
  .forum-topic-open { width:29px; height:29px; border-radius:9px; }
  .forum-topic-hero { padding:18px; grid-template-columns:1fr; border-radius:19px; }
  .forum-topic-hero h1 { font-size:29px; }
  .forum-topic-hero>div:first-child>p:last-child { font-size:12px; line-height:1.5; }
  .forum-topic-actions { justify-content:flex-start; }
  .forum-topic-actions .forum-btn { flex:1; min-height:44px; font-size:13px!important; }
  .forum-topic-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
  .forum-topic-summary span { min-width:0; display:flex; flex-direction:column; gap:3px; font-size:12px; line-height:1.4; text-align:center; overflow-wrap:anywhere; }
  .forum-topic-summary b { font-size:18px; line-height:1.3; font-variant-numeric:tabular-nums; }
  .forum-moderation-actions { overflow-x:auto; }
  .forum-moderation-actions button { flex:0 0 auto; }
  .forum-post { border-radius:17px; }
  .forum-post-author div>a { font-size:14px; }
  .forum-post-author span { font-size:12px; line-height:1.5; }
  .forum-post-content { padding:13px 12px 10px; }
  .forum-post-content>header { font-size:12px; line-height:1.5; }
  .forum-post-body { min-height:40px; padding:14px 2px; font-size:15px; line-height:1.7; }
  .forum-edited { font-size:12px; line-height:1.5; }
  .forum-post-gallery a { height:150px; }
  .forum-post-gallery.is-1 a { height:min(510px,100vw); }
  .forum-post-content>footer { align-items:flex-start; flex-wrap:wrap; gap:6px 10px; }
  .forum-post-content>footer button { min-height:44px; padding:0 8px; font-size:13px; }
  .forum-post-content>footer button span { display:none; }
  .forum-post-content>footer .forum-reaction { min-width:64px; gap:8px; }
  .forum-post-content>footer .forum-reaction i { font-size:22px; }
  .forum-post-content>footer .forum-reaction b { min-width:24px; height:24px; padding:0 5px; border-radius:999px; font-size:13px; line-height:1; font-variant-numeric:tabular-nums; }
  .forum-reply-card>header { padding:16px; }
  .forum-reply-card>header>span { display:none; }
  .forum-reply-card form { padding:12px; }
  .forum-reply-card textarea { font-size:16px; }
  .forum-file-preview { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .forum-login-card { align-items:stretch; flex-direction:column; }
  .forum-login-card .forum-btn { width:100%; }
  .forum-modal { padding:0; align-items:end; }
  .forum-modal-dialog,.forum-modal-dialog.is-compact,.forum-modal-dialog.is-small { width:100%; max-height:94dvh; border-radius:22px 22px 0 0; border-bottom:0; }
  .forum-modal-dialog>header { padding:18px 16px 14px; }
  .forum-modal-dialog h2 { font-size:21px; }
  .forum-modal-body { padding:14px 15px; }
  .forum-modal-dialog form>footer { padding:10px 15px max(10px,env(safe-area-inset-bottom)); }
  .forum-modal-dialog form>footer .forum-btn-secondary { display:none; }
  .forum-modal-dialog form>footer .forum-btn-primary { flex:1; }
}
@media (prefers-reduced-motion:reduce) { .forum-page * { scroll-behavior:auto!important; transition:none!important; } }
@media (prefers-reduced-motion:reduce) { .forum-link-dialog[open] { animation:none; } }

/* Wspolny wyglad wyboru emoji z create-media, takze w przewijanych formularzach. */
.forum-emoji-field { position:relative; display:block; min-width:0; }
.forum-field>.forum-emoji-field { font:inherit; }
.forum-emoji-field>input { padding-right:51px; }
.forum-emoji-field>textarea { display:block; padding-right:51px; padding-bottom:47px; }
.forum-emoji-field>.forum-emoji-trigger { position:absolute; z-index:2; top:50%; right:8px; display:grid; place-items:center; width:34px; height:34px; padding:0; color:var(--text-soft); background:color-mix(in srgb,var(--surface-solid) 70%,transparent); border:1px solid var(--line); border-radius:50%; font-size:17px; cursor:pointer; transform:translateY(-50%); }
.forum-emoji-field--textarea>.forum-emoji-trigger { top:auto; bottom:9px; transform:none; }
.forum-emoji-trigger:hover,.forum-emoji-trigger[aria-expanded="true"] { color:var(--gold-deep); background:var(--gold-wash); border-color:var(--line-strong); }
.forum-emoji-picker { position:fixed; z-index:2200; display:grid; grid-template-rows:auto minmax(0,1fr); gap:12px; width:min(360px,calc(100vw - 24px)); max-height:min(390px,calc(100dvh - 24px)); padding:15px; color:var(--text); background:var(--surface-solid); border:1px solid var(--line); border-radius:18px; box-shadow:0 26px 60px rgba(0,0,0,.24); opacity:0; visibility:hidden; pointer-events:none; transform:translateY(8px) scale(.985); transition:opacity .16s ease,transform .16s ease,visibility .16s; }
.forum-emoji-picker[hidden] { display:none!important; }
.forum-emoji-picker.open { opacity:1; visibility:visible; pointer-events:auto; transform:none; }
.forum-emoji-picker>header { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:35px; }
.forum-emoji-picker>header>div { min-width:0; }
.forum-emoji-picker strong { display:block; font-size:17px; line-height:1.2; }
.forum-emoji-picker header span { display:block; margin-top:4px; color:var(--text-faint); font-size:10px; font-weight:700; }
.forum-emoji-picker header button { display:grid; place-items:center; flex:0 0 32px; width:32px; height:32px; padding:0; color:var(--text-soft); background:var(--surface-2); border:0; border-radius:50%; font-size:16px; cursor:pointer; }
.forum-emoji-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); align-content:start; gap:4px; min-height:0; max-height:270px; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; }
.forum-emoji-grid button { display:grid; place-items:center; min-width:0; aspect-ratio:1; padding:0; color:var(--text); background:transparent; border:0; border-radius:9px; font-size:26px; line-height:1; cursor:pointer; transition:background .15s ease,transform .15s ease; }
.forum-emoji-grid button:hover { background:var(--gold-wash); transform:scale(1.07); }
.forum-emoji-trigger:focus-visible,.forum-emoji-picker button:focus-visible { outline:2px solid var(--gold-deep); outline-offset:-2px; }
@media (max-width:700px) {
  .forum-emoji-field>input { padding-right:61px; font-size:16px; }
  .forum-emoji-field>textarea { padding-right:61px; padding-bottom:57px; font-size:16px; }
  .forum-emoji-field>.forum-emoji-trigger { width:44px; height:44px; right:8px; font-size:19px; }
  .forum-emoji-picker { width:100%; max-height:min(68dvh,560px); padding:18px 16px max(18px,env(safe-area-inset-bottom)); border-left:0; border-right:0; border-bottom:0; border-radius:24px 24px 0 0; transform:translateY(100%); }
  .forum-emoji-picker strong { font-size:19px; }
  .forum-emoji-picker header span { font-size:11px; }
  .forum-emoji-picker header button { flex-basis:44px; width:44px; height:44px; }
  .forum-emoji-grid { max-height:min(43dvh,340px); gap:5px; }
  .forum-emoji-grid button { font-size:clamp(25px,7vw,31px); }
}
@media (prefers-reduced-motion:reduce) { .forum-emoji-picker,.forum-emoji-grid button { transition:none; } }
