body.social-ghost{--ink:#f7f2ff;--muted:#b9afc9;--line:#ffffff25;--purple:#ac78fa;color-scheme:dark;background:#0c0a14!important;color:var(--ink)!important;overflow:hidden!important;margin:0!important}
.social-ghost #u10-header,.social-ghost .wv-shell,.social-ghost .wv-bottom-nav,.social-ghost>header.topbar{display:none!important}
.social-ghost .workspace{position:fixed!important;top:var(--sg-top,0px)!important;left:0!important;right:0!important;height:var(--sg-height,100dvh)!important;min-height:0!important;max-height:none!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:radial-gradient(ellipse at 50% 0,#2a153b50,transparent 55%),#0c0a14!important;box-shadow:none!important}
#sgHeader{display:flex;align-items:center;gap:8px;padding:max(8px,env(safe-area-inset-top)) 12px 8px;background:#181220cc;border-bottom:1px solid #ffffff20;flex:none}#sgHeader img{width:38px;height:38px;object-fit:contain;margin-right:auto}#sgHeader a{font-size:30px;text-decoration:none;color:white}#sgHeader #next{font-size:12px;padding:10px;min-width:0}#sgHeader button{min-height:42px}#sgHeader #undo,#sgHeader #redo{background:transparent;border:1px solid #ffffff30;border-radius:14px;color:white;width:42px}
.social-ghost .studio-head{padding:8px 12px!important;display:block!important;border:0!important}.social-ghost .studio-head>div{display:none}.social-ghost .steps{justify-content:center;width:100%;gap:8px}.social-ghost .step-link{color:#b9afc9;gap:5px;padding:4px}.social-ghost .step-link small{display:none}.social-ghost .step-link b{font-size:11px}.social-ghost .step-num{width:26px;height:26px}.social-ghost .step-link.active{color:#ead9ff}.social-ghost .step-line{max-width:22px}
.social-ghost .page{padding:20px 76px 30px!important;scroll-padding:20px;box-sizing:border-box}.social-ghost .work-grid{display:block!important;max-width:760px;margin:auto}.social-ghost #page0 .section-head,.social-ghost #page0 .tabs,.social-ghost #page0 .attach-row,.social-ghost #page0 .editor-foot,.social-ghost .inspiration{display:none!important}.social-ghost .editor-shell{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}.social-ghost .editor-top{padding:0 0 14px!important;border:0;background:transparent!important}.social-ghost .author b{color:white}.social-ghost #formatToggle{font-size:11px;color:#d6bee9}.social-ghost .title-input{color:white!important;font-size:clamp(23px,4vw,38px)!important;font-weight:700;background:transparent!important;padding:8px 0!important;line-height:1.3;border:0!important}.social-ghost .editor-body{color:#f6f0fa!important;font-size:17px!important;line-height:1.75;min-height:160px;padding:12px 0!important;background:transparent!important}.social-ghost .editor-body img{display:block;width:100%;max-width:100%;height:auto;border-radius:18px;margin:16px 0}.social-ghost .editor-body:focus{outline:none}.social-ghost input::placeholder,.social-ghost [contenteditable]:empty:before{color:#a99cb9!important}
#sgTools,#sgStyle{position:fixed;top:calc(var(--sg-top,0px) + 155px);z-index:65;display:flex;flex-direction:column;gap:3px;padding:5px;border:1px solid #c39deb60;border-radius:22px;background:#21182dbd;backdrop-filter:blur(18px);max-height:calc(var(--sg-height,100dvh) - 250px);overflow:auto;scrollbar-width:none}#sgTools{left:6px;width:54px}#sgStyle{right:6px;width:44px;top:calc(var(--sg-top,0px) + 240px)}#sgTools button,#sgStyle button{min-height:44px;border:0;border-radius:12px;color:white;background:transparent;font-size:11px;white-space:pre-line;padding:6px 2px}#sgTools button:hover,#sgStyle button:hover{background:#9b59e64d}#sgStyle button{font-size:20px}#sgTools.folded>:not(:last-child){display:none}#sgTools[hidden],#sgStyle[hidden],.sg-clean #sgTools,.sg-clean #sgStyle,.sg-keyboard #sgTools,.sg-keyboard #sgStyle{display:none!important}
.social-ghost .footer{background:#191320dd!important;backdrop-filter:blur(18px);border-color:#ffffff20!important;padding:8px 12px max(8px,env(safe-area-inset-bottom))!important;gap:6px}.social-ghost .footer-note{display:none}.social-ghost .footer-left{display:flex;gap:8px;flex-wrap:wrap}.social-ghost .footer button{color:#ead9ff;font-size:11px;min-height:42px}.social-ghost .footer-right{margin-left:auto}.social-ghost .format-tools{position:sticky;top:0;z-index:3;background:#261c35!important;border:1px solid #6f4c91;border-radius:16px;flex-wrap:wrap}.social-ghost .format-tools button{color:white;background:transparent;min-height:40px;min-width:40px}
.social-ghost .poll-box,.social-ghost .audio-panel,.social-ghost .target,.social-ghost .preview-card,.social-ghost .visibility-card,.social-ghost .field input,.social-ghost .field select{background:#201929!important;color:#f5ebff!important;border-color:#ffffff25!important}.social-ghost .poll-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}.social-ghost .poll-options input{min-width:0;width:100%;box-sizing:border-box;background:#30233f;color:white;border:1px solid #77568f;border-radius:12px;padding:12px}.social-ghost .poll-box{border-radius:20px}.social-ghost .preview-side{display:none!important}.social-ghost .preview-side.show-mobile{display:block!important;margin-top:20px}.social-ghost .preview-sticky{position:static}.social-ghost #socialSession:not(:empty){position:fixed;z-index:80;bottom:65px;left:70px;right:60px;max-width:650px;background:#2c203a;color:white;font-size:12px;padding:8px}.social-ghost #socialSession[hidden]{display:none!important}.social-ghost .sub,.social-ghost label,.social-ghost .target-copy,.social-ghost h2{color:#dacfe5}.social-ghost button:focus-visible,.social-ghost a:focus-visible{outline:2px solid #c89aff;outline-offset:2px}.social-ghost dialog{background:#21182d;color:white;border-color:#7b559a;max-height:90dvh;overflow:auto}.social-ghost [hidden]{display:none!important}
.social-ghost.sg-clean .page,.social-ghost.sg-keyboard .page{padding-inline:18px!important}.social-ghost.sg-keyboard .studio-head{display:none!important}.social-ghost.sg-keyboard .footer{padding-block:4px!important}.social-ghost.sg-keyboard #sgHeader{padding-block:4px}.social-ghost .page:not(#page0){padding-inline:20px!important}
@media(min-width:900px){#sgTools{left:20px;width:68px}#sgStyle{right:20px;width:58px}.social-ghost .page{padding-top:30px!important}.social-ghost .editor-body{font-size:19px!important}.social-ghost .steps{gap:24px}}
@media(max-height:500px){#sgTools{top:100px;max-height:calc(var(--sg-height) - 160px)}#sgStyle{top:140px}.social-ghost .studio-head{padding:2px!important}.social-ghost .page{padding-top:8px!important}}
.social-ghost #wv-info-footer{display:none!important}
/* Immersive composition must not inherit discovery-page inserts. */
.social-ghost .wv-mobile-nav,.social-ghost .workspace>.wvPromotionBanner{display:none!important}
.social-ghost .editor-body,.social-ghost .preview-card,.social-ghost .post-body{overflow-wrap:anywhere!important;word-break:break-word;min-width:0}
.social-ghost .editor-body *{max-width:100%;box-sizing:border-box;overflow-wrap:anywhere}
.social-ghost .slide-window{min-height:0;min-width:0;flex:1 1 0!important}
/* Reserve caret space in WebKit at wrapped word boundaries. */
.social-ghost .editor-body{box-sizing:border-box;padding-right:8px!important;white-space:pre-wrap;word-break:break-word}

/* U27: stable, reachable exit; footer remains available outside the editor. */
body.ghost-studio #wv-info-footer{display:none!important}
#ghostShell .ghost-top{z-index:5;box-sizing:border-box;min-height:48px}
#ghostShell .ghost-top a.wv-editor-exit,#sgHeader a.wv-editor-exit{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 auto!important;min-width:72px!important;min-height:44px!important;box-sizing:border-box;padding:8px 10px!important;font:600 13px/1.2 system-ui!important;white-space:nowrap!important;border:1px solid #b39ac655!important;border-radius:12px!important;background:#21182dcc!important;color:#f5edff!important;text-decoration:none!important}
#sgHeader{box-sizing:border-box;padding-left:max(12px,env(safe-area-inset-left))!important;padding-right:max(12px,env(safe-area-inset-right))!important}
#sgHeader img{flex:0 0 30px!important;width:30px!important;height:30px!important}
@media(max-width:380px){#sgHeader{gap:4px!important}#sgHeader #next{padding:8px 6px!important;font-size:11px!important}#sgHeader #undo,#sgHeader #redo{width:34px!important}#ghostShell .ghost-top{gap:3px}#ghostShell .ghost-top img{width:26px;height:26px}}

/* Explicit readable preview in both normal and ghost composer. */
.social-ghost #mobilePreview{background:#6941c6!important;color:#fff!important;border:1px solid #b99bed!important;border-radius:12px;min-height:44px;padding:10px 14px;font:600 13px/1.4 system-ui;white-space:normal}
.social-ghost #mobilePreview:hover{background:#5832b3!important}
.social-ghost #mobilePreview:focus-visible{outline:2px solid #ddceff;outline-offset:3px}
.social-ghost #mobilePreview svg{color:inherit;stroke:currentColor}
