/* The preview and publication use the same drawing surface. */
.zCanvas{position:relative;isolation:isolate;overflow:hidden;width:100%;background-position:center;background-size:cover;box-sizing:border-box}
.zPostCanvas{aspect-ratio:16/9}
.zStoryCanvas{position:absolute;inset:0;width:100%;height:100%}
.zCanvasMedia{position:absolute;inset:0;overflow:hidden}
.zCanvasWords{position:absolute;z-index:1;box-sizing:border-box;width:max-content;max-width:90%;white-space:pre-wrap;overflow-wrap:anywhere;text-align:center;line-height:1.14;text-shadow:0 1px 3px #23172888;pointer-events:none}
.zCanvasWords.dragCaption{touch-action:none;pointer-events:auto;cursor:move;user-select:none}
.zCanvasMedia>.creativeMedia,.momentViewer .zCanvasMedia>.stageMedia{display:block;width:100%;height:100%;object-fit:contain}
.zCanvasMedia>.creativeMedia.portraitMedia,.momentViewer .zCanvasMedia>.stageMedia.portraitMedia{object-fit:contain}
button.textPostOpen{display:block;width:100%;border:none;padding:0;margin:.45rem 0;border-radius:12px;overflow:hidden;background:transparent}
.postCaption,.creativeCaption{text-align:left;white-space:pre-wrap;overflow-wrap:anywhere}
.post .mediaButton,.post .postVideo{aspect-ratio:16/9;width:100%;height:auto;padding:0;overflow:hidden}
.post .mediaButton img.postphoto,.post .postVideo .videoPoster{width:100%;height:100%;max-height:none;object-fit:contain}
.creativeFullscreen[open],.postFullscreen[open]{box-sizing:border-box;position:fixed;inset:0;padding:0;margin:0;width:100vw;max-width:none;height:100dvh;max-height:none;overflow:hidden;border:0;border-radius:0;background:#121019;color:#fff}
.creativeFullscreen>.line,.postFullscreen>.line{position:absolute;inset:0 0 auto;z-index:4;margin:0;padding:max(10px,env(safe-area-inset-top)) 14px 10px;background:linear-gradient(#161222c9,transparent);display:flex;align-items:center;gap:12px;justify-content:space-between;color:#fff;pointer-events:none}
.creativeFullscreen>.line h2,.postFullscreen>.line h2{margin:0;color:white;font-size:1.1rem}
.creativeFullscreen>.line button,.postFullscreen>.line button{pointer-events:auto;background:#292232eb;color:#fff}
.creativeFullscreen>.stack,.creativeFullscreen form,.creativeLayer,.creativeStage,.postFullscreen>.stack{position:absolute;inset:0;margin:0;padding:0;display:flex;flex-direction:column;justify-content:center;gap:0}
.creativeCaption{flex:none;margin:0;line-height:1.25;font-size:1rem}
.creativeCaption[hidden],.creativeSheet[hidden]{display:none}
.creativeTools{position:absolute;z-index:3;top:max(56px,calc(env(safe-area-inset-top) + 50px));right:max(10px,env(safe-area-inset-right));display:flex;flex-flow:column;gap:5px;max-height:calc(100% - 125px);overflow-y:auto}
.creativeTool{box-sizing:border-box;flex:0 0 auto;width:43px;height:43px;min-width:0;border-radius:50%;padding:0;border:1px solid #daceff40;background:#1c1827e8;color:#fff;font:bold 20px/1 system-ui;box-shadow:0 2px 7px #0004}
.creativeSheet{z-index:5;position:absolute;inset:auto max(8px,env(safe-area-inset-right)) max(58px,calc(env(safe-area-inset-bottom) + 56px)) max(8px,env(safe-area-inset-left));max-height:52dvh;overflow:auto;display:grid;gap:10px;padding:15px;border-radius:18px;background:#25222fee;color:#fff;border:1px solid #62596b;box-shadow:0 6px 28px #0008}
.creativeSheetHead{display:flex;align-items:center;justify-content:space-between}
.creativeSheet label{color:#fff}.creativeSheet input,.creativeSheet textarea,.creativeSheet select{box-sizing:border-box;width:100%}
.creativeGallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(80px,1fr));gap:7px}
.wallSwatch{padding:2px;overflow:hidden;border-radius:9px}.wallSwatch img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:6px}.wallSwatch span{display:block;font-size:.78rem}
.positionGuides{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}
.creativeFullscreen form>button[type=submit],.creativeFullscreen form>button:last-child{position:absolute;z-index:4;bottom:max(10px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);min-width:min(80vw,200px);color:#241641;background:#d9c9ff}
.creativeFullscreen form>small{position:absolute;z-index:4;bottom:65px;left:10px;color:#fff;background:#201823c9}
.creativeFullscreen form>small:empty{display:none}
.creativeClean .creativeTools .creativeTool:not(.creativeEye),.creativeClean>.line,.creativeClean form>button:last-child{visibility:hidden}
.chatFigures{display:flex;gap:10px;overflow-x:auto;padding:8px 3px 14px;scroll-snap-type:x proximity}
.figureTile{display:grid;grid-template-rows:minmax(0,1fr) auto auto;align-items:center;justify-items:center;flex:0 0 150px;box-sizing:border-box;height:130px;border-radius:15px;scroll-snap-align:start;border:1px solid #65517d;background:radial-gradient(ellipse at 50% 29%,#4a315b,#211c2d 70%);color:#fff;padding:7px}
.figureTile:disabled{opacity:.88}.figureTile[aria-pressed=true]{outline:2px solid #ad81ff}
.figureTile img{height:100%;max-height:76px;width:100%;object-fit:contain;filter:drop-shadow(0 3px 7px #aa7ce14d)}
.figureTile .freeGlyph{font-size:36px;color:#ecc874}.figureTile small{color:#e7d5ff}
.callRoom:not(.hasRemoteFrame) .callVideos{background-image:var(--call-wall);background-repeat:no-repeat;background-size:auto 100%;background-position:50% 100%}
.callRoom .callVideos .callArtwork{position:absolute;left:50%;bottom:auto;transform:translateX(-50%);max-width:40%;max-height:22%;object-fit:contain}


.post .postVideo>video{width:100%;height:100%;max-height:none;object-fit:contain}

.giftPickerItem{display:flex;align-items:center;gap:12px;text-align:start}.giftPickerItem img{width:48px;height:48px;object-fit:contain;filter:drop-shadow(0 2px 4px #7b4bb44d)}

.callRoom:not(.hasRemoteFrame) .callVideos{background-size:cover;background-position:center top}
.callRoom .callVideos .callPhoto{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none}
.callRoom.hasRemoteFrame .callPhoto{display:none}
@media(min-aspect-ratio:3/5){.callRoom .callVideos .callPhoto{inset:0 auto 0 50%;transform:translateX(-50%);width:auto;max-width:none;object-fit:contain;mask-image:linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent)}}

.composerRow .promptPhoto{flex:0 0 80px;display:grid;place-items:center;min-height:54px;background:var(--surface,#302941);border-radius:14px}
.promptPhoto img{height:49px;width:66px;object-fit:contain}.scope3d,.pickerScope{object-fit:contain;width:31px;height:31px;vertical-align:middle}.infoRow .scope3d{border:0;background:none;padding:0}.pickerScope{margin:2px 6px}
.friendActions,.friendTabs{display:flex;align-items:center;gap:6px}.friendTabs{overflow-x:auto}.friendTabs button[aria-pressed=true]{outline:2px solid #9c81f8}
.photoCollage{display:grid;width:100%;aspect-ratio:40/27;gap:2px;overflow:hidden;grid-template:repeat(2,minmax(0,1fr))/repeat(4,minmax(0,1fr));background:transparent}
.albumCell{position:relative;min-width:0;min-height:0;overflow:hidden}.photoCollage .albumOpen{width:100%;height:100%;padding:0;border:0;border-radius:0;background:none}.albumCell>img{display:block;width:100%;height:100%;max-height:none;object-fit:cover}.album1 .albumCell{grid-area:1/1/3/5}
.album2 .albumCell{grid-row:span 2;grid-column:span 2}.album3 .albumCell,.album4 .albumCell{grid-column:span 2}.album3>:first-child,.album5>:first-child{grid-area:1/1/3/3}
.composePhotos{width:min(640px,96vw);max-height:95dvh}.composePhotos .removePhoto{position:absolute;top:4px;right:4px;padding:0;width:36px;height:36px;border-radius:50%;background:#17141fbf;color:white;font-size:25px;line-height:1}
.accessBanner{position:relative;display:flex;align-items:center;padding:0 5%;aspect-ratio:3/1;color:white;border-radius:14px;background: #1f1733 url('/zocial/assets/social/chat_access.webp') center/cover no-repeat}.accessBanner h2{color:#fff;font-size:clamp(21px,4vw,36px)}
.figureTile.giftPriceTile{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px}.giftPriceTile .giftMain{width:78px;height:70px}.giftNumber{display:flex;align-items:center;justify-content:center;gap:4px;font-size:16px;font-weight:700}.giftNumber .socialArt{width:18px;height:18px;object-fit:contain}
.productTile .catalogTitle{display:block;padding:0;background:transparent;color:inherit;text-align:start;font:inherit;font-weight:700}
.photoCollage .albumCell>img,.albumLocal>.albumOpen>img{width:100%;height:100%;max-width:none;max-height:none;margin:0;border-radius:0;object-fit:cover}
.bubble:has(.albumBoard){width:min(86%,420px)}
