:root{--cs-ink:#233047;--cs-muted:#657187;--cs-line:#e2e8f0;--cs-purple:#6252d7}.character-studio{background:#f4f6fb;color:var(--cs-ink);margin:0;padding-bottom:70px}.cs-header{background:#fff;display:flex;align-items:center;gap:20px;padding:16px 3%;border-bottom:1px solid var(--cs-line);position:sticky;top:0;z-index:20;flex-wrap:wrap}.cs-brand{display:flex;align-items:center;gap:9px;color:#4f3fc0;text-decoration:none;white-space:nowrap}.cs-brand small{font-size:11px;color:var(--cs-muted)}.cs-header nav{display:flex;gap:6px;align-items:center;flex:1;flex-wrap:wrap}.cs-header button,.cs-header a{font-size:13px}.cs-header nav a{padding:9px;color:var(--cs-ink)}.cs-header button[aria-pressed=true]{background:var(--cs-purple);color:white;border-color:var(--cs-purple)}.cs-main{width:min(1600px,96%);margin:auto}.cs-intro{display:flex;justify-content:space-between;align-items:center;padding:32px 12px;gap:16px}.cs-intro h1{font-size:clamp(23px,2.6vw,36px);margin:8px 0}.cs-intro p{color:var(--cs-muted);margin:8px 0}.cs-eyebrow{font-size:11px;letter-spacing:2px;font-weight:700}.cs-scope{border:1px solid #ded9fc;background:#eeeafe;border-radius:99px;color:#6552b8;padding:10px 18px;font-size:12px}.cs-layout{display:grid;grid-template-columns:minmax(210px,.85fr) minmax(290px,1.5fr) minmax(230px,1fr);gap:18px;align-items:start}.cs-library,.cs-custom,.cs-cast-panel,.cs-chat,.cs-world-content{padding:20px;background:white;border:1px solid var(--cs-line);border-radius:20px;min-width:0}.cs-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.cs-heading h2{margin:0}.character-studio h2{font-size:18px}.character-studio h3{font-size:15px}.cs-catalog{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:16px 0}.cs-catalog button{padding:6px;border-radius:14px;min-width:0;display:flex;flex-direction:column;align-items:center;gap:3px;background:#f8f9fe}.cs-catalog button img{width:65px;height:75px}.cs-catalog button[aria-pressed=true]{border:2px solid #7665db;background:#eeebff}.cs-catalog small{color:var(--cs-muted);font-size:10px}.cs-showcase{height:280px;border-radius:24px;background:radial-gradient(ellipse at 50% 60%,#fff 10%,#e8e6ff 55%,#d5e7fc);display:grid;place-items:center;margin:16px 0;overflow:hidden}.cs-showcase img{height:240px;width:230px;animation-duration:2.5s}.cs-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.character-studio label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:600;margin:13px 0}.character-studio input,.character-studio select,.character-studio textarea{width:100%;box-sizing:border-box;font:inherit;color:var(--cs-ink);border:1px solid #dbe1ed;padding:10px;border-radius:10px;background:#fff;min-width:0}.character-studio textarea{resize:vertical}.character-studio button{white-space:normal;overflow-wrap:anywhere}.cs-chip{font-size:11px;color:#695ab7;background:#f0ecff;padding:6px 10px;border-radius:99px}.cs-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.cs-actions button{flex:1 1 125px}.cs-cast{display:grid;gap:8px}.cs-cast-card{display:flex;align-items:center;gap:9px;border:1px solid var(--cs-line);border-radius:12px;padding:9px}.cs-cast-card img{width:60px;height:68px}.cs-cast-card div{flex:1;min-width:0}.cs-cast-card small{display:block;color:var(--cs-muted);font-size:11px}.cs-cast-card button{padding:6px;font-size:11px}.cs-preview{height:120px;position:relative;background:#f6f3ff;border-radius:14px;overflow:hidden}.cs-profiles button,#cs-chat-list button,#cs-room-list button{display:block;width:100%;text-align:left;margin:7px 0;padding:10px}.cs-status{position:fixed;bottom:0;left:0;right:0;margin:0;padding:15px 4%;background:#25314df5;color:#fff;z-index:40;font-size:13px;min-height:20px;box-shadow:0 -4px 18px #182d4a18}.cs-status.error{background:#942f43}.cs-conversation-layout,.cs-world-layout{display:grid;grid-template-columns:minmax(220px,.75fr) minmax(0,2fr);gap:18px}.cs-chat-messages{height:48vh;min-height:260px;overflow:auto;padding:15px;border:1px solid var(--cs-line);background:#f8f9fc;border-radius:18px}.cs-bubble{margin:12px 0;padding:12px 15px;background:#eae9ff;border-radius:14px;max-width:85%;white-space:pre-wrap;overflow-wrap:anywhere}.cs-bubble.user{margin-left:auto;background:#e2f4ed}.cs-bubble strong{display:block;font-size:11px;color:#716292;margin-bottom:5px}.cs-chat form{display:flex;gap:10px;align-items:end}.cs-chat form label{flex:1}.cs-chat form button{margin-bottom:14px}.cs-world{height:410px;position:relative;overflow:hidden;border-radius:22px;background:radial-gradient(ellipse at 50% 100%,#accfb7 0 38%,transparent 39%),linear-gradient(#cee7fc 0 52%,#e6f0dc 53%);touch-action:manipulation;cursor:crosshair}.cs-world[data-zone=square]{background:linear-gradient(#ddd9fb 0 48%,#ece9f5 49%)}.cs-world[data-zone=mission]{background:radial-gradient(circle at 70% 25%,#fff8bc 0 8%,transparent 9%),linear-gradient(#d8e8ff 0 55%,#f0dfbe 56%)}.cs-world:before{content:'🌳';position:absolute;font-size:95px;left:5%;top:30%;pointer-events:none}.cs-world:after{content:'🏠';position:absolute;font-size:75px;right:7%;top:35%;pointer-events:none}.cs-world[data-zone=square]:before{content:'⛲'}.cs-world[data-zone=mission]:before{content:'🏁'}.cs-world-scenery{position:absolute;left:45%;top:10%;font-size:70px;color:#fff9}.cs-world-actor{position:absolute;width:70px;transform:translate(-50%,-70%);text-align:center;transition:left .5s,top .5s;z-index:3;pointer-events:none}.cs-world-actor img{height:80px;width:70px}.cs-world-actor small{display:inline-block;background:#fff;border-radius:99px;padding:3px 8px;font-size:10px;max-width:100px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cs-world-actor[data-me=true] small{background:#6054c8;color:white}.cs-room-messages{max-height:180px;overflow:auto;margin-top:15px;border:1px solid var(--cs-line);border-radius:12px;padding:10px;white-space:pre-wrap;overflow-wrap:anywhere}.cs-room-messages p{font-size:13px;margin:8px 0}.cs-world-content form{display:flex;gap:8px;align-items:end}.cs-world-content form label{flex:1}.cs-world-content form button{margin-bottom:14px}#cs-mission{margin:12px 0;padding:15px;background:#f1ecff;border-radius:14px}#cs-mission small{display:block;margin:8px 0;color:var(--cs-muted)}#cs-room-members>div{display:flex;gap:7px;align-items:center;padding:7px;border-bottom:1px solid var(--cs-line)}#cs-room-members span{flex:1}#cs-room-members button{font-size:11px;padding:6px}.character-studio details{padding:12px;border:1px solid var(--cs-line);border-radius:12px}.character-studio audio{max-width:100%;margin:12px 0}.character-studio [hidden]{display:none!important}@media(max-width:1100px){.cs-layout{grid-template-columns:240px 1fr}.cs-cast-panel{grid-column:1/-1}.cs-cast{grid-template-columns:repeat(3,1fr)}.cs-preview{height:200px}.cs-scope{display:none}}@media(max-width:650px){.cs-header{position:relative;padding:14px}.cs-header nav{order:3;flex-basis:100%}.cs-intro{padding:20px 4px}.cs-layout,.cs-conversation-layout,.cs-world-layout{grid-template-columns:1fr}.cs-catalog{grid-template-columns:repeat(4,minmax(0,1fr))}.cs-catalog button img{width:50px;height:55px}.cs-catalog button{font-size:11px}.cs-catalog small{display:none}.cs-library,.cs-custom,.cs-cast-panel,.cs-chat,.cs-world-content{padding:15px}.cs-cast{grid-template-columns:1fr}.cs-world{height:340px}.cs-world:before{font-size:70px}.cs-showcase{height:240px}.cs-showcase img{height:210px}.cs-chat form{display:block}.cs-main{width:94%}.cs-bubble{max-width:95%}}@media(prefers-reduced-motion:reduce){.cs-world-actor{transition:none}}



.cs-runtime-host{position:fixed;inset:0;z-index:35;pointer-events:none}.cs-runtime-host .fly-layer{position:absolute;inset:0}.character-studio .fly-letter{z-index:50}

.cs-plan-scenes{display:grid;gap:5px;max-height:220px;overflow:auto}.character-studio .cs-plan-scenes label,.character-studio .cs-plan-enable{display:flex;flex-direction:row;align-items:center;gap:9px}.character-studio .cs-plan-scenes input,.character-studio .cs-plan-enable input{width:18px;height:18px}.cs-plan-card{padding:18px;border:1px solid var(--cs-line);border-radius:15px;margin:12px 0;background:#fafbff}.cs-plan-card p{font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}.cs-plan-card .cs-actions button{font-size:12px;flex-basis:110px}

.cs-sound-box{border:1px solid #e2e6ef;border-radius:14px;margin:20px 0;padding:14px;min-width:0}.cs-sound-box legend{font-size:13px;font-weight:700;padding:0 6px}.character-studio .cs-sound-switch{display:flex;flex-direction:row;align-items:center;gap:8px;margin:4px 0 14px}.character-studio .cs-sound-switch input{width:18px;height:18px;padding:0;margin:0}.cs-sound-box>button{width:100%;min-height:42px}.cs-work-actions{display:grid;gap:12px;margin:18px 0}.cs-action-section{padding:15px;border:1px solid #e4e8ef;border-radius:14px;background:#fafbfe}.character-studio .cs-action-section h3{font-size:14px;margin:0 0 10px}.cs-action-section>p,.cs-delivery-note{font-size:11px;line-height:1.65;color:var(--cs-muted);margin:0 0 12px}.character-studio .cs-work-actions button{font-size:13px;line-height:1.4;white-space:nowrap;word-break:keep-all;overflow-wrap:normal;min-height:44px;padding:10px 12px;border-radius:10px;min-width:0}.cs-action-section>button{display:block;width:100%;margin:8px 0 0}.cs-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px}.cs-action-grid:has(>[hidden]):not(:has(>button:not([hidden]))){display:none}.cs-action-link{display:block;font-size:12px;line-height:1.5;text-align:center;padding:11px 8px;margin-top:8px;border:1px solid #dce2ed;border-radius:10px;color:#5547a5;background:white;text-decoration:none}.cs-native-tools summary{cursor:pointer;font-size:12px;font-weight:650}.cs-native-tools>button{width:100%;margin-top:12px}.cs-delivery-note{padding:0 4px;margin-top:14px}

/* Share cards stay still until the recipient confirms; only the thumbnail floats. */
.fly-share-mini{text-align:center}.fly-share-mini .fly-card-character{width:104px;height:104px;margin:0 auto}.fly-card-character{position:relative;animation:fly-card-bob 2.6s ease-in-out infinite}.fly-card-character>img,.fly-card-character>svg{width:100%;height:100%;object-fit:contain}.fly-card-envelope{position:absolute;right:0;bottom:2px;font-size:30px;animation:fly-card-envelope 2s ease-in-out infinite}.fly-share-card{position:relative;width:min(360px,calc(100vw - 40px));margin:auto;padding:30px 24px;text-align:center;border:1px solid #e5e3f2;border-radius:28px;background:linear-gradient(150deg,#fffdf8,#f2eeff);box-shadow:0 18px 60px #30265815;color:#30314c;pointer-events:auto}.fly-share-card>.fly-card-character{width:150px;height:150px;margin:0 auto 16px}.fly-share-card h1{font:600 22px/1.5 system-ui;overflow-wrap:anywhere;margin:12px 0}.fly-share-card>p{font:13px/1.7 system-ui;color:#77758a}.fly-card-confirm{display:block;width:100%;margin:22px 0 10px;min-height:52px;border:0;border-radius:16px;color:white;background:#6c4de6;font:600 17px system-ui}.fly-card-web{border:0;background:none;color:#6c4de6;font-size:13px}.fly-card-hint{font-size:11px!important}.fly-card-page{background:#f8f7fc}.fly-card-page .viewer-main{max-width:none;margin:0;padding:0}.fly-card-page .viewer-top,.fly-card-page .viewer-note{display:none}.fly-card-page #stage{position:fixed;inset:0;display:grid;place-items:center;width:100%;height:100dvh;border:0;background:transparent;box-shadow:none;border-radius:0}.fly-airborne,.fly-airborne .viewer-main,.fly-airborne #stage{background:transparent!important}.fly-airborne .viewer-top,.fly-airborne .viewer-note,.fly-airborne .demo-screen{visibility:hidden;pointer-events:none}.fly-airborne #stage{position:fixed;inset:0;width:100%;height:100dvh;border:0;box-shadow:none;border-radius:0}.fly-airborne .fly-letter::backdrop{background:transparent;backdrop-filter:none}.fly-airborne .fly-controls{opacity:0;transition:opacity .2s}.fly-airborne .fly-controls:hover,.fly-airborne .fly-controls:focus-within{opacity:1}.fly-install-offer{display:grid;gap:8px;padding-top:14px;border-top:1px solid #dedbea;font-size:12px;line-height:1.6}.fly-install-offer a{display:block;text-align:center;padding:12px;background:#eee9ff;color:#6144ca;border-radius:12px;font-weight:600}.fly-install-offer small{color:#777;font-size:11px}@keyframes fly-card-bob{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-9px) rotate(3deg)}}@keyframes fly-card-envelope{50%{transform:translateY(-6px) rotate(8deg)}}@media(prefers-reduced-motion:reduce){.fly-card-character,.fly-card-envelope{animation:none}}

.fly-airborne-root{background:transparent!important}.fly-install-offer{display:grid;gap:8px;padding-top:14px;border-top:1px solid #dedbea;font-size:12px;line-height:1.6}.fly-install-offer a{display:block;text-align:center;padding:12px;background:#eee9ff;color:#6144ca;border-radius:12px;font-weight:600}.fly-install-offer small{color:#777;font-size:11px}

.cs-character-menu{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:16px}.cs-character-menu a{color:#523593;padding:10px}.cs-character-menu button{padding:10px 16px}#cs-editor{display:block}


.cs-coming{text-align:center;max-width:900px;margin:40px auto;padding:60px 28px;border:1px solid #e4dcef;border-radius:28px;background:radial-gradient(ellipse at top,#ede4ff,#fff 70%);box-shadow:0 18px 70px #60478e12}.cs-coming>span{letter-spacing:.2em;color:#9673c5;font-size:12px}.cs-coming h1{font-size:42px;font-weight:750;margin:20px}.cs-coming h2{font-size:26px;color:#8862c2}.cs-coming p{font-size:16px;color:#82728f;line-height:1.8}.cs-coming-spaces{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin:32px 0}.cs-coming-spaces span{padding:14px 20px;background:#f4eefc;border:1px solid #dfd1ee;border-radius:14px}.cs-admin-banner{padding:14px;background:#fff2cf;color:#80581b;border-radius:12px}.cs-ai-helper{padding:18px;margin-top:24px;border:1px solid #e2d9ed;border-radius:18px}.cs-ai-helper>summary{min-height:44px;cursor:pointer;font-weight:700}@media(max-width:600px){.cs-coming{padding:32px 18px;margin:20px 0}.cs-coming h1{font-size:32px}.cs-coming-spaces{gap:8px}.cs-coming-spaces span{padding:10px}}

/* Prepared spatial rooms, hidden behind the server-checked administrator gate. */
.cs-world-tools{margin:14px 0}.cs-space-nav,.cs-world-gestures{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0}.cs-space-nav button[aria-pressed=true]{background:#7955c9;color:#fff}.cs-world-tools button{min-height:44px}.cs-world-tools details{display:flex;gap:10px;flex-wrap:wrap}.cs-world-tools select,.cs-world-tools input{max-width:180px}.cs-world:before,.cs-world:after{display:none}.cs-world{height:520px;isolation:isolate;background:radial-gradient(ellipse at 50% 100%,#d0dfbc 0 50%,transparent 51%),linear-gradient(#e3e0fb 0 36%,#e5f0da 37%);border:1px solid #d7cbe8;box-shadow:inset 0 -50px 120px #a8b7a322}.cs-world[data-zone=home],.cs-world[data-zone=lounge]{background:repeating-linear-gradient(0deg,#e9dccc 0 32px,#dacabb 33px 34px);border:12px solid #e6dcf3;box-shadow:inset 0 50px 80px #cab7d144}.cs-world[data-zone=theatre]{background:radial-gradient(ellipse at 50% 10%,#c4a8eb,#7b5aab 50%,#3c3158);border:8px solid #dbc3ed}.cs-world[data-zone=mission]{background:linear-gradient(140deg,#e5efff,#e4f2e0)}.cs-world[data-palette=mint]{filter:hue-rotate(30deg)}.cs-world[data-palette=dawn]{filter:sepia(.15)}.cs-world-scenery{display:none}.cs-world-objects{position:absolute;inset:0;pointer-events:none}.cs-world-architecture{position:absolute;inset:0;opacity:.9;pointer-events:none}.cs-world-house{position:absolute;width:95px;height:120px;top:9%;filter:drop-shadow(8px 12px 4px #78658a22)}.cs-house-wall{position:absolute;bottom:0;left:7px;width:80px;height:78px;background:linear-gradient(100deg,#fff7e9,#e9d8c5);border-radius:8px;transform:skewY(-5deg)}.cs-house-roof{position:absolute;z-index:2;width:88px;height:60px;top:0;background:linear-gradient(135deg,#c9a8e9,#926ac3);clip-path:polygon(50% 0,100% 75%,95% 95%,5% 95%,0 75%)}.cs-house-door{position:absolute;bottom:0;left:32px;z-index:3;width:29px;height:46px;background:#c59eb3;border-radius:18px 18px 0 0;border:3px solid #fff1e7}.cs-house-window{position:absolute;bottom:40px;left:15px;width:18px;height:23px;z-index:3;background:#f8e7a2;border:3px solid #b799c4}.cs-world[data-zone=home] .cs-world-architecture,.cs-world[data-zone=lounge] .cs-world-architecture,.cs-world[data-zone=theatre] .cs-world-architecture{display:none}.cs-world-object{position:absolute;transform:translate(-50%,-50%);width:100px;height:62px;border-radius:14px;border:2px solid #d3bfe6;background:linear-gradient(145deg,#fff9ff,#e2d6ef);box-shadow:5px 9px 0 #9f87b533,0 12px 24px #6c57751a;pointer-events:auto;cursor:pointer;font-size:13px!important;color:#61437a;font-weight:700}.cs-world-object[data-type=seat]{background:linear-gradient(#dfbde9,#b697cd);border-bottom:8px solid #a686bc;border-radius:16px 16px 9px 9px}.cs-world-object[data-type=screen]{width:150px;height:84px;border:8px solid #b397cc;background:#4e3d66;color:#fff;box-shadow:0 8px 0 #836397}.cs-world-object[data-type=mailbox]{width:66px;height:80px;background:#b97f9b;color:white;border:5px solid #e6b5ca;border-radius:26px 26px 8px 8px}.cs-world-object[data-type=frame]{height:80px;border:8px solid #caaf8f;background:#fff5dd}.cs-world-actor{z-index:60;transition:left .55s ease,top .55s ease}.cs-world-actor[data-seated=true] img{transform:translateY(8px) scaleY(.88)}.cs-world-gesture{position:absolute;top:-18px;left:50%;transform:translateX(-50%);background:white;padding:5px 10px;border-radius:15px;white-space:nowrap;font-size:12px;color:#ad5983;box-shadow:0 5px 12px #594b6722}.cs-world-actors{position:absolute;inset:0}.cs-world[data-zone=garden]{background:radial-gradient(ellipse at 50% 100%,#b5cba5 0 40%,transparent 41%),linear-gradient(#e1eff3 0 36%,#d2dfc4 37%)}@media(max-width:650px){.cs-world{height:440px}.cs-world-object{width:70px;height:52px;font-size:11px!important}.cs-world-object[data-type=screen]{width:100px;height:66px}.cs-world-house{transform:scale(.7);transform-origin:top left}.cs-world-actor{width:52px}.cs-world-actor img{width:52px;height:62px}}@media(prefers-reduced-motion:reduce){.cs-world-actor{transition:none}}
