.interface-device{--content-top:calc(62px + var(--ui-top-inset,env(safe-area-inset-top,0px)));--portrait-top:calc(86px + var(--ui-top-inset,env(safe-area-inset-top,0px)));color:#fff8f5;background:var(--page-scene) center/cover no-repeat;font-size:16px;isolation:isolate}
#worldBackground{height:var(--scene-height);inset:0 0 auto;background:var(--page-scene) center/cover no-repeat;z-index:-2}
.portrait-shade{position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,transparent 52%,#211a2499 85%,#201720c9)}
/* Every functional page shares one full-stage veil, including future routes.
   Only the two character scenes retain the open scene treatment. */
.interface-device:not([data-route=home]):not([data-route=face]) .portrait-shade{background:#241c27df}
.interface-top{position:absolute;top:0;left:0;right:0;height:calc(52px + var(--ui-top-inset,env(safe-area-inset-top,0px)));padding:var(--ui-top-inset,env(safe-area-inset-top,0px)) 12px 0;display:flex;align-items:center;gap:8px;z-index:5;text-shadow:0 1px 6px #0009}
.wordmark{font-size:14px;letter-spacing:.06em;white-space:nowrap}.page-heading{font:inherit;font-size:20px;font-weight:500;background:none;border:0;padding:8px 0;flex:1;min-width:0;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.interface-top .wordmark:not([hidden])+.page-heading{text-align:center}.interface-top svg{width:22px;height:22px}
[hidden]{display:none!important}
.interface-view{position:absolute;inset:var(--content-top) 0 calc(66px + env(safe-area-inset-bottom,0px));overflow:hidden;z-index:1}
.interface-device[data-room-view=true] .interface-view{bottom:env(safe-area-inset-bottom,0px)}
.interface-device[data-nav-mode=home-meeting] .interface-view{bottom:calc(64px + env(safe-area-inset-bottom,0px))}
.interface-nav{position:absolute;inset:auto 0 0;display:flex;padding:8px 8px calc(8px + env(safe-area-inset-bottom,0px));min-height:66px;border-top:1px solid #ffffff30;background:#221b2478;z-index:5}
.interface-nav button{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:48px;font:inherit;font-size:14px;border:0;background:transparent;color:#e0d3db}.interface-nav button[aria-current=page]{color:#ff9cc4;font-weight:600}.interface-nav button.is-present{color:#ff9cc4}.interface-nav button[aria-current=page] span{text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:2px}.interface-nav svg{width:23px;height:23px}
.interface-nav.home-meeting-nav{left:30px;right:30px;bottom:calc(4px + env(safe-area-inset-bottom,0px));display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:0;min-height:54px;border:0;background:transparent}
.home-meeting-nav button{flex-direction:row;gap:8px;min-height:54px;border:1px solid #ffd7e65c;border-radius:14px;background:linear-gradient(150deg,#df7da7,#c45e8b);color:#fff;font-size:16px;font-weight:600;box-shadow:0 4px 14px #8d2c6040,inset 0 1px #ffffff50}
.home-meeting-nav button[aria-current=page]{color:#fff;background:linear-gradient(150deg,#f29bbf,#d46b9c);border-color:#fff5fa;box-shadow:0 5px 20px #963a6570,inset 0 1px #ffffff80}
.home-meeting-nav button.is-present{color:#fff}.home-meeting-nav button[aria-current=page] span{text-decoration:none}.home-meeting-nav svg{width:23px;height:23px}.home-meeting-nav button:active{transform:scale(.97)}
.room-switch{position:absolute;top:64%;transform:translateY(-50%);display:grid;place-items:center;width:62px;height:76px;border:0;border-radius:16px;background:transparent;color:#ffb2d0;cursor:pointer;padding:8px;z-index:2}
.room-switch.switch-left{left:4px}.room-switch.switch-right{right:4px}.room-switch svg{width:38px;height:48px;stroke:url(#room-arrow-pink);stroke-width:5;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 2px 2px #70345199) drop-shadow(0 0 5px #ffd5e655)}.switch-right svg{transform:scaleX(-1)}.room-switch:active{transform:translateY(-50%) scale(.92)}
.character-layer{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:0}
.scene-portrait{position:absolute;max-width:none;width:auto;left:50%;transform:translateX(-50%);pointer-events:none}
.home-portrait{height:calc(var(--scene-height) - var(--portrait-top) - 72px);top:auto;bottom:0}
.scene-readout{position:absolute;top:8px;right:16px;width:calc(100% - 126px);max-width:270px;text-align:right;font-size:13px;line-height:1.65;color:#fff8f5;text-shadow:0 1px 5px #000,0 1px 2px #0008;pointer-events:none}.scene-readout>*{display:block}.scene-readout time{white-space:nowrap}.scene-activity{color:#e6dce1}
.interface-view.view-home{top:calc(var(--content-top) - 4px)}.home-tools{position:absolute;left:10px;top:0;display:flex;flex-direction:column;gap:1px}.home-tools button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;min-height:48px;min-width:48px;padding:0 2px 2px;border:0;border-radius:0;background:transparent;color:#fff2f6;text-shadow:0 1px 3px #321626c0;font:inherit;font-size:12px;line-height:1.25;cursor:pointer}.home-tools button:active{transform:scale(.95)}.home-tool-icon{display:block;width:30px;height:30px;object-fit:contain;filter:drop-shadow(0 1px 2px #4d2b3b40);pointer-events:none}.home-tools span{white-space:nowrap}
.primary,.secondary{font:inherit;font-size:15px;min-height:44px;padding:10px 15px;border:1px solid #cdaabc80;border-radius:12px;background:#a77b8a;color:#fff9f5;cursor:pointer}.secondary{background:#ffffff0c}.primary:disabled,.secondary:disabled{cursor:default}.small-label{color:#dbc1cd;font-size:12px;letter-spacing:.05em}
.scroll-page{height:100%;overflow:auto;padding:12px 18px 28px;overscroll-behavior:contain;scrollbar-width:thin;background:transparent}.scroll-page>h2{font-weight:500;font-size:26px;margin:12px 0 5px}.muted{color:#cbbbc7;font-size:14px;line-height:1.7}.pill-row{display:flex;gap:8px;overflow:auto;padding:6px 0 16px;scrollbar-width:none}.pill-row button{flex-shrink:0;padding:8px 13px;border:1px solid #ffffff25;border-radius:20px;background:transparent;color:#d5c2ce;font:inherit;font-size:14px}.pill-row button[aria-pressed=true]{background:#ac829680;border-color:#d1afbf;color:#fff}
.place-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.place-card{position:relative;padding:0;overflow:hidden;border:1px solid #ffffff25;border-radius:15px;background:#ffffff08;color:#f8edf2;text-align:left;font:inherit}.place-card img{display:block;width:100%;height:142px;object-fit:cover}.place-card span{display:block;padding:10px 10px 3px;font-size:15px;line-height:1.4}.place-card small{display:block;padding:0 10px 11px;color:#cbbbc7;font-size:12px}.place-current{position:absolute;top:8px;left:8px;background:#29212de6;border-radius:20px;padding:3px 8px!important;color:#ffe9d7!important}.search-field{width:100%;min-height:44px;border:1px solid #ffffff25;border-radius:12px;background:#ffffff0b;color:#fff;padding:10px 12px;font:inherit;margin:12px 0}.search-field::placeholder{color:#bcacb8}
dialog{border:1px solid #96788780;border-radius:22px;background:#2c232c;color:#fff6fa;width:min(420px,calc(100% - 28px));max-height:calc(var(--viewport-height,100dvh) - 44px);padding:16px 20px 22px;box-shadow:0 16px 80px #0007;overflow:auto}dialog::backdrop{position:fixed;inset:0 0 auto;height:var(--viewport-height,100dvh);background:#130e19b3}.detail-head{display:flex;align-items:center;justify-content:space-between;color:#d2b4c1;font-size:13px}.detail-head .icon-button{margin-right:-10px}.detail-head svg{width:20px;height:20px}dialog h2{font-size:24px;line-height:1.4;font-weight:500;margin:0 0 14px}dialog p{font-size:15px;line-height:1.7;color:#d6c5d0}.place-preview{width:100%;max-height:38vh;object-fit:cover;border-radius:13px}.detail-actions{display:flex;gap:10px;margin-top:20px}.detail-actions>*{flex:1}.notice-dialog{z-index:40;text-align:left}.notice-dialog p{white-space:pre-line;overflow-wrap:anywhere;margin:0;color:#f5eaf0}.notice-dialog .detail-actions{justify-content:flex-end}.notice-dialog .detail-actions button{flex:0 0 auto;min-width:104px}
body.keyboard-open .interface-nav{display:none}body.keyboard-open .interface-view{bottom:8px}
body.keyboard-open .interface-device[data-nav-mode=home-meeting] .interface-view{bottom:8px}
.page-heading:disabled{opacity:1;cursor:default}.primary:disabled,.secondary:disabled{opacity:.55}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:15px}.section-heading h3{margin:10px 0}.scroll-page h3{font-size:17px;font-weight:500}
.text-button{border:0;background:none;font:inherit;font-size:14px;color:#e6bbcf;min-height:44px;padding:7px 2px}.info-card{padding:15px 16px;border:1px solid #ffffff20;border-radius:16px;background:#ffffff06;margin:12px 0}.info-card h3{margin:3px 0 8px}.info-card p{margin:6px 0;line-height:1.6}.empty-note{font-size:14px;color:#cbbbc7;border-left:2px solid #af839980;padding:8px 12px;line-height:1.7}.empty-wide{grid-column:1/-1;min-height:90px}.row-actions{display:flex;gap:10px;margin-top:14px}.row-actions>*{flex:1}
.journey-image{width:100%;height:220px;object-fit:cover;border-radius:18px;margin-top:18px}.journey-stops{display:flex;flex-direction:column;gap:9px;align-items:center;margin:20px 0;line-height:1.5}.journey-stops strong{font-weight:500;font-size:20px}.journey-stops>span:nth-child(2){color:#bb8ba6}
.profile-intro{display:flex;align-items:center;gap:16px;margin:12px 0 24px}.profile-intro img{width:86px;height:102px;object-fit:cover;object-position:50% 0;border-radius:20px;background:#ab879340}.profile-intro h2{font-weight:500;font-size:26px;margin:6px 0}.profile-intro p{margin:3px 0}
.facts{margin:16px 0;padding:4px 0}.facts>div{display:flex;gap:16px;justify-content:space-between;padding:14px 0;border-bottom:1px solid #ffffff16;line-height:1.5}.facts dt{color:#c8b5c2;font-size:14px;flex-shrink:0}.facts dd{margin:0;font-size:15px;text-align:right;overflow-wrap:anywhere}
.item-list{display:grid;gap:11px}.item-card{width:100%;display:flex;align-items:center;gap:12px;padding:14px 12px;border:1px solid #ffffff20;border-radius:16px;background:#ffffff05;text-align:left}.item-symbol{display:grid;place-items:center;width:42px;height:46px;flex-shrink:0;border-radius:10px;background:#ae839422;color:#cdaabe}.item-card strong{display:block;font-size:15px;font-weight:500;line-height:1.5}.item-card small{display:block;font-size:12px;color:#bca9b7;margin-top:5px}.item-tag{font-size:11px;color:#e4c8d5;white-space:nowrap;margin-left:auto}.empty-state{text-align:center;padding:40px 15px}.empty-state>svg{width:36px;height:36px;color:#c5a6b7}.balance-card{padding:22px;border:1px solid #dbb4c435;border-radius:20px;background:linear-gradient(120deg,#805f7259,#ffffff04)}.balance-card p{margin:0 0 14px;font-size:14px}.balance-card strong{font-size:34px;font-weight:400}.balance-card .muted{margin:18px 0 0}
.inline-link{display:inline-flex;justify-content:center;align-items:center;text-decoration:none;text-align:center}.field-label{display:block;margin:15px 0;font-size:14px;color:#cbb8c7}.field-label input,.field-label select{display:block;margin-top:8px;width:100%;min-height:46px;padding:10px 12px;background:#3a2e3a;color:#fff;border:1px solid #ffffff2b;border-radius:10px;font-size:16px}.field-label option{background:#322832}
.meeting-portrait{height:calc(var(--scene-height) * 1.39);top:calc(var(--portrait-top) - 2px)}.chat-stack{position:absolute;left:0;right:0;bottom:0;display:flex;flex-direction:column;max-height:70%;padding:8px 0 2px;background:#261d27b8;border-radius:20px 20px 0 0;border-top:1px solid #ffffff25}.chat-messages{min-height:0;overflow:auto;overscroll-behavior:contain;padding:2px 16px 5px;scrollbar-width:thin}.chat-stack.is-expanded{height:calc(100% - 106px);max-height:none}.phone-stack{top:0;max-height:none;background:none;border:0;border-radius:0}.phone-stack .chat-messages{flex:1}.empty-chat{font-size:14px;color:#e1d0dc;text-align:center;margin:18px 0;line-height:1.5}.demo-avatar{object-position:center 0;background-color:#b18c9a45}.chat-messages .bubble{line-height:1.45;font-size:17px}.chat-messages .message-content{max-width:calc(100% - 48px)}
.chat-stack .prototype-composer{position:relative;inset:auto;display:flex;flex:none;align-items:flex-end;margin:0 12px;padding:5px 0;min-height:50px;border:0;background:transparent;border-radius:0;gap:8px}.chat-stack .prototype-composer textarea{min-width:0;min-height:38px;padding:7px 2px;border:0;border-bottom:1px solid #ffffff50;border-radius:0;font-size:16px;line-height:1.4;color:#fff;background:none;max-height:88px}.chat-stack .prototype-composer button{background:transparent;border-radius:0}.chat-stack .prototype-composer .conversation-toggle{font-size:12px;width:38px;min-width:38px;flex-basis:38px}.chat-stack .prototype-composer textarea:disabled{opacity:.6}.chat-stack .prototype-composer button:disabled{opacity:.35}.view-face .chat-stack{max-height:65%}.view-face .chat-stack.is-expanded{max-height:none}body.keyboard-open .chat-stack{max-height:calc(100% - 55px)}body.keyboard-open .scene-readout{display:none}
:focus-visible{outline:2px solid #f2c5d5;outline-offset:3px}
/* Expanded messages fill the space above the composer; collapsed messages
   retain their natural height. Reset the inherited keyboard bottom offset,
   which otherwise lifts this relative-positioned composer into the bubbles. */
body.keyboard-open .chat-stack .prototype-composer{inset:auto}
body.keyboard-open .phone-stack{max-height:none}
/* Only the page content and message list scroll. Tall artwork must not let
   focusing a composer scroll the entire stage and crop the character's head. */
@supports(overflow:clip){.interface-view{overflow:clip}}
@media(max-height:600px){.interface-device{--content-top:calc(60px + var(--ui-top-inset,env(safe-area-inset-top,0px)));--portrait-top:calc(77px + var(--ui-top-inset,env(safe-area-inset-top,0px)))}.home-tools{top:0;gap:1px}.home-tools button{min-height:44px}.home-tool-icon{width:28px;height:28px}.scene-readout{top:4px}}
@media(max-height:700px){.interface-device[data-room-view=true] .home-tools,.interface-device[data-nav-mode=home-meeting] .home-tools{display:grid;grid-template-columns:repeat(2,48px)}.room-switch{top:75%}}

.phone-links{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:44px;margin-bottom:8px}.phone-apps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:25px 0 30px}.phone-app{display:flex;flex-direction:column;align-items:center;gap:10px;min-height:150px;padding:22px 10px;border:1px solid #efbbd44d;border-radius:23px;background:linear-gradient(145deg,#d293b333,#ad708316);color:#ffeaf3;font:inherit}.phone-app svg{width:36px;height:36px;color:#f8afd0}.phone-app strong{font-size:18px;font-weight:500}.phone-app small{font-size:12px;color:#d7bacb}.contact-list{display:grid;gap:12px;margin-top:24px}.contact-row{width:100%;display:flex;align-items:center;gap:14px;padding:16px 12px;border:1px solid #ffffff24;border-radius:18px;background:#ffffff07;text-align:left;color:#fff5fa;font:inherit}.contact-avatar{display:block;flex-shrink:0;width:58px;height:58px;object-fit:cover;object-position:center;border-radius:50%;background:#ab879333}.contact-row>span{flex:1;min-width:0}.contact-row strong{display:block;font-size:18px;font-weight:500}.contact-row small{display:block;margin-top:7px;font-size:12px;line-height:1.5;color:#cbbbc7;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.contact-row>svg{width:18px;height:22px;color:#d9afc3}.contact-intro{display:flex;flex-direction:column;align-items:center;gap:12px;margin:18px 0 24px}.contact-intro .contact-avatar,.contact-intro .avatar-placeholder{width:96px;height:96px;border-radius:50%;flex:0 0 96px}.contact-intro h2{margin:0;font-size:26px;font-weight:500}.demo-note{font-size:12px;margin-top:18px}.view-phone-chat>.phone-links{padding:0 18px}.view-phone-chat .phone-stack{top:54px}.plan-card .row-actions{flex-wrap:wrap}.plan-card .row-actions button{flex:1 1 120px}.view-plans .section-heading h2{font-size:26px;font-weight:500;margin:12px 0}.phone-app:active,.contact-row:active{background:#ce92ad30}

/* Face chat and its two-entry bar form one continuous panel. */
.interface-nav.face-nav{background:#261d27c9;border-top:0;height:calc(66px + env(safe-area-inset-bottom,0px));min-height:66px}
.face-nav button{font-size:14px}
.view-face .face-stack{padding:10px 0 0;background:#261d27c9;max-height:65%}
.face-chat-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:0 18px 6px;flex:none}
.face-speaker{font-size:14px;font-weight:500;color:#ffdfed;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.replay-pill{font:inherit;font-size:11px;line-height:1.4;min-height:28px;padding:4px 12px;border:1px solid #ffffff35;border-radius:30px;background:#ffffff0b;color:#f3dce7;cursor:pointer}
.face-stack .chat-messages{padding:4px 18px 9px;flex:0 1 auto}
.face-speech{font-size:17px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}
.face-stack .empty-chat{margin:8px 0 12px;text-align:left}
.face-stack .prototype-composer{margin:0 18px;padding:7px 0 10px;gap:10px}
.room-visitors{position:absolute;top:38%;left:24px;right:24px;max-height:34%;overflow:auto}
.present-visitors{position:absolute;top:8px;left:20px;max-width:40%;max-height:30%;overflow:auto}
.face-head-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.face-chat-head .face-speaker{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.face-head-actions .replay-pill{min-height:36px;padding:6px 10px;white-space:nowrap}
.scene-person-row{padding:14px 0;border-bottom:1px solid #ffffff20;display:flex;align-items:center;gap:12px;justify-content:space-between}.scene-person-row>div:first-child{min-width:0}.scene-person-row strong,.scene-person-row small{display:block;overflow-wrap:anywhere}.scene-person-row small{font-size:12px;color:#dfcfdc;margin-top:5px}.scene-person-actions{display:flex;gap:8px;align-items:center;justify-content:flex-end;flex-wrap:wrap}.scene-person-actions .secondary{font-size:14px;padding:8px 12px}.scene-person-actions .visitor-link{font-size:13px;min-height:44px;padding:8px}
.visitor-row{display:flex;align-items:center;gap:20px;min-height:52px;color:#fff4fa;text-shadow:0 1px 4px #241523b0}
.visitor-row+.visitor-row{border-top:1px solid #ffffff55}
.visitor-row>span{font-size:16px;overflow-wrap:anywhere}
.visitor-link{border:0;border-radius:0;background:none;padding:9px 0;min-height:44px;flex:none;color:#ffc0db;font:inherit;font-size:14px;cursor:pointer;text-shadow:inherit}
.present-visitors .visitor-row{flex-wrap:wrap;gap:0 12px;min-height:44px}
.present-visitors .visitor-row>span{font-size:13px}.present-visitors .visitor-link{font-size:12px;min-height:36px}
.phone-apps{display:flex;flex-direction:column;gap:0;margin:22px 0 28px}
.phone-app{flex-direction:row;justify-content:space-between;gap:16px;text-align:left;min-height:76px;padding:14px 0;border:0;border-radius:0;background:none}
.phone-app+.phone-app{border-top:1px solid #ffffff75}
.phone-app strong{display:block;font-size:18px;font-weight:500}.phone-app small{display:block;margin-top:6px;font-size:12px;color:#d7c4cf}
.phone-app svg{width:17px;height:21px;color:#f4e4ed}.phone-app:active{background:transparent;opacity:.72}
.replay-dialog{position:fixed;inset:0;width:100%;max-width:none;height:var(--viewport-height,100dvh);max-height:none;margin:0;padding:0;border:0;border-radius:0;background:#261e2a;overflow:hidden;box-shadow:none}
.replay-dialog[open]{display:flex;flex-direction:column}
.replay-head{display:flex;align-items:center;justify-content:space-between;flex:none;min-height:calc(62px + var(--ui-top-inset,env(safe-area-inset-top,0px)));padding:var(--ui-top-inset,env(safe-area-inset-top,0px)) 18px 0;border-bottom:1px solid #ffffff22}
.replay-head h2{margin:0;font-size:19px}.replay-head svg{width:21px;height:21px}
.replay-messages{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:8px 22px calc(22px + env(safe-area-inset-bottom,0px))}
.replay-entry{padding:18px 0;border-bottom:1px solid #ffffff18}.replay-entry h3{font-size:13px;color:#f1b9d1;font-weight:500;margin:0 0 8px}
.replay-entry p{font-size:16px;line-height:1.75;color:#fff3f8;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.replay-empty{margin:30px 0;text-align:center}
body.keyboard-open .view-face .face-stack{max-height:calc(100% - 12px)}

/* P03: one stage and one readout position for both character scenes. */
.interface-device{--nav-height:54px}
.interface-view{bottom:calc(var(--nav-height) + env(safe-area-inset-bottom,0px))}
.interface-nav,.interface-nav.face-nav{min-height:var(--nav-height);height:calc(var(--nav-height) + env(safe-area-inset-bottom,0px));padding:3px 8px calc(3px + env(safe-area-inset-bottom,0px))}
.interface-nav button{min-height:44px;gap:2px;font-size:13px}
.interface-nav svg{width:21px;height:21px}
.interface-nav.home-meeting-nav{min-height:46px;height:46px;padding:0;bottom:env(safe-area-inset-bottom,0px)}
.home-meeting-nav button{min-height:46px;font-size:15px}
.interface-device[data-nav-mode=home-meeting] .interface-view{bottom:calc(50px + env(safe-area-inset-bottom,0px))}
#sceneReadout{top:calc(54px + var(--ui-top-inset,env(safe-area-inset-top,0px)));right:12px;font-size:12px;line-height:1.55;z-index:3;max-width:260px}
.scene-breadcrumb{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#ffe4ef;font-weight:600;letter-spacing:.01em}
.missing-resources{display:none}
.room-visitors{top:50%;transform:translateY(-50%);left:10%;right:10%;max-height:30%;text-align:center}
.room-visitors .visitor-row{justify-content:center;gap:22px;min-height:56px}
.room-visitors .visitor-row>span{font-size:18px}.room-visitors .visitor-link{font-size:16px}
.present-visitors{top:82px;left:18px}.present-picker{position:absolute;top:120px;left:18px;display:flex;gap:10px;z-index:2}
.present-picker [aria-current=page]{color:#ff9cc4;text-decoration:underline}
.building-navigation{position:absolute;top:calc(51px + var(--ui-top-inset,env(safe-area-inset-top,0px)));left:16px;max-width:136px;z-index:4;color:#fff2f6;text-shadow:0 1px 3px #321626c0}
.building-rooms-entry,.building-location-text{display:block;max-width:100%;padding:3px 0;min-height:40px;border:0;border-radius:0;background:transparent;color:inherit;font:inherit;font-size:12px;line-height:1.5;text-align:left;text-shadow:inherit}
.building-rooms-entry{cursor:pointer}.building-rooms-entry:active{color:#ffc7dc}.building-rooms-entry:focus-visible{outline:1px solid #ffc7dc;outline-offset:3px}
.location-building,.location-room{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.location-building{font-size:11px;color:#ffe4ef}.location-room{font-size:13px}.location-chevron{margin-left:6px;color:#ffc7dc}
#sceneReadout{width:calc(100% - 172px)}body.keyboard-open .building-navigation{display:none}
.room-directory-note{margin:0 0 10px}.room-directory{border-top:1px solid #ffffff33}.room-directory-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 0;border-bottom:1px solid #ffffff33}.room-directory-row>div{min-width:0}.room-directory-row strong,.room-directory-row small{display:block}.room-directory-row small{margin-top:4px;color:#dbc1cd;font-size:13px;line-height:1.45}.room-current{color:#ffc7dc;font-size:13px;white-space:nowrap}.room-go{flex:0 0 auto;min-height:36px;padding:7px 10px;border:1px solid #ffffff4d;border-radius:10px;background:#ffffff12;color:#fff4fa;font:inherit;font-size:13px}
.settings-links{display:flex;flex-direction:column;gap:10px}
.map-residence{margin:20px 0 28px}.map-residence h3{margin:5px 0}.map-residence .muted{margin:5px 0 12px}
.place-card:not(:has(img)){min-height:88px;padding:8px 0}
.diary-input{width:100%;min-height:220px;max-height:60%;resize:vertical;font:inherit;font-size:16px;color:#fff;background:#ffffff08;border:1px solid #ffffff30;border-radius:12px;padding:14px;line-height:1.6;margin-bottom:16px}
.avatar,.contact-avatar{background:#fff;object-fit:cover}.avatar-placeholder{display:grid;place-items:center;width:58px;height:58px;background:#eee;color:#73506a;border-radius:16px;flex:none}
.contact-row>span.avatar-placeholder{flex:0 0 58px}
body.keyboard-open #sceneReadout{display:none}
@media(max-height:600px){#sceneReadout{top:calc(54px + var(--ui-top-inset,env(safe-area-inset-top,0px)))}}

.interface-device[data-route=face] .missing-resources{top:23%}
.view-phone-chat .phone-stack{top:0}

/* FS8: keep one decoded scene in the stage, and a compact destination picker. */
.interface-device{background:#211b20!important}
#worldBackground{background:none!important}
.world-image{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.avatar,.contact-avatar,.avatar-placeholder{border-radius:50%;overflow:hidden;background:#fff}
.travel-page{padding:2px 16px 24px}
.travel-filters{padding:0 0 6px}
.city-line,.compact-select{display:flex;align-items:center;gap:10px;margin:0 0 8px;font-size:14px}
.city-line>span,.compact-select>span{flex:0 0 32px;color:#dbc1cd}
.city-line select,.compact-select select{flex:1;min-width:0;width:100%;min-height:40px;font:inherit;font-size:16px;color:#fff;background:#ffffff08;border:1px solid #ffffff25;border-radius:10px;padding:5px 10px}
.travel-page .search-field{margin:0;min-height:40px;padding:7px 10px;font-size:16px}
.travel-page .place-grid{gap:10px;margin-top:10px}
.travel-page .place-card img{height:110px}
.travel-page .place-card span{padding:8px 9px 2px;font-size:14px}
.travel-page .place-card small{padding:0 9px 8px}
.setting-font{display:flex;align-items:center;gap:14px;margin:18px 0;font-size:15px}
.setting-font input{min-width:0;flex:1;accent-color:#f29bbf}
.danger-text{min-height:44px;border:0;background:none;color:#ffb6cb;font:inherit;font-size:15px}
.face-speech,.chat-messages .bubble{font-size:var(--font,17px)}

/* FS9: reserve legible space below iOS's variable system scroll-edge effect.
   90px is a conservative layout allowance for the supplied portrait screenshot,
   not a claimed Apple blur height. The native safe inset can increase it.
   Only controls/portrait placement move; the backing image still fills the stage. */
:root{--ui-top-inset:env(safe-area-inset-top,0px)}
@supports(-webkit-touch-callout:none){
  @media(orientation:portrait){body.standalone{--ui-top-inset:max(calc(env(safe-area-inset-top,0px) + 28px),min(90px,11svh))}}
}
.interface-top,#worldBackground,.character-layer,.portrait-shade{-webkit-backdrop-filter:none;backdrop-filter:none;filter:none}

/* Outside the player's home, the location view is a background and room directory. */
.venue-rooms{position:absolute;inset:206px 16px 0;display:flex;flex-direction:column;align-items:center;overflow:auto;overscroll-behavior:contain;padding:12px 0;text-align:center;scrollbar-width:thin;scrollbar-gutter:stable both-edges}
.venue-room-content{flex:none;width:min(100%,360px);margin-block:auto}
/* The directory scrolls below the four tools, never behind their hit targets. */
.venue-rooms h2{margin:0 0 8px;font-size:19px;font-weight:500;color:#fff5fa;text-shadow:0 1px 4px #321626b0;overflow-wrap:anywhere}
.venue-room-hint{margin:0 0 16px;font-size:12px;color:#fff2f6;text-shadow:0 1px 3px #321626c0}
.venue-room-grid{--room-gap:10px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--room-gap)}
.venue-room-button:last-child:nth-child(odd){grid-column:1/-1;width:calc((100% - var(--room-gap))/2);justify-self:center}
.venue-room-button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:9px 8px;border:1px solid #ffc5de88;border-radius:11px;background:#e88fb4eb;box-shadow:0 2px 6px #76314924;color:white;font:inherit;font-size:14px;line-height:1.35;overflow-wrap:anywhere}
.venue-room-button small{font-size:10px;color:#fff7fb;white-space:nowrap}.venue-room-button:disabled{opacity:1;background:#d878a2eb;border-color:#fff1f8}.venue-room-button:active:not(:disabled){background:#da75a2}.venue-room-button:focus-visible{outline:2px solid #fff4fa;outline-offset:2px}
@media(max-width:350px){.venue-room-grid{--room-gap:8px}.venue-room-button{font-size:13px;padding:9px 6px}}

/* Status and destination are in one flow so long names cannot overlap. */
.journey-page{display:flex;flex-direction:column;gap:20px;padding-top:0}
.journey-meta{flex:none;font-size:12px;line-height:1.55;text-align:right;overflow-wrap:anywhere}
.journey-meta>*{display:block}
.journey-content{flex:none;width:100%;max-width:380px;margin:auto; padding:12px 0;text-align:center;overflow-wrap:anywhere}
.journey-content h2{text-wrap:balance;font-size:24px;line-height:1.5;font-weight:500;margin:8px 0 16px}
.journey-content p{line-height:1.6}
.journey-content .row-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.journey-content .row-actions button{min-width:0;padding-inline:8px}

/* Account entry uses the existing fields, buttons and central dialogs. */
#app[data-route="account"]{background:#322832;color:#fff8f5;}
#app[data-route="account"] #worldBackground{background:none;}
#app[data-route="account"] .interface-top{text-shadow:none;}
#app[data-route="account"] .portrait-shade{display:none;}
.account-entry{max-width:420px;margin:auto;padding:24px 20px;}
.account-entry form{display:grid;gap:12px;}
.account-entry .account-username-field{margin-bottom:0;}
.account-entry #accountUsernameHint{margin:-8px 0 0;line-height:1.45;}
.account-username-error{margin:-8px 0 0;color:#ffabb6;font-size:13px;line-height:1.5;}
.account-username-error[hidden]{display:none;}
.account-entry input[aria-invalid="true"]{border-color:#ffabb6;}
.account-entry form .primary:disabled{background:#77717a;border-color:#96909980;color:#e0dce0;opacity:.85;}
.account-entry .detail-actions{flex-wrap:wrap;margin-top:20px;}
.account-recovery-code{white-space:pre-wrap;overflow-wrap:anywhere;user-select:all;color:#514138;font-size:16px;padding:12px;background:#f5edf0;border-radius:8px;}
