/* All Forum styles are scoped. Original GUI and Rozmowa channels unchanged. */
.panel[data-panel="forum"]{padding:0!important;background:#f4f6f5!important;overflow-y:auto!important;height:100%!important;display:none}
.panel[data-panel="forum"].active{display:block!important}
.rwf *{box-sizing:border-box}
.rwf{font-family:inherit;color:#1e352b;min-height:100%;padding:1rem 1.25rem 4rem}
.rwf a{color:inherit}
.rwf .rwf-wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,660px) minmax(220px,300px);max-width:1520px;margin:0 auto;gap:1.1rem;align-items:start}
.rwf .rwf-left,.rwf .rwf-right{position:sticky;top:0;display:grid;gap:.75rem}
.rwf .rwf-left{padding-top:.35rem}.rwf .rwf-right{padding-top:.35rem}
.rwf h2,.rwf h3,.rwf p{margin:0}
.rwf .rwf-card{background:#fff;border:1px solid #e1e8e2;border-radius:16px;box-shadow:0 3px 16px rgba(20,44,29,.045)}
.rwf .rwf-left-title{font-size:1.12rem;margin:.4rem .55rem 1rem;font-weight:900}
.rwf button{font:inherit;cursor:pointer;border:0;transition:background .15s,color .15s;border-radius:10px;color:#294939}
.rwf button:focus-visible,.rwf input:focus-visible,.rwf textarea:focus-visible{outline:3px solid #84c5a3;outline-offset:2px}
.rwf .rwf-link{display:flex;align-items:center;gap:.7rem;width:100%;padding:.8rem .85rem;text-align:left;font-weight:750;background:transparent;min-height:50px}
.rwf .rwf-link svg{width:21px;height:21px;display:block}.rwf .rwf-link.active{background:#e2f0e7;color:#17583c}
.rwf .rwf-link:hover,.rwf .rwf-action:hover{background:#eef4ef}
.rwf .rwf-feed{display:grid;gap:.82rem;min-width:0}
.rwf .rwf-topline{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:.25rem 0}
.rwf .rwf-topline h2{font-family:Georgia,serif;font-size:1.7rem;color:#153d2b;letter-spacing:-.5px}
.rwf .rwf-topline span{color:#6b7e71;font-size:.78rem}
.rwf .rwf-compose{padding:1rem}
.rwf .rwf-compose-row{display:flex;gap:.7rem;align-items:center}
.rwf .rwf-avatar{display:inline-flex;flex:0 0 42px;width:42px;height:42px;align-items:center;justify-content:center;border-radius:50%;background:#dfeae3;color:#245139;font-weight:850;font-size:1rem}
.rwf .rwf-prompt{flex:1;text-align:left;border:1px solid #e4e9e4;background:#f0f3f1;padding:.83rem 1rem;border-radius:999px;font-size:1rem;color:#65776b;min-width:0}
.rwf .rwf-compose-extra{display:flex;border-top:1px solid #edf0ed;margin-top:.9rem;padding-top:.6rem;gap:.3rem}
.rwf .rwf-compose-extra button{flex:1;padding:.65rem .3rem;display:flex;gap:.45rem;align-items:center;justify-content:center;background:transparent;font-size:.84rem;font-weight:750}
.rwf .rwf-compose-extra .custom-icon,.rwf .rwf-action .custom-icon{width:18px!important;height:18px!important}
.rwf .rwf-compose-extra svg,.rwf .rwf-action svg{width:100%;height:100%}
.rwf .rwf-tabs{display:flex;gap:.55rem;flex-wrap:wrap;padding:.14rem 0 .1rem}
.rwf .rwf-tab{background:#fff;border:1px solid #dce7de;padding:.5rem 1rem;font-weight:760;min-height:40px}
.rwf .rwf-tab.active{background:#18573b;color:#fff;border-color:#18573b}
.rwf .rwf-post{overflow:hidden}
.rwf .rwf-post-header{display:flex;gap:.68rem;align-items:center;padding:1rem 1rem .4rem}
.rwf .rwf-author{min-width:0;flex:1}.rwf .rwf-author strong{display:block;font-size:.95rem;color:#223e2c}.rwf .rwf-author small{display:block;color:#758479;font-size:.74rem;margin-top:.16rem}
.rwf .rwf-editorial{color:#39674a;font-size:.72rem;font-weight:700;background:#e8f4ec;padding:.12rem .4rem;border-radius:999px;display:inline-block}
.rwf .rwf-post-text{padding:.5rem 1rem .85rem;line-height:1.53;white-space:pre-wrap;overflow-wrap:anywhere;font-size:.96rem}
.rwf .rwf-media{background:#0a1010;max-height:660px;display:flex;justify-content:center;align-items:center;overflow:hidden}
.rwf .rwf-media img{display:block;max-height:660px;max-width:100%;object-fit:contain}
.rwf .rwf-media video{display:block;max-width:100%;width:auto;max-height:660px;object-fit:contain}
.rwf .rwf-meta{padding:.6rem 1rem;color:#6c7b6e;font-size:.79rem;display:flex;justify-content:space-between;border-bottom:1px solid #e9eee9}
.rwf .rwf-actions{display:flex;padding:.35rem .55rem}.rwf .rwf-action{display:flex;flex:1;align-items:center;justify-content:center;gap:.4rem;background:transparent;padding:.66rem .35rem;font-weight:800;font-size:.85rem}
.rwf .rwf-replies{padding:0 1rem .8rem;border-top:1px solid #edf1ee}.rwf .rwf-reply{padding:.6rem .2rem;display:flex;gap:.55rem;align-items:start}.rwf .rwf-reply .rwf-avatar{width:29px;height:29px;flex-basis:29px;font-size:.75rem}.rwf .rwf-reply p{background:#f0f4f1;border-radius:12px;padding:.55rem .8rem;overflow-wrap:anywhere;font-size:.88rem;line-height:1.45;flex:1}
.rwf .rwf-reply-form{display:flex;gap:.4rem;padding-top:.5rem}.rwf .rwf-reply-form input{flex:1;min-width:0;border-radius:999px;border:1px solid #ceddd2;background:#f7f9f7;padding:.6rem .95rem;font-size:.94rem}.rwf .rwf-reply-form button{background:#1b5c3e;color:white;padding:.6rem .85rem;font-weight:700}
.rwf .rwf-side-card{padding:1rem}.rwf .rwf-side-card h3{font-family:Georgia,serif;font-size:1.18rem;margin-bottom:.8rem}.rwf .rwf-side-card p{font-size:.87rem;line-height:1.5;color:#697b6c}.rwf .rwf-side-card button{width:100%;display:flex;gap:.55rem;align-items:center;text-align:left;padding:.76rem .5rem;background:#f4f7f4;margin-top:.38rem;font-weight:700}
.rwf .rwf-empty,.rwf .rwf-error{padding:1.6rem;text-align:center;color:#56685c;line-height:1.5}
.rwf .rwf-error{border:1px solid #e7bdba;background:#fff7f5;border-radius:14px}
.rwf .rwf-load{width:100%;padding:.85rem;background:#e2ebe4;font-weight:800}
.rwf .rwf-dialog-backdrop{position:fixed;z-index:100005;inset:0;background:rgba(0,23,11,.56);display:flex;align-items:center;justify-content:center;padding:1rem}
.rwf .rwf-dialog-backdrop[hidden]{display:none!important}
.rwf .rwf-dialog{width:min(100%,570px);background:#fff;border-radius:18px;padding:1.25rem;display:grid;gap:.8rem;max-height:90dvh;overflow:auto}
.rwf .rwf-dialog header{display:flex;justify-content:space-between;align-items:center}.rwf .rwf-dialog h3{font:900 1.45rem Georgia,serif}.rwf .rwf-dialog textarea{width:100%;resize:vertical;min-height:132px;border:1px solid #bed2c2;border-radius:12px;padding:.8rem;font:inherit;line-height:1.5}
.rwf .rwf-dialog input[type=file]{width:100%;font-size:.9rem}.rwf .rwf-dialog footer{display:flex;gap:.5rem;justify-content:end}.rwf .rwf-primary{color:white;background:#18583c;padding:.72rem 1.35rem;font-weight:800}.rwf .rwf-outline{background:#f1f4f2;padding:.72rem 1rem;font-weight:750}
.rwf .rwf-notice{font-size:.86rem;color:#697b6c;line-height:1.45}
.rwf .rwf-reels{display:grid;gap:1rem}.rwf .rwf-reel .rwf-media{min-height:320px}.rwf .rwf-reel video{aspect-ratio:9/16;width:min(100%,380px);height:min(70vh,670px);object-fit:contain}
.rwf .rwf-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(max-width:1320px){.rwf .rwf-wrap{grid-template-columns:minmax(0,1fr) minmax(0,660px)}.rwf .rwf-right{display:none}}
@media(max-width:970px){.rwf .rwf-wrap{display:block;max-width:690px}.rwf .rwf-left{display:none}.rwf .rwf-feed{gap:.65rem}.rwf{padding:.7rem .6rem 5.5rem}}
@media(max-width:500px){.rwf{padding:.3rem 0 5.5rem}.rwf .rwf-topline{padding:.55rem .8rem .15rem}.rwf .rwf-topline h2{font-size:1.55rem}.rwf .rwf-card{border-radius:11px}.rwf .rwf-post{border-left:0;border-right:0}.rwf .rwf-compose{padding:.8rem}.rwf .rwf-tabs{padding:0 .6rem}.rwf .rwf-post-header{padding:.8rem}.rwf .rwf-post-text{padding:.5rem .8rem .7rem}.rwf .rwf-action{font-size:.82rem}}

/* Rolki: pionowe wideo i wygodne przewijanie bez wpływania na oryginalne czaty. */
.rwf .rwf-mode-video .rwf-reel{max-width:540px;margin:0 auto;width:100%}
.rwf .rwf-mode-video .rwf-reel .rwf-media{max-height:none;min-height:300px}
.rwf .rwf-mode-video .rwf-reel video{display:block;width:min(100%,430px);height:auto;max-height:min(78dvh,760px);aspect-ratio:9/16;object-fit:contain}
@media(max-width:500px){.rwf .rwf-mode-video .rwf-reel video{width:100%;max-height:75dvh}}
