/* PEGELZWO Facebook Publishing v1.7.93 */
.pz-fb-post-action{display:flex;align-items:flex-start;justify-content:flex-end;flex-direction:column;gap:5px;margin:8px 0}
.pz-fb-post-action form{margin:0}.pz-fb-post-action small{font-size:.78rem;color:var(--muted,#aab1c7)}
.pz-fb-post-action button{font-size:.88rem;white-space:normal}
.pz-diego-admin img{width:100%;max-width:500px;aspect-ratio:1/1;object-fit:contain;border-radius:12px;display:block;margin:10px 0}
.pz-fb-release-list{display:grid;gap:5px}.pz-fb-release-row{display:grid;grid-template-columns:64px minmax(0,1fr) auto;align-items:center;gap:10px;padding:8px;border:1px solid var(--border,rgba(255,255,255,.12));border-radius:10px;min-width:0}
.pz-fb-release-row img{width:64px;height:64px;object-fit:cover;border-radius:8px}.pz-fb-release-row>div{min-width:0}.pz-fb-release-row strong{overflow-wrap:anywhere}.pz-fb-release-row p{margin:3px 0}
.pz-fb-news-toggle{display:flex;align-items:center;gap:9px;padding:10px;border:1px solid var(--border,rgba(255,255,255,.15));border-radius:10px;margin:6px 0}.pz-fb-news-toggle input{flex:0 0 auto;width:18px;height:18px}
@media(max-width:640px){.pz-fb-release-row{grid-template-columns:48px minmax(0,1fr)}.pz-fb-release-row img{width:48px;height:48px}.pz-fb-release-row .pz-fb-post-action{grid-column:1/-1;align-items:stretch}.pz-fb-release-row .pz-fb-post-action button{width:100%}}

/* PEGELZWO Story tiles and editor */
.pz-social-cards{margin-top:10px}.pz-social-cards .pz-diego-card{min-width:0}.pz-social-cards .pz-diego-card img{display:block;width:100%;max-height:125px;object-fit:contain;border-radius:9px;margin:4px 0}.pz-social-cards .pz-fb-post-action{margin:3px 0;gap:3px}.pz-social-cards .pz-fb-post-action button{font-size:.8rem}.pz-story-form .pz-story-preview{display:block;width:100%;max-width:220px;max-height:380px;object-fit:contain;margin:8px auto;border-radius:9px}.pz-story-form textarea{width:100%;min-height:110px;resize:vertical}.pz-story-form form{display:grid;gap:7px}.pz-story-form{max-width:760px}

/* Facebook Story editor: responsive dropzone and processing overlay (1.7.95) */
.pz-story-upload{display:grid;gap:4px}.pz-story-upload>strong small{font-weight:400;color:var(--muted,#aab1c7)}
.pz-story-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:132px;padding:16px;border:2px dashed var(--border,rgba(180,190,220,.45));border-radius:12px;background:var(--card,rgba(255,255,255,.04));text-align:center;cursor:pointer;transition:border-color .18s,background .18s;min-width:0}
.pz-story-drop:hover,.pz-story-drop:focus-visible,.pz-story-drop.is-dragover{border-color:#55d9f2;background:rgba(85,217,242,.08);outline:none}.pz-story-upload-icon{font-size:1.8rem;color:#64d9f2}.pz-story-drop span:not(.pz-story-upload-icon){color:var(--muted,#aab1c7);font-size:.83rem}.pz-story-drop img{max-height:180px;max-width:100%;object-fit:contain;border-radius:9px;margin-top:6px}.pz-story-file-details{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;font-size:.84rem}.pz-story-file-details span{overflow-wrap:anywhere}.pz-story-file-details button{flex-shrink:0}.pz-story-file-error{color:#ff8b98;font-size:.84rem;margin:0}
.pz-story-busy[hidden],.pz-story-file-details[hidden],.pz-story-file-error[hidden],.pz-story-drop img[hidden]{display:none!important}.pz-story-busy{position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(5,7,20,.88);backdrop-filter:blur(8px)}.pz-story-busy-card{width:min(100%,390px);padding:30px 22px;border:1px solid rgba(94,219,244,.5);border-radius:18px;background:#151625;box-shadow:0 0 40px rgba(146,65,230,.24);text-align:center;color:#fff}.pz-story-busy-card strong{display:block;font-size:1.12rem}.pz-story-busy-card p{color:#c5c8d9;font-size:.9rem;margin:10px 0 0}.pz-story-spinner{display:block;width:52px;height:52px;margin:0 auto 20px;border:4px solid rgba(255,255,255,.16);border-top-color:#57dcf2;border-right-color:#d76df4;border-radius:50%;animation:pz-story-spin .8s linear infinite}@keyframes pz-story-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.pz-story-spinner{animation-duration:2s}}

/* V1.7.96: unified story upload, dashboard image and live preview */
#pz-story-file{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;overflow:hidden!important;clip-path:inset(50%)!important;pointer-events:none!important}
.pz-social-cards .pz-diego-card img{width:100%;max-width:none;max-height:none;aspect-ratio:16/9;object-fit:cover;margin:0 0 6px;border-radius:9px}
.pz-story-live{position:relative;width:min(100%,270px);margin:8px auto;aspect-ratio:9/16;overflow:hidden;border-radius:9px;background:#10101d}.pz-story-live .pz-story-preview{display:block;width:100%;height:100%;max-width:none;max-height:none;margin:0;object-fit:fill}.pz-story-live-photo,.pz-story-live-text{position:absolute;left:6.02%;right:6.02%;top:21.35%;bottom:22.65%;overflow:hidden;pointer-events:none}.pz-story-live-photo{background-position:center;background-repeat:no-repeat;background-size:contain}.pz-story-live-text{display:flex;align-items:center;justify-content:center;text-align:center;white-space:pre-wrap;overflow-wrap:anywhere;padding:4%;font-size:clamp(11px,2.1vw,17px);line-height:1.32;color:#fff;text-shadow:1px 2px 4px #000,0 0 5px #000}.pz-story-live-text[data-font="chalk"]{font-family:"Comic Sans MS","Segoe Print",cursive;font-style:italic}.pz-story-live-text[data-font="bold"]{font-family:Arial,Helvetica,sans-serif;font-weight:900}
/* V1.7.97 interactive Story Designer */
.pz-story-live{touch-action:pan-y}.pz-story-live-photo,.pz-story-live-text{right:auto;bottom:auto;transform:translate(-50%,-50%);cursor:grab;pointer-events:auto;touch-action:none;user-select:none;-webkit-user-select:none;max-width:87.96%;max-height:56%;box-sizing:border-box}
.pz-story-live-photo{width:75%;height:42%;background-size:contain;mask-image:linear-gradient(to bottom,transparent 0%,#000 var(--pz-feather,20%),#000 calc(100% - var(--pz-feather,20%)),transparent 100%);-webkit-mask-image:linear-gradient(to bottom,transparent 0%,#000 var(--pz-feather,20%),#000 calc(100% - var(--pz-feather,20%)),transparent 100%)}
.pz-story-live-text{width:76%;min-height:8%;padding:1.5%;overflow:hidden;line-height:1.25;word-break:break-word}.pz-story-live-photo.is-moving,.pz-story-live-text.is-moving{cursor:grabbing;outline:1px dashed #54ddf3}.pz-story-live-text:focus-visible,.pz-story-live-photo:focus-visible{outline:2px dashed #54ddf3}
.pz-story-controls{border:1px solid var(--border,rgba(180,190,220,.3));border-radius:12px;padding:10px;display:grid;gap:8px;min-width:0}.pz-story-controls legend{padding:0 5px;font-weight:700}.pz-story-controls p{margin:0}.pz-story-controls label{display:flex;align-items:center;justify-content:space-between;gap:12px}.pz-story-controls input[type=range]{max-width:55%;accent-color:#6cd8f0}.pz-story-controls button{justify-self:start}

.pz-story-safe{position:absolute;left:6.02%;right:6.02%;top:21.35%;bottom:22.65%;overflow:hidden;border-radius:4px}.pz-story-safe .pz-story-live-photo,.pz-story-safe .pz-story-live-text{max-width:100%;max-height:100%}

/* V1.7.98: compact social tiles and responsive Story Designer */
.pz-social-cards .pz-diego-card .pz-fb-post-action,.pz-social-cards .pz-diego-card .pz-fb-post-action form,.pz-social-cards .pz-diego-card .pz-fb-post-action button{width:100%;max-width:none;box-sizing:border-box}
.pz-social-cards .pz-story-tile{padding:0!important;overflow:hidden;display:block;min-height:0;position:relative}.pz-social-cards .pz-story-tile img{width:100%;height:100%;min-height:200px;display:block;object-fit:cover;border-radius:inherit}.pz-social-cards .pz-story-tile:focus-visible{outline:3px solid #5be2f5;outline-offset:3px}
.pz-story-form{max-width:980px}.pz-story-form h1{margin:0 0 5px}.pz-story-form form{gap:5px}.pz-story-form textarea{min-height:68px}.pz-story-form .pz-story-controls{gap:4px;padding:7px}.pz-story-form .pz-story-drop{min-height:76px;padding:8px;gap:2px}.pz-story-form .pz-story-upload-icon{font-size:1.2rem}.pz-story-form .pz-story-drop img{max-height:90px}.pz-story-form .pz-story-controls label{gap:5px}.pz-story-center-actions{display:grid;grid-template-columns:1fr 1fr;gap:5px}.pz-story-center-actions button{font-size:.76rem;padding:7px 4px;min-width:0}.pz-story-live{margin:3px auto;width:min(100%,250px)}.pz-story-preview-column{position:sticky;top:8px;z-index:2;align-self:start;max-height:62vh;display:flex;justify-content:center;pointer-events:none}.pz-story-preview-column .pz-story-live{pointer-events:auto;max-height:62vh;width:auto;height:auto;aspect-ratio:9/16}.pz-story-editor-layout{display:block}.pz-story-safe:before,.pz-story-safe:after{content:"";position:absolute;z-index:15;pointer-events:none;display:none;background:#55e7f5;opacity:.9}.pz-story-safe.pz-guide-x:before{display:block;left:50%;top:0;bottom:0;width:1px;border-left:1px dashed #55e7f5;background:none}.pz-story-safe.pz-guide-y:after{display:block;top:50%;left:0;right:0;height:1px;border-top:1px dashed #55e7f5;background:none}
@media(min-width:760px){.pz-story-editor-layout{float:right;width:45%;margin:0 0 12px 14px}.pz-story-form form{width:53%}.pz-story-preview-column{max-height:75vh}.pz-story-preview-column .pz-story-live{max-height:75vh}.pz-story-form:after{content:"";display:block;clear:both}}
@media(max-width:759px){.pz-story-preview-column{position:sticky;top:0;max-height:38vh;background:var(--card,#111525);border-radius:10px;padding:3px 0;box-shadow:0 4px 12px rgba(0,0,0,.22)}.pz-story-preview-column .pz-story-live{max-height:37vh}.pz-story-form form{margin-top:4px}}
/* V1.7.99: compact Story tools and archive */
.pz-story-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin:5px 0 8px}
.pz-story-tab{display:flex;align-items:center;justify-content:center;text-align:center;padding:8px 3px;border:1px solid var(--border,#555);border-radius:8px;color:inherit;text-decoration:none;font-weight:700;font-size:.83rem}
.pz-story-tab.is-active{border-color:#56dcef;background:rgba(86,220,239,.12)}
.pz-story-center-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:3px}
.pz-story-center-actions button{width:100%;font-size:clamp(.62rem,1.6vw,.78rem);padding:7px 2px;white-space:normal}
.pz-story-photo-tools{display:grid;gap:3px}.pz-story-turn-buttons{display:grid;grid-template-columns:1fr 1fr;gap:3px}.pz-story-turn-buttons button{width:100%}
.pz-story-archive-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,125px),1fr));gap:7px}
.pz-story-archive-item{min-width:0;display:grid;gap:3px;padding:5px;border:1px solid var(--border,#555);border-radius:9px}
.pz-story-archive-item img{width:100%;aspect-ratio:9/16;object-fit:contain;background:#111321;border-radius:6px}
.pz-story-archive-item small{text-align:center}.pz-story-archive-actions{display:grid;grid-template-columns:30px 1fr 30px;gap:3px}
.pz-story-archive-actions button{min-width:0;padding:5px 1px;font-size:.7rem}
.pz-social-cards{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}.pz-social-cards>*{min-width:0!important}

/* V1.7.100: locally bundled fonts and compact visual font picker */
@font-face{font-family:PZStoryAnton;src:url('/assets/branding/story-anton.ttf?v=1.7.100') format('truetype');font-display:swap}
@font-face{font-family:PZStoryBebas;src:url('/assets/branding/story-bebas.ttf?v=1.7.100') format('truetype');font-display:swap}
@font-face{font-family:PZStoryCaveat;src:url('/assets/branding/story-caveat.ttf?v=1.7.100') format('truetype');font-display:swap}
@font-face{font-family:PZStoryMarker;src:url('/assets/branding/story-marker.ttf?v=1.7.100') format('truetype');font-display:swap}
.pz-story-font-field{min-width:0;margin:0;padding:5px;border:1px solid var(--border,#555);border-radius:8px}
.pz-story-font-field legend{padding:0 4px;font-size:.82rem;font-weight:700}
.pz-story-font-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px}
.pz-story-font-option{position:relative;display:flex;min-width:0;min-height:45px;align-items:center;justify-content:center;text-align:center;padding:4px 2px;border:1px solid var(--border,#555);border-radius:7px;cursor:pointer;background:var(--card,#171b2a);color:inherit;line-height:1.05;font-size:clamp(.69rem,1.7vw,.97rem);overflow:hidden}
.pz-story-font-option input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.pz-story-font-option:has(input:checked){border-color:#55dff0;box-shadow:inset 0 0 0 1px #55dff0;background:rgba(85,223,240,.12)}
.pz-story-font-option:has(input:focus-visible){outline:2px solid #55dff0;outline-offset:2px}
.pz-font-anton,.pz-story-live-text[data-font="anton"],.pz-story-live-text[data-font="bold"]{font-family:PZStoryAnton,Impact,sans-serif;font-style:normal;font-weight:normal}
.pz-font-bebas,.pz-story-live-text[data-font="bebas"]{font-family:PZStoryBebas,Impact,sans-serif;font-style:normal;font-weight:normal}
.pz-font-caveat,.pz-story-live-text[data-font="caveat"]{font-family:PZStoryCaveat,cursive;font-style:normal;font-weight:normal}
.pz-font-marker,.pz-story-live-text[data-font="marker"],.pz-story-live-text[data-font="chalk"]{font-family:PZStoryMarker,cursive;font-style:normal;font-weight:normal}
