/* Caption artwork never shares the profile or post-message layout. */
.caption-overlay{position:absolute;z-index:2;transform:translate(-50%,-50%);width:60%;max-width:calc(100% - 90px);box-sizing:border-box;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.18;padding:6px 10px;pointer-events:none;user-select:none;letter-spacing:.01em}
.caption-shadow{text-shadow:0 2px 5px #000d,0 0 15px #0007}.caption-outline{-webkit-text-stroke:1px #14251d;paint-order:stroke fill;text-shadow:0 2px 3px #0008}.caption-label{background:#0b171de0;border-radius:10px}.caption-glass{background:#ffffff25;border:1px solid #ffffff60;border-radius:12px;backdrop-filter:blur(8px);text-shadow:0 1px 3px #000a}

#creatorStudio{max-width:1050px;width:calc(100% - 24px);padding:0;border:1px solid #ffffff20;border-radius:24px;background:#101d19;color:#f7f6ef;max-height:94dvh;overflow:auto;box-shadow:0 24px 100px #0009}#creatorStudio::backdrop{background:#030b08cc;backdrop-filter:blur(8px)}
#creatorStudio .studio-head{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;border-bottom:1px solid #ffffff15}#creatorStudio h2{margin:4px 0 0;font-size:23px;color:#fff9ec}#creatorStudio small{font-size:9px;letter-spacing:3px;color:#e9c981}#creatorStudio button{color:#f7f6ef;border:1px solid #ffffff25;background:#ffffff09;border-radius:10px;min-height:40px;cursor:pointer}#creatorStudio button:disabled{opacity:.35}#creatorStudio .primary{background:#edc77c;color:#17362a;border:0;font-weight:700}#creatorStudio label{color:#d8e4dc;font-size:12px;margin:12px 0 5px;display:block}#creatorStudio input:not([type=checkbox]),#creatorStudio select,#creatorStudio textarea{box-sizing:border-box;width:100%;background:#1b2e26;color:#fff9ec;border:1px solid #ffffff20;border-radius:9px;padding:9px;font:inherit}#creatorStudio input[type=range]{padding:0;accent-color:#edc77c;height:24px}#creatorStudio input[type=color]{height:40px;padding:3px}#creatorStudio textarea{resize:vertical;min-height:64px}#creatorStudio .studio-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(290px,.8fr);gap:20px;padding:20px}#creatorStudio .studio-stage{position:relative;background:#020806;width:100%;aspect-ratio:4/5;max-height:530px;overflow:hidden;border-radius:16px;isolation:isolate}#creatorStudio canvas,#creatorStudio video{width:100%;height:100%;object-fit:contain;display:block}#studioCaptionLayer{position:absolute;inset:0;pointer-events:none}#studioCaptionLayer .caption-overlay{pointer-events:auto;touch-action:none;cursor:grab;outline:1px dashed #ffffff80;outline-offset:3px}#creatorStudio .studio-safe-label{position:absolute;bottom:10px;left:0;right:0;text-align:center;font-size:10px;color:#ffffff75;pointer-events:none}#creatorStudio .studio-row{display:flex;gap:10px;align-items:end}#creatorStudio .studio-row>label{flex:1;min-width:0}#creatorStudio .studio-row>button{margin-bottom:0;white-space:nowrap}#creatorStudio .studio-history,#creatorStudio .studio-toggle-row,#creatorStudio .studio-tabs{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}#creatorStudio .studio-toggle-row label{margin:8px 0}#creatorStudio .studio-tabs{margin:0 0 16px;border-bottom:1px solid #ffffff15;padding-bottom:12px}#creatorStudio .studio-tabs .active{background:#edc77c;color:#17362a}#creatorStudio .studio-tip{font-size:11px;color:#a7bcb1;line-height:1.5}#creatorStudio .studio-footer{display:flex;gap:10px;align-items:center;padding:16px 20px;position:sticky;bottom:0;background:#101d19;border-top:1px solid #ffffff20;z-index:5}#studioError{margin-right:auto;font-size:12px;color:#f3ca91}#creatorStudio [hidden]{display:none!important}
@media(max-width:680px){#creatorStudio{width:100%;max-width:none;height:100dvh;max-height:100dvh;border-radius:0;border:0}#creatorStudio .studio-layout{grid-template-columns:1fr;padding:12px;gap:14px}#creatorStudio .studio-stage{max-height:46dvh;min-height:230px}#creatorStudio .studio-head{padding:12px 16px}#creatorStudio .studio-tools{padding:0 6px}#creatorStudio .studio-footer{padding-bottom:max(12px,env(safe-area-inset-bottom))}#creatorStudio .studio-history button{font-size:11px;padding:5px 8px}}
.opening-brand-screen.has-logo-intro{background:#071c17;position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:0}.logo-intro-video{width:100%;height:100%;object-fit:contain;position:absolute;inset:0}.logo-intro-fallback{width:110px;position:absolute;left:50%;top:40%;transform:translate(-50%,-50%)}.has-logo-intro .opening-progress{position:absolute;bottom:8%;color:#b6cbbf;z-index:1;font-size:11px}.has-logo-intro .opening-art,.has-logo-intro>.opening-brand-title,.has-logo-intro>.opening-tagline,.has-logo-intro>.opening-signature{display:none}
@media(prefers-reduced-motion:reduce){.logo-intro-video{display:none}.logo-intro-fallback{display:block!important}}

#creatorStudio .emoji-picker{background:#192e25;color:#fff9ec;border-color:#ffffff20}#creatorStudio .emoji-grid{max-height:170px;overflow:auto}#creatorStudio .emoji-choice{font-size:24px}#creatorStudio .emoji-tabs{max-height:90px;overflow:auto}

.has-logo-intro.static-intro>.opening-brand-title{display:block;position:absolute;top:53%;left:0;right:0;text-align:center;color:#fff9ec}.has-logo-intro.static-intro>.opening-tagline{display:block;position:absolute;top:62%;left:0;right:0;text-align:center;color:#b6cbbf}

/* Compact footer is outside the media viewport; no profile overlays. */
#shortsViewer .short-footer{position:absolute;bottom:0;left:0;right:0;padding:7px 12px calc(7px + env(safe-area-inset-bottom));box-sizing:border-box;background:#080d0b;color:#fff;z-index:5;pointer-events:auto}
#shortsViewer .short-identity-row{display:flex;align-items:center;gap:8px;min-width:0}
#shortsViewer .short-author{position:static;display:flex;flex:1;align-items:center;gap:6px;min-width:0;flex-wrap:nowrap;padding:0;margin:0;background:none;max-height:none}
#shortsViewer .short-author>div{min-width:0;flex:1}
#shortsViewer .short-author .profile-avatar-link,#shortsViewer .short-author .avatar{width:28px!important;height:28px!important;min-width:28px;min-height:28px;flex:0 0 28px}
#shortsViewer .short-author .profile-name-link{font-size:11px;line-height:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#shortsViewer .short-author small{font-size:9px;line-height:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#shortsViewer .short-author [data-follow-user],#shortsViewer .short-author .membership-button{font-size:9px;min-height:28px;padding:4px 6px!important;flex-shrink:0}
#shortsViewer .short-audience{max-width:34%;min-width:0;text-align:right;flex-shrink:0}
#shortsViewer .short-audience .post-audience{font-size:9px;padding:2px 6px;margin:0;max-width:100%;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}
#shortsViewer .short-audience small{display:block;font-size:8px;line-height:12px;color:#bccbc2}
#shortsViewer .short-details,body.media-focus #shortsViewer .short-details{position:static;max-height:42px;overflow:auto;padding:0;margin:0;background:none;border-radius:0;pointer-events:auto}
#shortsViewer .short-details>p{font-size:11px;line-height:16px;margin:4px 0 0;max-height:none}
#shortsViewer .short-details>strong{font-size:11px}
#shortsViewer .short-media{bottom:var(--viewer-footer-height,76px)}
#shortsViewer .short-reactions{bottom:calc(var(--viewer-footer-height,76px) + 18px);max-height:calc(100% - var(--viewer-footer-height,76px) - 65px);gap:6px}
#shortsViewer .short-play{bottom:calc(var(--viewer-footer-height,76px) + 18px)}
#shortsViewer .short-seek{bottom:calc(var(--viewer-footer-height,76px) + 5px)}
#shortsViewer .short-album-nav,body.immersive-feed #shortsViewer .short-album-nav{top:auto;bottom:14px;left:60px;right:50px}
#shortsViewer .short-album-nav>p{display:none}
#shortsViewer .shorts-hint{display:none}
#shortsViewer .viewer-brand{top:7px;left:9px;gap:5px}
#shortsViewer .viewer-brand .brand-icon{width:21px!important;height:21px!important;border-radius:5px!important}
#shortsViewer .viewer-brand>span{font-size:11px}

/* Edge-to-edge caption placement and persistent live editing preview. */
.caption-overlay{width:max-content;max-width:calc(100% - 8px)}
#creatorStudio{height:min(850px,96dvh);max-height:96dvh;overflow:hidden;box-sizing:border-box;grid-template-rows:auto minmax(0,1fr) auto}
#creatorStudio[open]{display:grid}
#creatorStudio .studio-head{padding:10px 16px}
#creatorStudio .studio-layout{min-height:0;overflow:hidden;padding:12px;gap:14px}
#creatorStudio .studio-visual{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden}
#creatorStudio .studio-stage{flex:1;min-height:0;max-height:none;aspect-ratio:auto!important;border-radius:12px}
#creatorStudio .studio-history{flex-shrink:0;gap:5px;margin-top:8px;flex-wrap:nowrap}
#creatorStudio .studio-history button{font-size:10px;min-height:32px;padding:4px 7px;flex:1}
#creatorStudio .studio-tools{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 6px 16px}
#creatorStudio .studio-tabs{position:sticky;top:0;z-index:4;background:#101d19;padding:4px 0 8px;margin:0 0 8px}
#creatorStudio .studio-footer{position:static;padding:8px 12px;min-height:48px;box-sizing:border-box}
#creatorStudio .studio-auto{width:100%;background:linear-gradient(120deg,#edc77c,#f9e5b7);color:#153c2a;font-weight:700}
#creatorStudio .studio-safe-label{display:none}
@media(max-width:680px){#creatorStudio{height:100dvh;max-height:100dvh;width:100%;margin:0;inset:0}#creatorStudio .studio-layout{grid-template-columns:1fr;grid-template-rows:minmax(130px,43%) minmax(0,1fr);gap:10px;padding:8px}#creatorStudio .studio-stage{min-height:0;max-height:none}#creatorStudio h2{font-size:18px}#creatorStudio .studio-head{padding:7px 12px}#creatorStudio .studio-footer{padding-bottom:max(8px,env(safe-area-inset-bottom))}}
@media(max-height:480px) and (min-width:600px){#creatorStudio .studio-layout{grid-template-columns:1fr 1fr;grid-template-rows:1fr}}
#shortsViewer .short-media.photo-frame::before{content:'';position:absolute;inset:-25px;background-image:var(--photo-backdrop);background-position:center;background-size:cover;filter:blur(22px) brightness(.65);pointer-events:none;z-index:0}
#shortsViewer .photo-frame>img{position:relative;z-index:1;object-fit:contain}
body.media-focus #shortsViewer .photo-frame>img{object-fit:cover}
#shortsViewer .album-dots button{min-width:18px;min-height:22px;padding:3px!important;border:0;background:transparent}
