/* Audit fixes: shared dialogs, reliable hidden state and responsive form surfaces. */
[hidden]{display:none!important}
dialog{max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px);box-sizing:border-box;overscroll-behavior:contain}
dialog::backdrop{background:rgba(5,24,45,.68);backdrop-filter:blur(4px)}
.pp-create-modal{width:760px;padding:0;border:1px solid #a5c9e4;border-radius:22px;background:#f5faff;color:#153952;box-shadow:0 28px 90px #061b4655;overflow:hidden}
.pp-create-head{display:flex;align-items:center;justify-content:space-between;padding:12px 18px;border-bottom:1px solid #d2e3f0;background:#e1eff9}
.pp-create-head h2{margin:0;font:750 17px/1.3 system-ui}.pp-create-head button{border:0;border-radius:50%;width:40px;height:40px;font-size:25px;background:#fff;color:#163750;cursor:pointer}
.pp-create-modal iframe{display:block;width:100%;height:min(76dvh,780px);border:0;background:#f5faff}
.pp-text-modal{width:540px;border:1px solid #a5c9e4;border-radius:20px;padding:24px;background:#f5faff;color:#17394e;font:15px/1.5 system-ui}
.pp-text-modal h2{font-size:21px;margin:0 0 18px}.pp-text-modal label{display:block}.pp-text-modal textarea{display:block;box-sizing:border-box;width:100%;margin:8px 0 16px;padding:12px;background:#fff;color:#17394e;border:1px solid #a4c1d6;border-radius:10px;font:inherit}.pp-text-modal form>div{display:flex;gap:10px;justify-content:flex-end}.pp-text-modal button{padding:11px 16px;border:1px solid #a4c1d6;border-radius:10px;background:#fff;color:#17394e;cursor:pointer}.pp-text-modal button[type=submit]{background:#174d78;color:#fff}
body.pp-compose-embedded{background:#f5faff!important;padding:0!important;margin:0!important}
body.pp-compose-embedded>*:not(#ppEmbeddedForm){display:none!important}
#ppEmbeddedForm{padding:18px;max-width:100%;color:#17394e;background:#f5faff}
#ppEmbeddedForm .pp-ads-create{display:block!important;padding:0!important;margin:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
#ppEmbeddedForm .pp-ads-create-intro{display:none!important}
#ppEmbeddedForm .pp-ads-form-card{max-width:100%;width:100%;box-sizing:border-box}
#ppEmbeddedForm input,#ppEmbeddedForm textarea,#ppEmbeddedForm select{font-size:16px}
#ppComposeLogin a{display:inline-block;padding:12px;background:#dcecf8;border-radius:10px;color:#17476b}
body.pp-community-page .pp-social-main{min-width:0;width:100%}
body.pp-community-page .pp-post-card{background:#f6fbff!important;color:#17394e!important;border:1px solid #b5d2e6!important;box-shadow:0 8px 25px #163c5a18!important}
body.pp-community-page .pp-post-card :is(.pp-post-body,.pp-post-title,.pp-post-head strong,.pp-comment){color:#17394e!important}
body.pp-community-page .pp-post-card :is(.pp-post-meta small,.pp-post-counts){color:#46677e!important}
body.pp-community-page .pp-post-card img{max-width:100%;height:auto;object-fit:contain}
.pp-post-head>button{font:600 12px system-ui;background:#e2eef8;border:1px solid #b3cee1;border-radius:8px;padding:8px;color:#1b405a;cursor:pointer}
.pp-comment button{font:600 11px system-ui;margin:3px;padding:5px;border-radius:7px;border:1px solid #bad0e0;background:#fff;color:#17476b}
#ppLegacyPanel{min-width:0;background:#f5faff;border:1px solid #adcfe5;border-radius:20px;padding:20px;color:#17394e}#ppLegacyPanel>button{padding:10px;border:1px solid #b5cee0;border-radius:10px;background:#e2eff9;color:#17476b;cursor:pointer}
body.pp-shared-shell .pp-shared-content{box-sizing:border-box}
body.pp-shared-shell .pp-shared-rail img{max-width:100%;height:auto;object-fit:contain}
@media(max-width:960px){body.pp-shared-shell .pp-shared-grid>.pp-shared-rail-right{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));margin-top:18px}body.pp-shared-shell .pp-shared-rail-right .pp-shared-rail-title{grid-column:1/-1}body.pp-shared-shell .pp-shared-rail-right .pp-shared-ad{min-height:155px!important}body.pp-shared-shell .pp-shared-rail-right .pp-shared-rail-note{display:none!important}}
@media(max-width:600px){.pp-create-modal{max-width:calc(100vw - 12px);border-radius:16px}.pp-create-modal iframe{height:80dvh}.pp-create-head h2{font-size:15px}#ppEmbeddedForm{padding:10px}.pp-dialog-footer{flex-wrap:wrap;gap:10px}#ppLegacyPanel{padding:12px}.pp-post-actions{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
/* The approved blue canvas wins over saved dark preferences; seasonal header art remains. */
html body[class].pp-shared-shell.pp-theme-dark,html body[class].pp-shared-shell.pp-theme-light,html body[class].portal.pp-theme-dark,html body[class].portal.pp-theme-light{background-color:#6e9dbf!important;background-image:radial-gradient(ellipse 90% 700px at 52% 10%,rgba(189,224,246,.56),transparent 78%),linear-gradient(175deg,#6093ba 0%,#79aace 39%,#6799bd 75%,#507fa4 100%)!important;background-attachment:fixed!important}
html body[class].pp-compose-embedded{background:#f5faff!important}
.pp-own-listing{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:14px;border-bottom:1px solid #a9c8dd}.pp-own-listing strong{flex:1;min-width:180px}.pp-own-listing button{background:#e3f1fb;color:#163d5b;border:1px solid #9fc2da;border-radius:9px;padding:9px;cursor:pointer}
.pp-create-launch{padding:13px 18px;border:1px solid #a2c2db;border-radius:12px;background:#e5f3ff;color:#153e5c;font:700 14px system-ui;cursor:pointer}.pp-element-modal{width:760px}.pp-element-modal input,.pp-element-modal select{box-sizing:border-box;max-width:100%;min-height:40px;padding:10px;border:1px solid #9cbfd9;border-radius:9px;background:white;color:#17394e}.pp-element-modal label{margin:12px 0}.pp-element-modal form{max-width:100%}
/* Legacy conversation renderer now lives inside the canonical community page. */
#ppLegacyPanel .f26-post{background:#fff;border:1px solid #bdd4e5;border-radius:16px;padding:18px;margin:14px 0;color:#17394e}#ppLegacyPanel .f26-post-body{font:15px/1.65 system-ui;color:#17394e}#ppLegacyPanel .f26-author{display:flex;gap:10px;align-items:center}#ppLegacyPanel .f26-author-info{display:grid}#ppLegacyPanel .f26-avatar{width:40px;height:40px;border-radius:50%;overflow:hidden;background:#daeaf7;display:grid;place-items:center}#ppLegacyPanel .f26-avatar img{max-width:100%}#ppLegacyPanel .f26-post-top{display:flex;justify-content:space-between;gap:10px}#ppLegacyPanel .f26-post-date{font-size:12px;color:#57738a}.f26-modal{width:620px;padding:24px;border:1px solid #a9c8df;border-radius:20px;color:#17394e;background:#f5faff}.f26-modal label{display:block;margin:12px 0}.f26-modal input,.f26-modal textarea,.f26-modal select{box-sizing:border-box;width:100%;padding:11px;border:1px solid #a5c5dc;border-radius:10px;background:#fff;color:#17394e;font:15px system-ui}.f26-modal button{min-height:38px;padding:9px 13px;border:1px solid #acc9df;border-radius:9px;background:#e1eef9;color:#17394e;cursor:pointer}
html body[class].pp-shared-shell.pp-v6-unified.pp-final-modern,html body[class].portal.pp-v6-unified.pp-final-modern{background-color:#6e9dbf!important;background-image:radial-gradient(ellipse 90% 700px at 52% 10%,rgba(189,224,246,.56),transparent 78%),linear-gradient(175deg,#6093ba 0%,#79aace 39%,#6799bd 75%,#507fa4 100%)!important;background-attachment:fixed!important}
html body[class].pp-shared-shell.pp-v6-unified.pp-final-modern.pp-compose-embedded{background:#f5faff!important}
.pp-create-modal{max-width:calc(100% - 24px)}
@media(max-width:600px){.pp-create-modal{max-width:calc(100% - 12px)}}

/* 2026-10-28: Watek otwierany parametrem ?topic= ma ukrywac zwykly feed bez wzgledu na display w motywach. */
#ppLegacyPanel[hidden], #ppFeed[hidden]{display:none!important}
#ppLegacyPanel:not([hidden]){min-width:0;width:100%;box-sizing:border-box;grid-column:auto;overflow-wrap:anywhere}
#ppLegacyPanel .f26-post,#ppLegacyPanel .f26-topic-heading{min-width:0;max-width:100%;overflow-wrap:anywhere}
