/* Original SenCLUB mobile interaction styles, scoped to the website room. */
/* Theme-owner variables are separate from legacy aliases, avoiding cycles in
   older panels which derive --sen-ui-* from their own local palette. */
.room-stage-section,
:where([data-theme="day"],[data-sen-surface-theme="day"],[data-build-theme="day"],[data-profile-theme="day"],[data-ui-theme="day"],[data-community-theme="day"],.room-stage-section[data-time="day"],.room-stage-section[data-time="dusk"]) {
  --sen-popup-night-fill:linear-gradient(135deg,#59635b99,#27363199);
  --sen-compact-page:#f5f5f3; --sen-compact-card:#fdfdfc;
  --sen-compact-ink:#2b2b2b; --sen-compact-muted:#686868;
  --sen-compact-line:#28282818; --sen-compact-secondary:#f0f0ee;
  --sen-compact-selected:#eaeae7; --sen-compact-action-surface:#d5ef62;
  --sen-compact-on-action:#2b2d24; --sen-compact-accent:#5b6d33;
  --sen-compact-danger:#ae4533;
  /* Derived from profile.css field/tag glass: neutral tint, a lit top edge
     and a soft lower shadow. Rows use static paint, never extra blur layers. */
  --sen-compact-panel-fill:linear-gradient(135deg,#ffffffc2,#f4f4f2b3);
  --sen-compact-panel-filter:blur(14px);
  --sen-compact-card-fill:linear-gradient(145deg,#ffffffb8,#ffffff57);
  --sen-compact-control-fill:linear-gradient(145deg,#ffffffc7,#eaeae6a3);
  --sen-compact-edge:#ffffff70;
  --sen-compact-panel-shadow:inset 0 1px 0 #ffffff60,0 4px 16px #2222220a;
  --sen-compact-card-shadow:inset 0 1px 0 #fff,0 4px 16px #292b2209;
  --sen-compact-control-shadow:inset 0 1px 0 #ffffffe6,inset 0 -1px 0 #2424240a,0 3px 9px #2424240a;
  --sen-compact-action-shadow:inset 0 1px 0 #ffffff99,inset 0 -1px 0 #3440171a,0 3px 9px #3440170d;
}
:is([data-theme="night"],[data-sen-surface-theme="night"],[data-build-theme="night"],[data-profile-theme="night"],[data-ui-theme="night"],[data-community-theme="night"],.room-stage-section[data-time="night"]) {
  --sen-compact-page:#151918; --sen-compact-card:#232826;
  --sen-compact-ink:#e4e9df; --sen-compact-muted:#a8b2a5;
  --sen-compact-line:#e0e8dc16; --sen-compact-secondary:#ffffff09;
  --sen-compact-selected:#ffffff12; --sen-compact-action-surface:#d5ef62;
  --sen-compact-on-action:#293314;
  --sen-compact-accent:#d5ef62;
  --sen-compact-danger:#ff8f74;
  --sen-compact-panel-fill:var(--sen-popup-night-fill);
  --sen-compact-card-fill:linear-gradient(145deg,#ffffff0e,#ffffff06);
  --sen-compact-control-fill:linear-gradient(145deg,#ffffff14,#ffffff07);
  --sen-compact-edge:#ffffff29;
  --sen-compact-panel-shadow:inset 0 1px 0 #ffffff20,0 4px 16px #101c1c10;
  --sen-compact-card-shadow:inset 0 1px 0 #ffffff14,0 4px 16px #00000014;
  --sen-compact-control-shadow:inset 0 1px 0 #ffffff24,inset 0 -1px 0 #00000030,0 3px 9px #00000020;
  --sen-compact-action-shadow:inset 0 1px 0 #ffffff99,inset 0 -1px 0 #34401733,0 3px 9px #00000020;
}
/* Flat/reduced-transparency mode keeps the same depth without revealing the
   scene through text. Reset at nested theme owners as well as the document. */
.room-stage-section[data-sen-glass="flat"],
.room-stage-section[data-sen-glass="flat"] :where([data-theme],[data-sen-surface-theme],[data-build-theme],[data-profile-theme],[data-ui-theme],[data-community-theme],.room-stage-section[data-time]) {
  --sen-compact-panel-fill:var(--sen-compact-card);
  --sen-compact-panel-filter:none;
  --sen-popup-night-fill:#232826;
  --sen-compact-card-fill:var(--sen-compact-card);
  --sen-compact-control-fill:var(--sen-compact-card);
}
@media (prefers-reduced-transparency:reduce) {
  .room-stage-section,:is([data-theme],[data-sen-surface-theme],[data-build-theme],[data-profile-theme],[data-ui-theme],[data-community-theme],.room-stage-section[data-time]) {
    --sen-compact-panel-fill:var(--sen-compact-card);
  --sen-compact-panel-filter:none;
  --sen-popup-night-fill:#232826;
    --sen-compact-card-fill:var(--sen-compact-card);
    --sen-compact-control-fill:var(--sen-compact-card);
  }
}
/* Latest plaza visual metrics. These tokens do not style artwork or cameras. */
.room-stage-section {
  --sen-compact-action-height:44px; --sen-compact-input-height:44px;
  --sen-compact-icon-size:36px; --sen-compact-hit-size:44px;
  --sen-compact-title:17px; --sen-compact-body:13px; --sen-compact-caption:11px;
  --sen-compact-action-font:13px; --sen-compact-panel-radius:22px;
  --sen-compact-control-radius:14px;
  /* Scene controls share the app hit target while their visible art stays small. */
  --sen-scene-control-disc:32px; --sen-scene-control-glyph:18px;
  --sen-scene-shutter-size:64px;
}

/* A transparent tint without filtering is not a readable glass fallback. */
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
 .room-stage-section,:is([data-theme],[data-sen-surface-theme],[data-build-theme],[data-profile-theme],[data-ui-theme],[data-community-theme],.room-stage-section[data-time]) {
  --sen-compact-panel-fill:var(--sen-compact-card);
  --sen-compact-panel-filter:none;
  --sen-popup-night-fill:#232826;
 }
}

/* Generated from scripts/mobile/ui-component-standard.json. Do not edit. */
.room-stage-section{--sen-control-hit:44px;--sen-control-font:13px;--sen-control-radius:14px;--sen-panel-radius:22px}
/* action: explicit semantic adapters; media and gesture geometry are excluded. */
.room-stage-section body :is(.sen-control:not(.sen-control--text),.mp-product-pages .mp-primary,.mp-product-pages .mp-secondary,.editor-save-actions>button,.pd-dialog-actions>button,.pd-run-actions>button,.checkout-flow .checkout-primary,.checkout-flow .checkout-cancel,.checkout-flow .checkout-back,.billing-sheet .billing-checkout-button,.platform-purchase-sheet button:not(.sen-navigation-button):not(.sen-dismiss-button),.insufficient-dialog button:not(.sen-navigation-button):not(.sen-dismiss-button),.mobile-preference .preference-primary,.mobile-preference .preference-logout,.profile-settings-page .profile-save,.mobile-help .help-primary,.plaza-survey .survey-send,.creation-recovery .recovery-retry,.model-card-menu button[type=submit],.model-card-primary,.card-management button[type=submit],.image-generation-completion .mp-primary,.image-receipt-card .mp-primary,.messaging-search-more,.social-pagination button,.legal-return,.sen-ui-action,.model-card-menu>button,.card-management>button,.card-management .primary,.account-code-bar>button,.checkout-sheet .checkout-actions>button,.billing-sheet .billing-actions>button,.planning-stage .game-dialog>button,.planning-stage .share-link-actions>button,.profile-settings-page .profile-avatar-actions button,.inspiration-layout-actions>button,.inspiration-load button,.inspiration-resource-notice button,.diy-details .diy-place-button,.diy-details .diy-preview-state>button){box-sizing:border-box!important;min-height:var(--sen-control-hit)!important;height:auto!important;padding:10px 14px!important;border-radius:var(--sen-control-radius)!important;font-size:var(--sen-control-font)!important;line-height:20px!important;font-weight:500!important;white-space:normal!important;overflow-wrap:anywhere!important;max-width:100%!important}
/* choice-row: explicit semantic adapters; media and gesture geometry are excluded. */
.room-stage-section body :is(.checkout-methods button,.profile-settings-page .profile-rows>button,.mobile-about-rule-list>button,.mobile-help .help-question-list button,.messaging-people-menu>button,.sp-room-choices>button,.diy-placement-options button){box-sizing:border-box!important;min-height:52px!important;height:auto!important;padding:8px 12px!important;border-radius:var(--sen-control-radius)!important;font-size:var(--sen-control-font)!important;line-height:20px!important}
/* content-choice: explicit semantic adapters; media and gesture geometry are excluded. */
.room-stage-section body :is(.design-finish-actions>button,.sp-choices>button,.method-cards button,.survey-experiences button){box-sizing:border-box!important;min-height:64px!important;height:auto!important;padding:12px!important;border-radius:18px!important;font-size:var(--sen-control-font)!important;line-height:20px!important;background:var(--sen-compact-card-fill)!important;color:var(--sen-compact-ink)!important;border-color:var(--sen-compact-edge)!important;box-shadow:var(--sen-compact-card-shadow)!important}
/* primary-paint: explicit semantic adapters; media and gesture geometry are excluded. */
.room-stage-section body :is(.sen-control--primary,.mp-product-pages .mp-primary,.editor-save-primary,.checkout-primary,.billing-checkout-button,.model-card-primary,.insufficient-upgrade,.profile-save,.help-primary,.survey-send,.card-management .primary,.diy-details .diy-place-button){background:var(--sen-compact-action-surface)!important;color:var(--sen-compact-on-action)!important;box-shadow:var(--sen-compact-action-shadow)!important}
/* secondary-paint: explicit semantic adapters; media and gesture geometry are excluded. */
.room-stage-section body :is(.sen-control--secondary,.mp-product-pages .mp-secondary,.checkout-cancel,.checkout-back,.legal-return,.recovery-retry){background:var(--sen-compact-control-fill)!important;color:var(--sen-compact-ink)!important;border-color:var(--sen-compact-line)!important;box-shadow:var(--sen-compact-control-shadow)!important}
/* icon-hit: explicit semantic adapters; media and gesture geometry are excluded. */
.room-stage-section body :is(.messaging-people-sheet .messaging-sheet-back,.model-card-menu header>button,.image-studio-source header>button,.space-picker header>button,.creation-recovery header>button,.diy-panel header .diy-icon-button,.sen-editor__rail>button,.sen-editor__play-furniture,.sen-editor__products){box-sizing:border-box!important;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;padding:4px!important;border-radius:50%!important;font-size:18px!important;line-height:20px!important;flex-shrink:0!important}
/* panel: explicit semantic adapters; media and gesture geometry are excluded. */
.room-stage-section body :is(.messaging-people-sheet,.social-profile-editor .sen-sheet__panel,.editor-save-dialog:has(.package-update-skip),.diy-filter-sheet,.image-studio-source,.house-menu-dialog,.platform-purchase-sheet,.creation-recovery,.sen-ui-panel){box-sizing:border-box!important;border-radius:var(--sen-panel-radius)!important;background:var(--sen-compact-panel-fill)!important;border-color:var(--sen-compact-edge)!important;box-shadow:var(--sen-compact-panel-shadow)!important;color:var(--sen-compact-ink)!important;font-size:13px!important;line-height:20px!important;border:1px solid var(--sen-compact-edge)!important;backdrop-filter:var(--sen-compact-panel-filter)!important;-webkit-backdrop-filter:var(--sen-compact-panel-filter)!important}
/* roam-actions: explicit semantic adapters; media and gesture geometry are excluded. */
.room-stage-section body :is(.planning-stage .game-dialog .primary-button,.planning-stage .share-link-modal .social-primary,.planning-stage .share-actions>button,.planning-stage .share-actions>a,.planning-stage .settings-panel .primary-button,.planning-stage .friend-picker>.social-primary){box-sizing:border-box!important;min-height:44px!important;height:auto!important;padding:10px 14px!important;border-radius:14px!important;font-size:13px!important;line-height:20px!important;white-space:normal!important}
/* opening-actions: explicit semantic adapters; media and gesture geometry are excluded. */
.room-stage-section body :is(.room-stage-section #dialog .sheet-primary,.room-stage-section #dialog .sheet-secondary,.room-stage-section .home-dance-songs>button,.room-stage-section .memory-panel__save,.room-stage-section .weather-choice-grid>button){box-sizing:border-box!important;min-height:44px!important;height:auto!important;padding:10px 12px!important;font-size:13px!important;line-height:20px!important;border-radius:14px!important}
/* danger-paint: explicit semantic adapters; media and gesture geometry are excluded. */
.room-stage-section body :is(.model-card-menu .model-card-delete,.card-management .danger,.house-menu-dialog .house-menu-destructive){background:var(--sen-compact-control-fill)!important;color:var(--sen-compact-danger)!important;border:1px solid currentColor!important}
/* detail-footer: explicit semantic adapters; media and gesture geometry are excluded. */
.room-stage-section body :is(.diy-details>footer){flex-wrap:wrap!important}
/* detail-primary-width: explicit semantic adapters; media and gesture geometry are excluded. */
.room-stage-section body :is(.diy-details>footer>.diy-place-button){min-width:120px!important;flex:1 0 120px!important}
/* detail-secondary-width: explicit semantic adapters; media and gesture geometry are excluded. */
.room-stage-section body :is(.diy-details>footer>.diy-details-actions){min-width:140px!important}
/* opening-hit: explicit semantic adapters; media and gesture geometry are excluded. */
.room-stage-section body :is(.room-stage-section .room-navigation .creator>button:is(.room-action,.save))::after{content:""!important;position:absolute!important;inset:auto!important;left:50%!important;top:50%!important;width:44px!important;height:44px!important;transform:translate(-50%,-50%)!important}
/* opening-hit-gap: explicit semantic adapters; media and gesture geometry are excluded. */
.room-stage-section body :is(.room-stage-section .room-navigation .creator){gap:12px!important}
/* settings-row: explicit semantic adapters; media and gesture geometry are excluded. */
.room-stage-section body :is(.mobile-preference .preference-item){min-height:52px!important;height:auto!important;font-size:13px!important;line-height:20px!important}
/* auth-submit: explicit semantic adapters; media and gesture geometry are excluded. */
.room-stage-section body :is(.mobile-login .submit){min-height:44px!important;height:auto!important;font-size:13px!important;line-height:20px!important}
/* auth-code: explicit semantic adapters; media and gesture geometry are excluded. */
.room-stage-section body :is(.mobile-login .send-code){min-height:44px!important;height:auto!important;font-size:13px!important;line-height:20px!important;white-space:normal!important;overflow-wrap:anywhere!important}
/* auth-field-row: explicit semantic adapters; media and gesture geometry are excluded. */
.room-stage-section body :is(.mobile-login .field-row){min-height:46px!important;height:auto!important}
/* auth-input: explicit semantic adapters; media and gesture geometry are excluded. */
.room-stage-section body :is(.mobile-login .field-row input){min-height:44px!important;height:auto!important;font-size:16px!important;line-height:20px!important}
/* auth-agreement: explicit semantic adapters; media and gesture geometry are excluded. */
.room-stage-section body :is(.mobile-login .agreement-inline){white-space:normal!important;font-size:11px!important;line-height:18px!important;align-items:flex-start!important}
/* auth-agreement-copy: explicit semantic adapters; media and gesture geometry are excluded. */
.room-stage-section body :is(.mobile-login .agreement-inline>span){white-space:normal!important;overflow-wrap:anywhere!important;min-width:0!important;max-width:100%!important}
/* auth-agreement-link: explicit semantic adapters; media and gesture geometry are excluded. */
.room-stage-section body :is(.mobile-login .agreement-inline button){white-space:normal!important;overflow-wrap:anywhere!important;font-size:inherit!important;line-height:inherit!important;max-width:100%!important}
.room-stage-section body :is(.sen-control:not(.sen-control--text),.mp-product-pages .mp-primary,.mp-product-pages .mp-secondary,.editor-save-actions>button,.pd-dialog-actions>button,.pd-run-actions>button,.checkout-flow .checkout-primary,.checkout-flow .checkout-cancel,.checkout-flow .checkout-back,.billing-sheet .billing-checkout-button,.platform-purchase-sheet button:not(.sen-navigation-button):not(.sen-dismiss-button),.insufficient-dialog button:not(.sen-navigation-button):not(.sen-dismiss-button),.mobile-preference .preference-primary,.mobile-preference .preference-logout,.profile-settings-page .profile-save,.mobile-help .help-primary,.plaza-survey .survey-send,.creation-recovery .recovery-retry,.model-card-menu button[type=submit],.model-card-primary,.card-management button[type=submit],.image-generation-completion .mp-primary,.image-receipt-card .mp-primary,.messaging-search-more,.social-pagination button,.legal-return,.sen-ui-action,.model-card-menu>button,.card-management>button,.card-management .primary,.account-code-bar>button,.checkout-sheet .checkout-actions>button,.billing-sheet .billing-actions>button,.planning-stage .game-dialog>button,.planning-stage .share-link-actions>button,.profile-settings-page .profile-avatar-actions button,.inspiration-layout-actions>button,.inspiration-load button,.inspiration-resource-notice button,.diy-details .diy-place-button,.diy-details .diy-preview-state>button):not(.sen-press-feedback){transition:scale 160ms ease,opacity 160ms ease}
.room-stage-section body :is(.sen-control:not(.sen-control--text),.mp-product-pages .mp-primary,.mp-product-pages .mp-secondary,.editor-save-actions>button,.pd-dialog-actions>button,.pd-run-actions>button,.checkout-flow .checkout-primary,.checkout-flow .checkout-cancel,.checkout-flow .checkout-back,.billing-sheet .billing-checkout-button,.platform-purchase-sheet button:not(.sen-navigation-button):not(.sen-dismiss-button),.insufficient-dialog button:not(.sen-navigation-button):not(.sen-dismiss-button),.mobile-preference .preference-primary,.mobile-preference .preference-logout,.profile-settings-page .profile-save,.mobile-help .help-primary,.plaza-survey .survey-send,.creation-recovery .recovery-retry,.model-card-menu button[type=submit],.model-card-primary,.card-management button[type=submit],.image-generation-completion .mp-primary,.image-receipt-card .mp-primary,.messaging-search-more,.social-pagination button,.legal-return,.sen-ui-action,.model-card-menu>button,.card-management>button,.card-management .primary,.account-code-bar>button,.checkout-sheet .checkout-actions>button,.billing-sheet .billing-actions>button,.planning-stage .game-dialog>button,.planning-stage .share-link-actions>button,.profile-settings-page .profile-avatar-actions button,.inspiration-layout-actions>button,.inspiration-load button,.inspiration-resource-notice button,.diy-details .diy-place-button,.diy-details .diy-preview-state>button):active:not(:disabled):not([aria-disabled=true]):not(.sen-press-feedback){scale:.98}
.room-stage-section body :is(.sen-control:not(.sen-control--text),.mp-product-pages .mp-primary,.mp-product-pages .mp-secondary,.editor-save-actions>button,.pd-dialog-actions>button,.pd-run-actions>button,.checkout-flow .checkout-primary,.checkout-flow .checkout-cancel,.checkout-flow .checkout-back,.billing-sheet .billing-checkout-button,.platform-purchase-sheet button:not(.sen-navigation-button):not(.sen-dismiss-button),.insufficient-dialog button:not(.sen-navigation-button):not(.sen-dismiss-button),.mobile-preference .preference-primary,.mobile-preference .preference-logout,.profile-settings-page .profile-save,.mobile-help .help-primary,.plaza-survey .survey-send,.creation-recovery .recovery-retry,.model-card-menu button[type=submit],.model-card-primary,.card-management button[type=submit],.image-generation-completion .mp-primary,.image-receipt-card .mp-primary,.messaging-search-more,.social-pagination button,.legal-return,.sen-ui-action,.model-card-menu>button,.card-management>button,.card-management .primary,.account-code-bar>button,.checkout-sheet .checkout-actions>button,.billing-sheet .billing-actions>button,.planning-stage .game-dialog>button,.planning-stage .share-link-actions>button,.profile-settings-page .profile-avatar-actions button,.inspiration-layout-actions>button,.inspiration-load button,.inspiration-resource-notice button,.diy-details .diy-place-button,.diy-details .diy-preview-state>button):focus-visible{outline:2px solid var(--sen-compact-accent);outline-offset:2px}
.room-stage-section body :is(.sen-control:not(.sen-control--text),.mp-product-pages .mp-primary,.mp-product-pages .mp-secondary,.editor-save-actions>button,.pd-dialog-actions>button,.pd-run-actions>button,.checkout-flow .checkout-primary,.checkout-flow .checkout-cancel,.checkout-flow .checkout-back,.billing-sheet .billing-checkout-button,.platform-purchase-sheet button:not(.sen-navigation-button):not(.sen-dismiss-button),.insufficient-dialog button:not(.sen-navigation-button):not(.sen-dismiss-button),.mobile-preference .preference-primary,.mobile-preference .preference-logout,.profile-settings-page .profile-save,.mobile-help .help-primary,.plaza-survey .survey-send,.creation-recovery .recovery-retry,.model-card-menu button[type=submit],.model-card-primary,.card-management button[type=submit],.image-generation-completion .mp-primary,.image-receipt-card .mp-primary,.messaging-search-more,.social-pagination button,.legal-return,.sen-ui-action,.model-card-menu>button,.card-management>button,.card-management .primary,.account-code-bar>button,.checkout-sheet .checkout-actions>button,.billing-sheet .billing-actions>button,.planning-stage .game-dialog>button,.planning-stage .share-link-actions>button,.profile-settings-page .profile-avatar-actions button,.inspiration-layout-actions>button,.inspiration-load button,.inspiration-resource-notice button,.diy-details .diy-place-button,.diy-details .diy-preview-state>button):disabled{opacity:var(--sen-ui-disabled-opacity,.42)}
@media(prefers-reduced-motion:reduce){.room-stage-section body :is(.sen-control:not(.sen-control--text),.mp-product-pages .mp-primary,.mp-product-pages .mp-secondary,.editor-save-actions>button,.pd-dialog-actions>button,.pd-run-actions>button,.checkout-flow .checkout-primary,.checkout-flow .checkout-cancel,.checkout-flow .checkout-back,.billing-sheet .billing-checkout-button,.platform-purchase-sheet button:not(.sen-navigation-button):not(.sen-dismiss-button),.insufficient-dialog button:not(.sen-navigation-button):not(.sen-dismiss-button),.mobile-preference .preference-primary,.mobile-preference .preference-logout,.profile-settings-page .profile-save,.mobile-help .help-primary,.plaza-survey .survey-send,.creation-recovery .recovery-retry,.model-card-menu button[type=submit],.model-card-primary,.card-management button[type=submit],.image-generation-completion .mp-primary,.image-receipt-card .mp-primary,.messaging-search-more,.social-pagination button,.legal-return,.sen-ui-action,.model-card-menu>button,.card-management>button,.card-management .primary,.account-code-bar>button,.checkout-sheet .checkout-actions>button,.billing-sheet .billing-actions>button,.planning-stage .game-dialog>button,.planning-stage .share-link-actions>button,.profile-settings-page .profile-avatar-actions button,.inspiration-layout-actions>button,.inspiration-load button,.inspiration-resource-notice button,.diy-details .diy-place-button,.diy-details .diy-preview-state>button){transition:none!important}}

/* One 36px circle inside a 44px native target. No second outer disc/ring.
   Mark only dismiss actions; selection toggles and primary actions stay distinct. */
.room-stage-section :where(.sen-dismiss-button){position:relative}
.room-stage-section .sen-dismiss-button.sen-dismiss-button,
.room-stage-section .sen-navigation-button.sen-navigation-button[data-navigation-icon="close"]{
  isolation:isolate;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;
  box-sizing:border-box;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;max-width:44px!important;max-height:44px!important;
  padding:0!important;border:0!important;border-radius:50%!important;background:transparent!important;box-shadow:none!important;
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;touch-action:manipulation;cursor:pointer;
}
.room-stage-section .sen-dismiss-button.sen-dismiss-button::before,
.room-stage-section .sen-navigation-button.sen-navigation-button[data-navigation-icon="close"]::before{
  content:''!important;display:block;position:absolute;inset:4px!important;z-index:-1;pointer-events:none;
  box-sizing:border-box;border-radius:50%!important;border:1px solid var(--sen-ui-line,#59655124)!important;
  background:var(--sen-dismiss-fill,var(--sen-ui-glass,var(--sen-compact-control-fill,#fdfdfce8)))!important;
  box-shadow:none!important;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
}
.room-stage-section .sen-dismiss-button.sen-dismiss-button :is(.sen-navigation-glyph,.conversation-icon),.room-stage-section .sen-dismiss-button.sen-dismiss-button>svg,.room-stage-section .sen-dismiss-button.sen-dismiss-button>img,.room-stage-section .sen-dismiss-button.sen-dismiss-button>.sen-dismiss-glyph,.room-stage-section .sen-navigation-button.sen-navigation-button[data-navigation-icon="close"]::after{
  width:18px!important;height:18px!important;flex:none;pointer-events:none;
}
.room-stage-section .sen-dismiss-button.sen-dismiss-button:disabled{opacity:var(--sen-ui-disabled-opacity,.4);cursor:default}
.room-stage-section .sen-dismiss-button.sen-dismiss-button:focus-visible,
.room-stage-section .sen-navigation-button.sen-navigation-button[data-navigation-icon="close"]:focus-visible{
  outline:2px solid var(--sen-ui-action,#708069);outline-offset:2px;
}
.room-stage-section .sen-dismiss-text.sen-dismiss-text{
  min-height:44px!important;padding:8px 14px!important;box-sizing:border-box;border:1px solid var(--sen-ui-line,#59655124)!important;
  border-radius:14px!important;background:var(--sen-ui-secondary,#f0f0ee)!important;box-shadow:none!important;
  color:var(--sen-ui-ink,#282c31)!important;font-size:13px!important;line-height:20px!important;white-space:normal;cursor:pointer;
}
.room-stage-section .sen-dismiss-text:disabled{opacity:var(--sen-ui-disabled-opacity,.4);cursor:default}
.room-stage-section .sen-dismiss-text:focus-visible{outline:2px solid var(--sen-ui-action,#708069);outline-offset:2px}

.room-stage-section .sen-navigation-button.sen-navigation-button[data-navigation-icon="close"]>img.figma-icon{display:none!important}

.room-stage-section .sen-dismiss-button.sen-dismiss-danger{color:var(--sen-ui-danger,var(--sen-night-danger,#b74b42))!important}

/* A single shared X artwork also keeps text/SVG/mask implementations identical. */
.room-stage-section .sen-dismiss-button.sen-dismiss-button{font-size:0!important}
.room-stage-section .sen-dismiss-button.sen-dismiss-button::after,
.room-stage-section .sen-navigation-button.sen-navigation-button[data-navigation-icon="close"]::after{
 content:''!important;display:block!important;position:static!important;flex:none;width:18px!important;height:18px!important;
 background:currentColor!important;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22none%22%20viewBox%3D%220%200%2032%2032%22%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M8.3%2025.9a1.556%201.556%200%200%201-2.2-2.2l7.7-7.7-7.7-7.7a1.556%201.556%200%200%201%202.2-2.2l7.7%207.7%207.7-7.7a1.556%201.556%200%200%201%202.2%202.2L18.2%2016l7.7%207.7a1.556%201.556%200%200%201-2.2%202.2L16%2018.2z%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E%0A") center/contain no-repeat!important;
 -webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22none%22%20viewBox%3D%220%200%2032%2032%22%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M8.3%2025.9a1.556%201.556%200%200%201-2.2-2.2l7.7-7.7-7.7-7.7a1.556%201.556%200%200%201%202.2-2.2l7.7%207.7%207.7-7.7a1.556%201.556%200%200%201%202.2%202.2L18.2%2016l7.7%207.7a1.556%201.556%200%200%201-2.2%202.2L16%2018.2z%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E%0A") center/contain no-repeat!important;pointer-events:none;
}
.room-stage-section .sen-dismiss-button.sen-dismiss-button>.sen-navigation-glyph,
.room-stage-section .sen-dismiss-button.sen-dismiss-button>.conversation-icon,
.room-stage-section .sen-dismiss-button.sen-dismiss-button>.sen-dismiss-glyph,
.room-stage-section .sen-dismiss-button.sen-dismiss-button>svg,
.room-stage-section .sen-dismiss-button.sen-dismiss-button>img{display:none!important}

/* One normal-page column for plaza, profile and author pages. Immersive
   scene/editing surfaces retain their own full-screen layout. CSS pixels are
   intentional: do not add a page transform or a second device-scale factor. */
.room-stage-section{--sen-app-column-width:min(100%,480px);--sen-app-column-height:100dvh}
@media(max-width:600px){.room-stage-section{--sen-app-column-width:100%}}

/* Canonical night palette. Vue, plaza, roaming and WallStudio consume this file.
   Assets, scene materials and semantic error/payment colours are never inverted. */
.room-stage-section[data-theme="night"],
.room-stage-section[data-sen-ui="neutral"][data-theme="night"],
.room-stage-section .quick-start[data-theme="night"],
.room-stage-section .mobile-product-root[data-theme="night"],
.room-stage-section .mobile-product-root[data-theme="night"] :where(.mp-sheet, .space-picker, .whole-catalog, .pd-overlay, .rn-search-overlay, .house-menu-scrim, .billing-sheet, .billing-quote, .checkout-flow, .house-menu-dialog, .render-gallery-dialog, .render-preview-manual, .entry-loading, .insufficient-mask, .platform-purchase-notice),
.room-stage-section .editor-surface.quick-build-scene[data-build-theme="night"],
.room-stage-section [data-sen-surface-theme="night"] {
  --sen-ui-page: #0c0d10;
  --sen-ui-sheet: #151714;
  --sen-ui-card: #1b1e1b;
  --sen-ui-dialog: #1b1e1b;
  --sen-ui-ink: #eceee7;
  --sen-ui-muted: #9b9f96;
  --sen-ui-danger: #ff8f74;
  --sen-ui-placeholder: #858b82;
  --sen-ui-line: #ffffff16;
  --sen-ui-glass: #222729df;
  --sen-ui-glass-shadow: inset 0 1px 0 #ffffff14, 0 3px 12px #00000024;
  --sen-ui-secondary: #ffffff0c;
  --sen-ui-selected: #343b30;
  --sen-ui-action: #d5ef62;
  --sen-ui-accent: #d5ef62;
  --sen-ui-action-pressed: #c5dd5b;
  --sen-ui-action-surface: linear-gradient(105deg,#cbf44d,#e4ed62 52%,#f4d968);
  --sen-ui-on-action: #252a14;
  --sen-ui-action-shadow: inset 0 1px 0 #ffffff38, 0 2px 12px #d5ef6210;
  --sen-ui-cancel: #ffffff0c;
  --sen-ui-input: #ffffff08;
  --sen-ui-scrim: #00000080;
  --sen-ui-monochrome-filter: brightness(0) invert(.87);
  --sen-ui-icon-filter: brightness(0) invert(.8);
  --sen-ui-surface: var(--sen-ui-card);
  --sen-ui-skeleton: linear-gradient(100deg,#1b1e1b 20%,#30372d 45%,#1b1e1b 70%);
  --sen-ui-grip: #858b8280;
  --sen-ui-glass-blur: 6px;
  --sen-night-page: var(--sen-ui-page);
  --sen-night-sheet: var(--sen-ui-sheet);
  --sen-night-card: var(--sen-ui-card);
  --sen-night-dialog: var(--sen-ui-dialog);
  --sen-night-ink: var(--sen-ui-ink);
  --sen-night-muted: var(--sen-ui-muted);
  --sen-night-danger: var(--sen-ui-danger);
  --sen-night-placeholder: var(--sen-ui-placeholder);
  --sen-night-line: var(--sen-ui-line);
  --sen-night-glass: var(--sen-ui-glass);
  --sen-night-glass-shadow: var(--sen-ui-glass-shadow);
  --sen-night-secondary: var(--sen-ui-secondary);
  --sen-night-selected: var(--sen-ui-selected);
  --sen-night-action: var(--sen-ui-action);
  --sen-night-accent: var(--sen-ui-accent);
  --sen-night-action-pressed: var(--sen-ui-action-pressed);
  --sen-night-action-surface: var(--sen-ui-action-surface);
  --sen-night-on-action: var(--sen-ui-on-action);
  --sen-night-action-shadow: var(--sen-ui-action-shadow);
  --sen-night-cancel: var(--sen-ui-cancel);
  --sen-night-input: var(--sen-ui-input);
  --sen-night-scrim: var(--sen-ui-scrim);
  --sen-night-monochrome-filter: var(--sen-ui-monochrome-filter);
  --sen-night-icon-filter: var(--sen-ui-icon-filter);
  --sen-night-surface: var(--sen-ui-surface);
  color-scheme: dark;
}

/* Explicit day owners must not inherit night-only fallbacks from another surface. */
.room-stage-section[data-theme="day"], .room-stage-section .mobile-product-root[data-theme="day"], .room-stage-section .quick-start[data-theme="day"], .room-stage-section .editor-surface.quick-build-scene[data-build-theme="day"], .room-stage-section [data-sen-surface-theme="day"], .room-stage-section .mobile-product-root[data-theme="night"] [data-sen-surface-theme="day"] {
  --sen-night-page: initial;
  --sen-night-sheet: initial;
  --sen-night-card: initial;
  --sen-night-dialog: initial;
  --sen-night-ink: initial;
  --sen-night-muted: initial;
  --sen-night-danger: initial;
  --sen-night-placeholder: initial;
  --sen-night-line: initial;
  --sen-night-glass: initial;
  --sen-night-glass-shadow: initial;
  --sen-night-secondary: initial;
  --sen-night-selected: initial;
  --sen-night-action: initial;
  --sen-night-accent: initial;
  --sen-night-action-pressed: initial;
  --sen-night-action-surface: initial;
  --sen-night-on-action: initial;
  --sen-night-action-shadow: initial;
  --sen-night-cancel: initial;
  --sen-night-input: initial;
  --sen-night-scrim: initial;
  --sen-night-monochrome-filter: initial;
  --sen-night-icon-filter: initial;
  --sen-night-surface: initial;
  --sen-ui-skeleton: initial;
  --sen-ui-grip: initial;
  --sen-ui-glass-blur: initial;
  color-scheme: light;
}

/* Shared material roles. Keep pages opaque; blur only the floating surface,
   never its scrim, every list item, or the controls nested inside that surface. */
.room-stage-section[data-sen-glass] {
  --sen-glass-control-filter: blur(8px);
  --sen-glass-panel-filter: blur(14px);
  --sen-glass-ambient-filter: blur(12px);
}
/* Resolve tint at the nearest surface, including a day surface inside a night
   host. Colour and blur budget are independent; scene light is not changed. */
.room-stage-section[data-sen-glass],
.room-stage-section[data-sen-glass] :where([data-theme=day],[data-sen-surface-theme=day],[data-build-theme=day],[data-profile-theme=day],[data-ui-theme=day],.room-stage-section[data-time=day],.room-stage-section[data-time=dusk]),
.room-stage-section[data-sen-glass] body[data-community-theme=day] {
  --sen-material-control: linear-gradient(135deg,#ffffff7a,#e9e9e766);
  --sen-material-panel: var(--sen-compact-panel-fill);
  --sen-material-card: linear-gradient(135deg,#ffffff70,#f5f5f340);
  --sen-material-edge: var(--sen-compact-edge);
  --sen-material-shadow: var(--sen-compact-panel-shadow);
  --sen-material-flat: var(--sen-compact-card);
}
.room-stage-section[data-sen-glass] :where([data-theme=night],[data-sen-surface-theme=night],[data-build-theme=night],[data-profile-theme=night],[data-ui-theme=night],.room-stage-section[data-time=night]),.room-stage-section[data-sen-glass][data-theme=night],.room-stage-section[data-sen-glass] body[data-community-theme=night] {
  --sen-material-control: linear-gradient(135deg,#78817b42,#27363140);
  --sen-material-panel: var(--sen-compact-panel-fill);
  --sen-material-card: linear-gradient(135deg,#ffffff0c,#ffffff05);
  --sen-material-edge: var(--sen-compact-edge);
  --sen-material-shadow: var(--sen-compact-panel-shadow);
  --sen-material-flat: var(--sen-compact-card);
}
.room-stage-section[data-sen-glass=light] {
  --sen-glass-control-filter: blur(6px);
  --sen-glass-panel-filter: blur(10px);
  --sen-glass-ambient-filter: blur(8px);
}
.room-stage-section[data-sen-glass=flat] {
  --sen-glass-control-filter: none;
  --sen-glass-panel-filter: none;
  --sen-glass-ambient-filter: none;
}

/* Structural panels, including teleported dialogs and the embedded wall editor. */
.room-stage-section[data-sen-glass] body :is(.mp-sheet,.sen-sheet__panel,.editor-save-dialog,
 .login-sheet-panel:not(.auth-content),.space-picker,.whole-catalog,.house-menu-dialog,.scene-entry-card,
 .billing-sheet,.billing-quote,.insufficient-dialog,
 .render-gallery-dialog,.render-preview-manual,.conversation-panel,
 .studio-dialog,.room-type-panel,.opening-details,.opening-shelf,.creation-tools,
 .community-dialog,.ambient-weather-sheet,:where(#dialog)) {
  background: var(--sen-material-panel);
  border: 1px solid var(--sen-material-edge);
  box-shadow: var(--sen-material-shadow);
  -webkit-backdrop-filter: var(--sen-glass-panel-filter);
  backdrop-filter: var(--sen-glass-panel-filter);
}
/* Give modal contents the same quiet surface; no nested glass composites. */
.room-stage-section[data-sen-glass] body :is(.mp-sheet,.sen-sheet__panel,.space-picker,.whole-catalog,
 .conversation-panel,.glass-panel,.studio-dialog,.opening-shelf,.editor-save-dialog,.login-sheet-panel) :is(
 .sen-navigation-button,.mp-header,.sen-sheet__header,.sen-sheet__scroll,
 .mp-tabs,.mp-create-choice,.mp-section,.mp-list,.space-tabs,.space-controls) {
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.room-stage-section[data-sen-glass] body :is(.scene-entry-scrim,.mp-modal-backdrop,.sen-sheet__backdrop,
 .editor-save-scrim,.space-backdrop,.share-overlay,.game-dialog-overlay) {
  -webkit-backdrop-filter:none; backdrop-filter:none;
}
.room-stage-section[data-sen-glass] body .mp-sheet .mp-header { background: var(--sen-material-flat); }
/* Keep house entry and recognition headers in the parent glass material,
   rather than painting a separate rectangular card over the rounded sheet. */
.room-stage-section[data-sen-glass] body .mp-sheet > :is(.mp-house-picker,.mp-create-choice,.house-recognition) > .mp-header { background:transparent; }


/* Shared toolbar/navigation glass across the editor, account and design pages. */
.room-stage-section[data-sen-glass] body :is(.sen-editor__rail,.sen-editor__dock,.sen-editor__mode,
 .mp-bottom-nav,.sen-navigation-button,.quick-theme-toggle,.quick-build-theme-toggle,.profile-back,
 .profile-glass-button,.profile-background-heading button,.mobile-recovery,
 .mobile-background-saves,.editor-notice,.editor-transform,.furniture-rotation,
 .stage-caption,.scene-notice,.snap-notice,.drawing-guide) {
  background: var(--sen-material-control);
  border: 1px solid var(--sen-material-edge);
  box-shadow: var(--sen-material-shadow);
  -webkit-backdrop-filter: var(--sen-glass-control-filter);
  backdrop-filter: var(--sen-glass-control-filter);
}
/* Static rows/cards preserve the glass palette without allocating blur layers. */
.room-stage-section[data-sen-glass] body :is(.profile-rows,.preference-list,.profile-name-card,
 .profile-settings-page .profile-rows button + button,.profile-about-editor textarea,
 .profile-about-custom,.mp-create-choice .mp-list,.profile-tags span,.profile-tags button,
 .mp-my-toolbar .mp-my-search,.mp-my-toolbar .mp-my-view,.mp-my-toolbar .sen-time-sort) {
  background: var(--sen-material-card);
  border-color: var(--sen-material-edge);
  box-shadow: var(--sen-material-shadow);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}

/* Plaza controls follow the same day/night tint as account/navigation controls.
   Immersive camera/clock overlays retain their contrast tint over photography. */
.room-stage-section[data-sen-glass] body .room-stage-section {
  --scene-control-bg: var(--sen-material-control);
  --scene-control-border: var(--sen-material-edge);
  --scene-control-shadow: var(--sen-material-shadow);
}
.room-stage-section[data-sen-glass] body .planning-stage {
  /* Immersive controls already own a dark photographic palette. */
  --sen-material-panel:var(--sen-popup-night-fill);
  --sen-material-flat:#232826;
  --scene-control-bg: linear-gradient(135deg,#78817b42,#27363140);
  --scene-control-border:#ffffff29;
  --scene-control-shadow:inset 0 1px 0 #ffffff20,0 2px 8px #101c1c0a;
  --ambient-glass:linear-gradient(135deg,#78817b42,#27363140);
  --ambient-edge:#ffffff29;
  --ambient-highlight:inset 0 1px 0 #ffffff20;
}
/* Keep the supplied immersive-control reference: translucent tint, fine bright
   rim and a shallow highlight. All detail lives on the same filtered circle. */
.room-stage-section[data-sen-glass] body .planning-stage .icon-button {
  background:var(--scene-control-bg);
  border-color:#ffffff38;
  box-shadow:inset 0 1px 0 #ffffff30,0 3px 12px #17241c0d;
}
.room-stage-section[data-sen-glass] body .room-stage-section :is(.room-action,.save,.music-toggle,.ambient-trigger,.hex-round,.element-browse),.room-stage-section[data-sen-glass] body .planning-stage :is(.icon-button,.character-controls button,.fly-controls button,.joystick,.sen-navigation-button) {
  -webkit-backdrop-filter:var(--sen-glass-control-filter);
  backdrop-filter:var(--sen-glass-control-filter);
}
/* The music glyph has a larger transparent hit target: filter its visible
   circle only, not the square around it or both layers at once. */
.room-stage-section[data-sen-glass] body .room-stage-section .scene-ambient-rail .music-toggle {
  -webkit-backdrop-filter:none; backdrop-filter:none;
}
.room-stage-section[data-sen-glass] body .room-stage-section .scene-ambient-rail .music-toggle::before {
  box-shadow:var(--scene-control-shadow);
  -webkit-backdrop-filter:var(--sen-glass-control-filter);
  backdrop-filter:var(--sen-glass-control-filter);
}
.room-stage-section[data-sen-glass] body .room-stage-section :is(.room-action,.save,.ambient-trigger) {
  box-shadow:var(--scene-control-shadow);
}
.room-stage-section[data-sen-glass] body .room-stage-section .ambient-trigger { color:var(--scene-control-ink); }
/* Previously independent 10–22px filters must also obey the mobile budget. */
.room-stage-section[data-sen-glass] body .room-stage-section:not([data-time=night]) .hex-enter::before {
  -webkit-backdrop-filter:var(--sen-glass-control-filter);
  backdrop-filter:var(--sen-glass-control-filter);
}
.room-stage-section[data-sen-glass] body .profile-character-loading {
  -webkit-backdrop-filter:var(--sen-glass-control-filter);
  backdrop-filter:var(--sen-glass-control-filter);
}
.room-stage-section[data-sen-glass] body .room-stage-section .hex-filter-bar[data-expanded=true] {
  -webkit-backdrop-filter:var(--sen-glass-panel-filter);
  backdrop-filter:var(--sen-glass-panel-filter);
}
/* Confirmation is already inside a filtered sheet. The shutter is opaque. */
.room-stage-section[data-sen-glass] body :is(.profile-character-confirm,.mobile-roam .roam-capture:not(:disabled)) {
  -webkit-backdrop-filter:none; backdrop-filter:none;
}
/* Ambient is a child of .phone, not a second class on the phone itself.
   Only the clock panel samples the scene; controls and joystick use gradients. */
.room-stage-section[data-sen-glass] body .room-stage-section .ambient-view .scene-time-board {
  -webkit-backdrop-filter:var(--sen-glass-ambient-filter);
  backdrop-filter:var(--sen-glass-ambient-filter);
}
.room-stage-section[data-sen-glass] body .room-stage-section .ambient-view .ambient-joystick,
.room-stage-section[data-sen-glass] body .room-stage-section .ambient-view :is(.ambient-exit,.ambient-sound-toggle,.ambient-resume)::before {
  -webkit-backdrop-filter:none; backdrop-filter:none;
}
.room-stage-section[data-sen-glass=flat] body .room-stage-section .ambient-view {
  --ambient-glass:linear-gradient(135deg,#b4b09f85,#7e806f85);
}
.room-stage-section[data-sen-glass] body .planning-stage :is(.glass-panel,.share-link-modal,.album-modal) {
  background:var(--sen-material-panel);border-color:var(--sen-material-edge);box-shadow:var(--sen-material-shadow);
  -webkit-backdrop-filter:var(--sen-glass-panel-filter);
  backdrop-filter:var(--sen-glass-panel-filter);
}
.room-stage-section[data-sen-glass] body .planning-stage .glass-panel .sen-navigation-button {
  background:#ffffff0c; -webkit-backdrop-filter:none; backdrop-filter:none;
}
.room-stage-section[data-sen-glass] body .planning-stage > .roam-header .sen-navigation-button {
  background:var(--scene-control-bg); color:var(--scene-control-ink);
}

/* Large/dragging drawers are expensive over a moving 3D canvas. */
.room-stage-section[data-sen-glass] body :is(.sen-sheet--dragging .sen-sheet__panel,.sen-sheet__panel[data-sheet-size=large]) {
  background:var(--sen-material-flat);
  -webkit-backdrop-filter:none; backdrop-filter:none;
}
.room-stage-section[data-sen-glass=flat] body :is(.mp-sheet,.sen-sheet__panel,.space-picker,
 .whole-catalog,.editor-save-dialog,.conversation-panel,.community-dialog,:where(#dialog),
 .studio-dialog,.room-type-panel,.opening-shelf,.creation-tools) { background:var(--sen-material-flat); }
.room-stage-section[data-sen-glass=flat] body .planning-stage :is(.glass-panel,.share-link-modal,.album-modal) { background:var(--sen-material-flat); }
/* Also catches older isolated controls until they adopt the shared role.
   'none' creates no filtering layer; never apply blur to a universal selector. */
.room-stage-section[data-sen-glass=flat] *, .room-stage-section[data-sen-glass=flat] *::before, .room-stage-section[data-sen-glass=flat] *::after {
  -webkit-backdrop-filter:none!important; backdrop-filter:none!important;
}
@media (prefers-reduced-transparency:reduce) {
  .room-stage-section[data-sen-glass] body .room-stage-section .ambient-view { --ambient-glass:linear-gradient(135deg,#7a7d6d,#545e50); }
  .room-stage-section[data-sen-glass] *, .room-stage-section[data-sen-glass] *::before, .room-stage-section[data-sen-glass] *::after {
    -webkit-backdrop-filter:none!important; backdrop-filter:none!important;
  }
}

/* Editor catalogue: a single matte surface over live WebGL. Static highlights
   preserve the glass edge without blurring the whole catalogue every frame.
   Resolve its palette on theme owners, not on their descendant drawers: a night
   opening host may contain a day editor. The nearest owner must win by inheritance. */
.room-stage-section,
.room-stage-section :where([data-theme=day],[data-sen-surface-theme=day],[data-build-theme=day]) {
  --sen-backpack-surface:#f5f5f3;
  --sen-backpack-input:#28282806; --sen-backpack-secondary:#28282808;
  --sen-backpack-selected:#2828280e; --sen-backpack-line:#28282816;
  --sen-backpack-muted:#686868; --sen-backpack-action:#5b6d33;
  --sen-backpack-panel:linear-gradient(155deg,#fdfdfc,#f0f0ee);
}
.room-stage-section[data-theme=night],
.room-stage-section :where([data-theme=night],[data-sen-surface-theme=night],[data-build-theme=night]) {
  --sen-backpack-surface:#202425;
  --sen-backpack-input:#ffffff06; --sen-backpack-secondary:#ffffff09;
  --sen-backpack-selected:#ffffff12; --sen-backpack-line:#ffffff14;
  --sen-backpack-muted:#abb2ac; --sen-backpack-action:#d5ef62;
  --sen-backpack-panel:linear-gradient(155deg,#292e2f,#202425 46%);
}
.room-stage-section .sen-editor__backpack {
  --sen-ui-card:transparent; --sen-ui-sheet:transparent;
  --sen-ui-input:var(--sen-backpack-input); --sen-ui-secondary:var(--sen-backpack-secondary);
  --sen-ui-selected:var(--sen-backpack-selected); --sen-ui-line:var(--sen-backpack-line);
  --sen-ui-muted:var(--sen-backpack-muted); --sen-ui-placeholder:var(--sen-backpack-muted);
  --sen-ui-action:var(--sen-backpack-action);
  --sen-material-panel:var(--sen-backpack-panel);
  --sen-material-flat:var(--sen-material-panel);
  --sen-glass-panel-filter:none; --sen-glass-control-filter:none;
}
.room-stage-section[data-sen-glass] body .sen-editor__backpack .sen-sheet__panel,
.room-stage-section .sen-editor__backpack .sen-sheet__panel {
  background:var(--sen-material-panel); border-top:1px solid var(--sen-ui-line);
  box-shadow:inset 0 1px 0 #ffffff12,0 -6px 22px #00000012;
  -webkit-backdrop-filter:none;backdrop-filter:none;
}
.room-stage-section .sen-editor__backpack :is(.diy-connected,.diy-panel,.backpack-categories) { background:transparent; }
.room-stage-section .sen-editor__backpack input::placeholder { color:var(--sen-ui-placeholder); opacity:1; }
.room-stage-section .sen-editor__backpack .diy-grid { gap:10px 8px; }
.room-stage-section .sen-editor__backpack .diy-card { border:1px solid var(--sen-ui-line); border-radius:12px; }

/* Opening starts with legacy RN day tokens. Scope the shipped neutralTheme day
   roles to this picker; night continues to consume the live document palette. */
.room-stage-section .companion-sheet{
 --companion-ink:#282c31;--companion-muted:#737982;--companion-line:#29374712;
 --companion-card:#f3f5f7;--companion-selected:#edf1f6;
 --companion-accent:#bdcadb;--companion-on-selected:#354457;
}
.room-stage-section[data-theme="night"] .companion-sheet{
 --companion-ink:var(--sen-ui-ink);--companion-muted:var(--sen-ui-muted);--companion-line:var(--sen-ui-line);
 --companion-card:var(--sen-ui-secondary);--companion-selected:var(--sen-ui-selected);
 --companion-accent:var(--sen-ui-accent);--companion-on-selected:var(--sen-ui-on-action);
}
.room-stage-section .companion-sheet{box-sizing:border-box;color:var(--companion-ink);background:var(--sen-material-panel,var(--sen-ui-glass,#ffffffbd));border:1px solid var(--sen-material-edge,var(--companion-line));border-radius:26px 26px 0 0;padding:16px 16px max(16px,env(safe-area-inset-bottom));width:min(100%,520px);max-height:85dvh;overflow:auto;overscroll-behavior:contain;position:fixed;inset:auto 0 0;margin:0 auto;box-shadow:var(--sen-material-shadow,var(--sen-ui-glass-shadow));-webkit-backdrop-filter:var(--sen-glass-panel-filter,blur(14px));backdrop-filter:var(--sen-glass-panel-filter,blur(14px))}.room-stage-section .companion-sheet::backdrop{background:var(--sen-ui-scrim,#202a3733)}.room-stage-section .companion-sheet header,.room-stage-section .companion-sheet footer{display:flex;align-items:center;justify-content:space-between;gap:12px}.room-stage-section .companion-sheet h2{font-weight:600;line-height:1.3;margin:0;font-size:18px}.room-stage-section .companion-sheet button{font:inherit;color:inherit;cursor:pointer;border:1px solid var(--companion-line);background:var(--companion-card);border-radius:12px;padding:11px 14px;min-height:44px}.room-stage-section .companion-sheet button:focus-visible{outline:2px solid var(--companion-accent);outline-offset:2px}.room-stage-section .companion-sheet button:disabled{opacity:.4;cursor:default}.room-stage-section .companion-status{font-size:12px;line-height:1.5;color:var(--companion-muted)}.room-stage-section .companion-tabs{display:flex;flex:1;gap:6px;margin:0}.room-stage-section .companion-tabs button{flex:1}.room-stage-section .companion-tabs button[aria-pressed=true]{background:var(--companion-selected);color:var(--companion-ink);border-color:var(--companion-accent);box-shadow:inset 0 0 0 1px var(--companion-accent)}.room-stage-section .companion-sheet .companion-none{flex:0 0 44px;width:44px;padding:10px;margin:0}.room-stage-section .companion-sheet .companion-none[aria-pressed=true],.room-stage-section .companion-card[aria-pressed=true]{background:var(--companion-selected);border-color:var(--companion-accent);box-shadow:inset 0 0 0 1px var(--companion-accent)}.room-stage-section .companion-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-content:start}.room-stage-section .companion-sheet .companion-card{position:relative;padding:0;display:flex;flex-direction:column;align-items:center;gap:0;font-size:12px;overflow:hidden;min-width:0;min-height:44px}.room-stage-section .companion-card img{width:100%;height:auto;aspect-ratio:1;object-fit:contain;border-radius:0}.room-stage-section .companion-card[aria-pressed=true]:after{content:'✓';position:absolute;top:5px;right:6px;border-radius:50%;background:var(--companion-accent);color:var(--companion-on-selected);width:20px;height:20px;line-height:20px;text-align:center}.room-stage-section .companion-sheet footer{margin-top:8px;font-size:12px}.room-stage-section .companion-sheet footer button{width:44px;padding:10px}.room-stage-section .companion-status{margin:8px 0 0}.room-stage-section .companion-status:empty{display:none}.room-stage-section #companionToggle svg{fill:none;stroke:currentColor}
/* Transparent native portraits use the same full square frame as roam. */
.room-stage-section .companion-sheet .companion-card--pet{min-width:0;padding:0;gap:0;justify-content:flex-start}
.room-stage-section .companion-card--pet .companion-portrait-frame{display:block;width:100%;aspect-ratio:1;overflow:hidden;background:transparent}
.room-stage-section .companion-card--pet .companion-portrait-frame img{display:block;width:100%;height:100%;max-width:none;object-fit:contain;object-position:50% 50%;border-radius:0;transform:none;transform-origin:50% 50%;background:transparent}
.room-stage-section .companion-card-label{box-sizing:border-box;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;max-width:100%;overflow:hidden;overflow-wrap:anywhere;line-height:16px;min-height:0;padding:4px 6px}
.room-stage-section .companion-card--pet .companion-card-label{width:100%;min-height:0;padding:4px 6px}

.room-stage-section .companion-controls{display:flex;align-items:center;gap:8px;margin:8px 0}
.room-stage-section .companion-controls .companion-tabs button{font-size:13px;padding:8px 10px}
.room-stage-section .companion-sheet .companion-close{flex:0 0 44px;width:44px;padding:10px;border:1px solid var(--sen-material-edge,var(--companion-line));border-radius:50%;background:var(--sen-material-control,var(--companion-card))}
.room-stage-section .companion-close,.room-stage-section .companion-none,.room-stage-section .companion-sheet footer button{display:grid;place-items:center}
.room-stage-section .companion-close svg,.room-stage-section .companion-none svg,.room-stage-section .companion-sheet footer button svg{width:20px;height:20px}
.room-stage-section .companion-sheet .companion-shop{flex:0 0 44px;width:44px;height:44px;padding:10px;display:grid;place-items:center}
.room-stage-section .companion-shop svg{display:block;width:20px;height:20px}

.room-stage-section .presence-actions{position:absolute;z-index:12;width:min(236px,calc(100% - 16px));box-sizing:border-box;padding:10px;background:#fafcf3f2;color:#2c4033;border:1px solid #ced9c4;border-radius:16px;box-shadow:0 5px 22px #172a2528;pointer-events:auto;text-align:left}.room-stage-section .presence-actions[hidden]{display:none}.room-stage-section .presence-actions header{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px}.room-stage-section .presence-actions header strong{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.room-stage-section .presence-actions button{border:1px solid #d0dbc4;border-radius:10px;background:#edf2e4;color:inherit;min-height:36px;font:inherit;font-size:12px;padding:7px 9px;cursor:pointer}.room-stage-section .presence-actions header button{border:0;background:transparent;font-size:22px;line-height:1;min-width:36px}.room-stage-section .presence-action-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:4px}.room-stage-section .presence-actions small{display:block;color:#617359;font-size:11px;line-height:1.4;margin-top:5px}.room-stage-section .presence-actions small:empty{display:none}.room-stage-section .presence-actions button:disabled{opacity:.5}.room-stage-section .presence-actions button:focus-visible{outline:2px solid #768e4f;outline-offset:1px}

.room-stage-section .companion-card--none .companion-none-portrait{display:grid;place-items:center;width:100%;height:auto;aspect-ratio:1;color:var(--companion-muted);background:transparent}.room-stage-section .companion-card--pet.companion-card--none .companion-none-portrait{height:auto;aspect-ratio:1}.room-stage-section .companion-none-portrait svg{width:44px;height:44px}.room-stage-section .companion-card--none[aria-pressed=true]{background:var(--companion-selected);border-color:var(--companion-accent);box-shadow:inset 0 0 0 1px var(--companion-accent)}

.room-stage-section[data-sen-glass="flat"] .companion-sheet{background:var(--sen-material-flat,var(--sen-ui-sheet,#fcfcfd))}
@media(prefers-reduced-transparency:reduce){.room-stage-section .companion-sheet{background:var(--sen-material-flat,var(--sen-ui-sheet,#fcfcfd));-webkit-backdrop-filter:none;backdrop-filter:none}}

.room-stage-section .presence-action-pages{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:5px}.room-stage-section .presence-action-pages button{min-width:36px;padding:0 8px;font-size:20px}.room-stage-section .presence-action-pages span{font-size:11px;opacity:.7}

/* Person interaction shares plaza material; actions lead with pose icons. */
.room-stage-section .presence-actions.is-person{width:min(320px,calc(100% - 24px));max-height:calc(100% - 24px);overflow:auto;padding:12px 14px;border-radius:24px;color:var(--sen-ui-ink,#303638);background:var(--sen-material-panel,var(--sen-ui-glass,#ffffffde));border-color:var(--sen-material-edge,var(--sen-ui-line,#29374712));box-shadow:var(--sen-material-shadow,0 8px 32px #172a251c);backdrop-filter:var(--sen-glass-panel-filter,blur(14px));-webkit-backdrop-filter:var(--sen-glass-panel-filter,blur(14px))}
.room-stage-section .presence-actions.is-person header{font-size:15px;margin-bottom:6px}.room-stage-section .presence-actions.is-person header button{width:44px;height:44px}
.room-stage-section .presence-actions.is-person .presence-action-buttons{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.room-stage-section .presence-actions.is-person .presence-action-buttons button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:64px;padding:6px 2px;border:0;background:transparent;font-size:11px;line-height:1.3}
.room-stage-section .presence-actions.is-person .presence-action-buttons svg{width:32px;height:32px}
.room-stage-section .presence-actions.is-person button{color:inherit}.room-stage-section .presence-actions.is-person button:hover{background:var(--sen-ui-selected,#edf1f6)}
.room-stage-section .presence-actions.is-person .presence-action-pages button{min-width:44px;min-height:44px;background:transparent;border:0}
.room-stage-section .presence-action-kinds{display:flex;gap:6px;margin-bottom:6px}
.room-stage-section .presence-actions.is-person .presence-action-kinds button{flex:1;min-height:44px;border:0;border-radius:18px;background:var(--sen-ui-secondary,#f3f5f7);font-size:13px}
.room-stage-section .presence-actions.is-person .presence-action-kinds button[aria-selected=true]{background:var(--sen-ui-selected,#edf1f6);color:var(--sen-ui-ink,#303638)}
.room-stage-section .presence-action-pages[hidden]{display:none}
.room-stage-section .presence-person-modes{display:grid;grid-template-columns:1fr 1fr;gap:8px;border-top:1px solid var(--sen-ui-line,#29374712);padding-top:10px;margin-top:6px}
.room-stage-section .presence-person-modes button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;border-radius:22px;background:var(--sen-ui-secondary,#f3f5f7);border:0;font-size:12px}
.room-stage-section .presence-person-modes svg{width:22px;height:22px}.room-stage-section .presence-actions.is-person small{color:var(--sen-ui-muted,#737982)}
.room-stage-section .ambient-companion-controls{position:absolute;left:50%;bottom:max(24px,env(safe-area-inset-bottom));transform:translateX(-50%);display:flex;gap:6px;padding:6px;border:1px solid var(--ambient-edge);border-radius:32px;background:var(--ambient-glass);backdrop-filter:blur(14px);pointer-events:auto}
.room-stage-section .ambient-companion-controls[hidden]{display:none}.room-stage-section .ambient-companion-controls button{display:grid;place-items:center;min-width:44px;min-height:44px;border:0;border-radius:50%;background:transparent;color:inherit}.room-stage-section .ambient-companion-controls svg{width:27px;height:27px}.room-stage-section .ambient-companion-controls button:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.room-stage-section .ambient-companion-status{position:absolute;bottom:90px;left:20px;right:20px;text-align:center;font-size:12px}
.room-stage-section[data-ambient-focus=resident] .scene-time-board{pointer-events:none}.room-stage-section[data-ambient-focus=resident] .ambient-story{display:none}
@media(max-height:500px){.room-stage-section .presence-actions.is-person{width:min(360px,calc(100% - 24px))}.room-stage-section .presence-actions.is-person .presence-action-buttons{grid-template-columns:repeat(6,minmax(0,1fr))}.room-stage-section .presence-actions.is-person .presence-action-buttons button{min-height:52px}.room-stage-section .ambient-companion-controls{left:auto;right:16px;transform:none;bottom:16px}}

/* A character portrait owns the canvas; the room clock board returns on exit. */
.room-stage-section[data-ambient-focus=resident] .scene-time-board,.room-stage-section[data-ambient-focus=resident] .ambient-menu-toggle{display:none}
.room-stage-section .ambient-companion-name{position:absolute;top:max(30px,env(safe-area-inset-top));left:76px;right:76px;text-align:center;font-size:15px;font-weight:500;line-height:24px;pointer-events:none;text-shadow:0 1px 8px #0003}
.room-stage-section .ambient-companion-name[hidden]{display:none}
.room-stage-section .ambient-companion-controls button:hover,.room-stage-section .ambient-companion-controls button:active{background:var(--sen-ui-selected,#ffffff26)}
@media(prefers-reduced-transparency:reduce){.room-stage-section .presence-actions.is-person{background:var(--sen-material-flat,#fcfcfd);backdrop-filter:none;-webkit-backdrop-filter:none}}

.room-stage-section .presence-actions.is-person header{justify-content:flex-end;margin-bottom:0}.room-stage-section .presence-actions.is-person .presence-action-buttons button span{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Keep the shop beside the two companion categories, with a visible lime action. */
.room-stage-section dialog.companion-sheet .companion-controls{display:flex;align-items:stretch;gap:8px}
.room-stage-section dialog.companion-sheet .companion-controls .companion-tabs{min-width:0}
.room-stage-section dialog.companion-sheet .companion-controls .companion-shop{box-sizing:border-box;flex:0 0 48px;width:48px;height:44px;min-height:44px;padding:10px;border-radius:14px;background:#d5ef62;color:#293314;border:1px solid #b9d449;box-shadow:none}
.room-stage-section dialog.companion-sheet .companion-controls .companion-shop:hover{background:#cce64f}
.room-stage-section dialog.companion-sheet .companion-controls .companion-shop:focus-visible{outline:2px solid #667d18;outline-offset:2px}

/* Portrait-first conversation: one speaker, one line, then clear action choices. */
.room-stage-section .presence-actions.presence-actions.is-dialogue.is-dialogue:not([hidden]){display:grid;grid-template-columns:82px minmax(0,1fr);gap:10px 14px;width:min(420px,calc(100% - 24px));padding:16px 16px 12px;border-radius:26px;box-sizing:border-box;max-height:calc(100% - 24px);overflow:auto;color:var(--sen-ui-ink,#303638);background:var(--sen-material-panel,var(--sen-ui-glass,#ffffffed))!important;border:1px solid var(--sen-material-edge,#ffffff70)!important;box-shadow:var(--sen-material-shadow,0 12px 40px #172a2524)!important;backdrop-filter:var(--sen-glass-panel-filter,blur(18px));-webkit-backdrop-filter:var(--sen-glass-panel-filter,blur(18px))}
.room-stage-section .presence-actions.is-dialogue[hidden]{display:none!important}
.room-stage-section .presence-actions.is-dialogue .presence-dialogue-body{display:contents}
.room-stage-section .presence-actions.presence-actions.is-dialogue .presence-speaker{grid-column:1;grid-row:1;display:flex;flex-direction:column;align-items:center;gap:9px;min-width:0;margin:0;padding:0;border:0;border-radius:20px;background:transparent;box-shadow:none;color:inherit;cursor:default;font:inherit}
.room-stage-section .presence-actions.is-dialogue button.presence-speaker{cursor:pointer}
.room-stage-section .presence-speaker-portrait{position:relative;display:grid;place-items:center;width:82px;height:92px;border-radius:22px;background:radial-gradient(ellipse at 50% 80%,#d5ef6226,transparent 72%),var(--sen-ui-secondary,#edf0e9);box-shadow:inset 0 0 0 1px var(--sen-ui-line,#2937470c)}
.room-stage-section .presence-speaker-portrait>svg{width:40px;height:40px;color:var(--sen-ui-muted,#737982)}
.room-stage-section .presence-speaker-portrait img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 16%;border-radius:22px}
.room-stage-section .is-pet .presence-speaker-portrait img{object-fit:contain;object-position:center}
.room-stage-section .presence-speaker-edit{position:absolute;right:-4px;bottom:-4px;display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:var(--sen-material-flat,var(--sen-ui-sheet,#fcfcfd));border:1px solid var(--sen-ui-line,#29374712);box-shadow:0 2px 7px #00000010}
.room-stage-section .presence-speaker-edit svg{width:14px;height:14px}
.room-stage-section .presence-speaker strong{display:block;max-width:100%;font-size:13px;line-height:18px;font-weight:600;letter-spacing:.035em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.room-stage-section .presence-actions.presence-actions.is-dialogue.is-dialogue .presence-dialogue-heading{grid-column:2;grid-row:1;display:flex;align-items:center;min-width:0;margin:0;padding:30px 0 16px;position:relative;gap:0}
.room-stage-section .presence-actions.presence-actions.is-dialogue.is-dialogue .presence-speech{position:relative;display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-width:0;min-height:68px;box-sizing:border-box;margin:0;padding:16px 12px 16px 16px;text-align:left;font:inherit;background:var(--sen-ui-secondary,#edf0e966);color:inherit;border:1px solid var(--sen-ui-line,#2937470c);border-radius:18px 18px 18px 5px;box-shadow:none}
.room-stage-section .presence-speech:before{content:'';position:absolute;left:15px;top:10px;width:15px;height:2px;border-radius:2px;background:#b9d449;opacity:.85}
.room-stage-section .presence-actions.is-dialogue .presence-dialogue-line{margin:0;font-size:14px;font-weight:500;line-height:22px;letter-spacing:.025em;overflow-wrap:anywhere}
.room-stage-section .presence-speech>svg{width:15px;height:15px;flex:0 0 15px;color:var(--sen-ui-muted,#737982);opacity:.75}
.room-stage-section .presence-actions.presence-actions.is-dialogue.is-dialogue .presence-dialogue-heading .sen-dismiss-button{position:absolute;right:-8px;top:-12px;display:grid;place-items:center;width:44px;height:44px;min-height:44px;min-width:44px;padding:0;border:0;background:transparent;border-radius:50%;color:var(--sen-ui-muted,#737982);font-size:24px;box-shadow:none}
.room-stage-section .presence-actions.presence-actions.is-dialogue.is-dialogue .presence-action-kinds{grid-column:1/-1;display:flex;gap:22px;margin:0;padding:0 4px;border-bottom:1px solid var(--sen-ui-line,#29374710)}
.room-stage-section .presence-actions.presence-actions.is-dialogue.is-dialogue .presence-action-kinds button{position:relative;flex:0 0 auto;min-height:44px;min-width:44px;padding:0 4px;border:0;background:transparent;color:var(--sen-ui-muted,#737982);border-radius:0;font-size:12px;box-shadow:none}
.room-stage-section .presence-actions.presence-actions.is-dialogue.is-dialogue .presence-action-kinds button[aria-selected=true]{background:transparent;color:var(--sen-ui-ink,#303638);font-weight:600;box-shadow:none}
.room-stage-section .presence-action-kinds button[aria-selected=true]:after{content:'';position:absolute;bottom:0;left:4px;right:4px;height:3px;border-radius:3px;background:#c7e44e}
.room-stage-section .presence-actions.presence-actions.is-dialogue.is-dialogue .presence-action-buttons{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:0;padding:0}
.room-stage-section .presence-actions.presence-actions.is-dialogue.is-dialogue .presence-action-buttons button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:66px;padding:8px 4px;border-radius:16px;border:1px solid var(--sen-ui-line,#2937470a);background:var(--sen-ui-secondary,#f1f3ee88);color:inherit;box-shadow:none;font-size:11px;line-height:16px;transition:background .16s ease,transform .16s ease}
.room-stage-section .presence-actions.is-dialogue .presence-action-buttons svg{width:29px;height:29px;stroke-width:1.55}
.room-stage-section .presence-actions.presence-actions.is-dialogue.is-dialogue .presence-action-buttons button:hover{background:var(--sen-ui-selected,#e9efdc)}
.room-stage-section .presence-actions.presence-actions.is-dialogue.is-dialogue .presence-action-buttons button:active{transform:translateY(1px);background:var(--sen-ui-selected,#e9efdc)}
.room-stage-section .presence-actions.is-dialogue .presence-action-buttons span{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.room-stage-section .presence-actions.presence-actions.is-dialogue .presence-action-pages{grid-column:1/-1;display:flex;justify-content:center;align-items:center;gap:16px;margin:0;padding:0}
.room-stage-section .presence-actions.presence-actions.is-dialogue .presence-action-pages button{width:44px;height:44px;min-height:44px;padding:0;border:0;background:transparent;box-shadow:none;color:var(--sen-ui-muted,#737982)}
.room-stage-section .presence-actions.is-dialogue small[role=status]{grid-column:1/-1;color:var(--sen-ui-muted,#737982);font-size:11px;line-height:16px}
.room-stage-section .presence-actions.is-dialogue small:empty{display:none}
.room-stage-section .presence-actions.is-dialogue .presence-dialogue-roster{grid-column:1/-1;min-width:0}
.room-stage-section .presence-dialogue-body.is-choosing>.presence-dialogue-heading,.room-stage-section .presence-dialogue-body.is-choosing>.presence-action-kinds,.room-stage-section .presence-dialogue-body.is-choosing>.presence-action-buttons,.room-stage-section .presence-dialogue-body.is-choosing>.presence-action-pages,.room-stage-section .presence-dialogue-body.is-choosing>small{display:none!important}
.room-stage-section .presence-actions.presence-actions.is-dialogue.is-choosing .presence-speaker{grid-column:1/-1;display:flex;flex-direction:row;gap:12px;justify-content:flex-start;min-height:56px}
.room-stage-section .presence-actions.is-dialogue.is-choosing .presence-speaker-portrait{width:48px;height:56px;border-radius:14px}.room-stage-section .presence-actions.is-dialogue.is-choosing .presence-speaker img{border-radius:14px}.room-stage-section .is-choosing .presence-speaker-edit{display:none}
.room-stage-section .companion-embedded{min-width:0}.room-stage-section .companion-embedded header{margin:0 0 8px!important}.room-stage-section .companion-embedded h2{font-size:14px;margin:0;font-weight:500}.room-stage-section .companion-embedded header .companion-close{display:grid;place-items:center;width:44px;min-width:44px;min-height:44px;padding:10px;border:0;background:var(--sen-ui-secondary,#f3f5f7);border-radius:50%}.room-stage-section .companion-embedded .companion-close svg{width:18px;height:18px}.room-stage-section .companion-embedded .companion-controls{gap:8px;margin:0 0 12px}.room-stage-section .companion-embedded .companion-tabs{min-width:0}.room-stage-section .companion-embedded .companion-tabs button{padding:6px 10px;min-height:44px;border-radius:12px;font-size:12px;background:transparent;color:inherit;border-color:var(--sen-ui-line,#29374712)}.room-stage-section .companion-embedded .companion-tabs button[aria-pressed=true]{background:var(--sen-ui-selected,#edf1f6);border-color:#b9d449;box-shadow:none}.room-stage-section .companion-embedded .companion-shop{display:grid;place-items:center;width:44px;min-width:44px;min-height:44px;padding:10px;background:#d5ef62;color:#293314;border:0;border-radius:12px}.room-stage-section .companion-embedded .companion-shop svg{width:20px;height:20px}.room-stage-section .companion-embedded .companion-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.room-stage-section .companion-embedded .companion-card{display:flex;flex-direction:column;align-items:center;gap:0;min-width:0;padding:0;overflow:hidden;border:1px solid var(--sen-ui-line,#29374712);border-radius:14px;background:var(--sen-ui-secondary,#f3f5f7);color:inherit}.room-stage-section .companion-embedded .companion-card img{width:100%;aspect-ratio:1;object-fit:contain}.room-stage-section .companion-embedded .companion-card-label{display:block;width:100%;padding:5px;font-size:11px;line-height:16px;white-space:nowrap;text-overflow:ellipsis}.room-stage-section .companion-embedded .companion-card[aria-pressed=true]{position:relative;border-color:#b9d449;box-shadow:inset 0 0 0 1px #b9d449}.room-stage-section .companion-embedded .companion-card[aria-pressed=true]:after{width:18px;height:18px;line-height:18px;font-size:12px;background:#d5ef62;color:#293314}.room-stage-section .companion-embedded footer{display:flex;justify-content:center;align-items:center;gap:12px;margin-top:8px}.room-stage-section .companion-embedded footer button{width:44px;min-height:44px;padding:10px;border:0;background:transparent}.room-stage-section .companion-embedded footer svg{width:18px;height:18px}.room-stage-section .companion-embedded .companion-status{font-size:11px;line-height:16px}.room-stage-section .companion-embedded .companion-none-portrait{aspect-ratio:1;width:100%;height:auto}.room-stage-section .companion-embedded .companion-none-portrait svg{width:30px;height:30px}
@media(orientation:landscape) and (max-height:520px){
 .room-stage-section .presence-actions.presence-actions.is-dialogue.is-dialogue:not([hidden]){grid-template-columns:94px minmax(0,1fr);width:min(656px,calc(100% - 32px));gap:6px 18px;padding:14px 18px;border-radius:24px}
 .room-stage-section .presence-actions.presence-actions.is-dialogue .presence-speaker{grid-row:1/5;align-self:center}
 .room-stage-section .presence-speaker-portrait{width:94px;height:120px}
 .room-stage-section .presence-actions.presence-actions.is-dialogue.is-dialogue .presence-dialogue-heading{grid-column:2;grid-row:1;padding:0 34px 0 0;min-height:54px}
 .room-stage-section .presence-actions.presence-actions.is-dialogue.is-dialogue .presence-speech{min-height:54px;padding-block:12px}
 .room-stage-section .presence-actions.presence-actions.is-dialogue.is-dialogue .presence-dialogue-heading .sen-dismiss-button{right:-10px;top:-10px}
 .room-stage-section .presence-actions.presence-actions.is-dialogue.is-dialogue .presence-action-kinds,.room-stage-section .presence-actions.presence-actions.is-dialogue.is-dialogue .presence-action-buttons,.room-stage-section .presence-actions.presence-actions.is-dialogue .presence-action-pages{grid-column:2}
 .room-stage-section .presence-actions.presence-actions.is-dialogue.is-dialogue .presence-action-buttons{grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}
 .room-stage-section .presence-actions.presence-actions.is-dialogue.is-dialogue .presence-action-buttons button{min-height:66px;border-radius:13px;padding:8px 3px;gap:5px}
 .room-stage-section .presence-actions.is-dialogue .presence-action-buttons svg{width:26px;height:26px}
 .room-stage-section .presence-actions.is-dialogue .presence-dialogue-roster{grid-column:2}
 .room-stage-section .presence-actions.presence-actions.is-dialogue.is-choosing .presence-speaker{grid-column:1;grid-row:1/3;flex-direction:column}
 .room-stage-section .companion-embedded .companion-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
}
@media(prefers-reduced-motion:reduce){.room-stage-section .presence-actions.is-dialogue .presence-action-buttons button{transition:none}}
@media(prefers-reduced-transparency:reduce){.room-stage-section .presence-actions.presence-actions.is-dialogue.is-dialogue:not([hidden]){background:var(--sen-material-flat,#fcfcfd)!important;backdrop-filter:none;-webkit-backdrop-filter:none}}

.room-stage-section .presence-actions.presence-actions.is-dialogue .presence-action-pages[hidden]{display:none!important}

.room-stage-section .presence-actions.presence-actions.is-dialogue.is-dialogue .presence-action-buttons:has(>button:last-child:nth-child(1)){grid-template-columns:1fr}
.room-stage-section .presence-actions.presence-actions.is-dialogue.is-dialogue .presence-action-buttons:has(>button:last-child:nth-child(2)){grid-template-columns:repeat(2,minmax(0,1fr))}
@media(orientation:portrait){.room-stage-section .presence-actions.presence-actions.is-dialogue.is-dialogue .presence-action-buttons:has(>button:last-child:nth-child(4)){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(orientation:landscape) and (max-height:520px){.room-stage-section .presence-actions.presence-actions.is-dialogue.is-dialogue .presence-action-buttons:has(>button:last-child:nth-child(4)){grid-template-columns:repeat(4,minmax(0,1fr))}}

@media(orientation:landscape) and (max-height:520px){
 .room-stage-section .presence-actions.presence-actions.is-dialogue .presence-speaker{grid-row:1/4}
 .room-stage-section .presence-actions.presence-actions.is-dialogue.is-dialogue .presence-action-kinds{grid-row:2}
 .room-stage-section .presence-actions.presence-actions.is-dialogue.is-dialogue .presence-action-buttons{grid-row:3}
 .room-stage-section .presence-actions.presence-actions.is-dialogue .presence-action-pages{grid-row:4}
 .room-stage-section .presence-actions.is-dialogue .presence-dialogue-roster{grid-row:1/4}
}

@media(orientation:portrait) and (max-width:350px){
 .room-stage-section .presence-actions.presence-actions.is-dialogue.is-dialogue:not([hidden]){grid-template-columns:68px minmax(0,1fr);column-gap:10px;padding:14px 14px 12px}
 .room-stage-section .presence-actions.is-dialogue .presence-speaker-portrait{width:68px;height:84px;border-radius:18px}
 .room-stage-section .presence-actions.is-dialogue .presence-speaker-portrait img{border-radius:18px}
 .room-stage-section .presence-actions.is-dialogue .presence-speaker strong{font-size:12px}
 .room-stage-section .presence-actions.presence-actions.is-dialogue.is-dialogue .presence-speech{gap:6px;padding:14px 10px;min-height:64px}
 .room-stage-section .presence-actions.is-dialogue .presence-dialogue-line{font-size:13px;line-height:20px;letter-spacing:0}
 .room-stage-section .presence-speech>svg{width:12px;height:12px;flex-basis:12px}
}

/* Full application store sheets share the old class name; keep picker controls local. */
.room-stage-section :is(dialog.companion-sheet,.presence-actions.is-dialogue .companion-embedded) .companion-controls>button.companion-shop{box-sizing:border-box;width:44px;height:44px;min-width:44px;min-height:44px;padding:10px!important;border:1px solid #b9d449!important;border-radius:12px!important;background:#d5ef62!important;color:#293314!important;box-shadow:none!important;display:grid;place-items:center}
.room-stage-section .presence-actions.is-dialogue .companion-embedded>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 8px!important}
.room-stage-section .presence-actions.is-dialogue .companion-embedded>header h2{margin:0;font-size:14px;text-align:left}
.room-stage-section .presence-actions.is-dialogue .companion-embedded>header .companion-close{flex:0 0 44px}

/* Selection is its own compact view: the chosen card already supplies identity. */
.room-stage-section .presence-actions.presence-actions.is-dialogue.is-dialogue.is-choosing:not([hidden]){display:block;max-height:calc(100% - 24px)}
.room-stage-section .presence-actions.is-dialogue.is-choosing>.presence-speaker{display:none!important}
.room-stage-section .presence-actions.is-dialogue.is-choosing .presence-dialogue-roster{display:block;width:100%;min-width:0}
.room-stage-section .presence-actions.is-dialogue .companion-embedded>header{min-height:44px;padding:0!important}
.room-stage-section .presence-actions.is-dialogue .companion-embedded>header h2{font-size:16px;font-weight:600;line-height:22px}

/* Cinematic conversations share the existing room camera; no duplicate avatar. */
.room-stage-section[data-conversation=active] .ambient-view{color:#fffdf5;background:linear-gradient(180deg,#10171528,transparent 23%,transparent 46%,#0b1214b0 77%,#0b1214f5)}
.room-stage-section[data-conversation=active] :is(.scene-time-board,.ambient-companion-controls,.ambient-companion-name,.ambient-companion-status,.ambient-sound-toggle,.ambient-menu-toggle,.ambient-story,.ambient-resume){display:none!important}
.room-stage-section[data-conversation=active] .ambient-exit{left:auto;right:max(18px,env(safe-area-inset-right));top:max(18px,env(safe-area-inset-top));width:44px;height:44px;min-height:44px;display:grid;place-items:center}
.room-stage-section[data-conversation=active] .ambient-exit{border-radius:50%}
.room-stage-section[data-conversation=active] .ambient-exit svg{width:18px;height:18px}
.room-stage-section[data-conversation=active] .ambient-exit::before{inset:0;background:#17201c66;border-color:#ffffff35}
.room-stage-section .npc-conversation{position:absolute;inset:auto 28px max(32px,env(safe-area-inset-bottom));width:min(760px,calc(100% - 56px));margin-inline:auto;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px 24px;pointer-events:none;color:#fffdf5;text-shadow:0 1px 8px #0005}
.room-stage-section .npc-conversation-identity{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.room-stage-section .npc-conversation-identity::before{content:'';width:20px;height:1px;background:#d5ef62}
.room-stage-section .npc-conversation-identity strong{font-size:17px;line-height:24px;letter-spacing:.08em;font-weight:500}
.room-stage-section .npc-conversation-line{white-space:pre-line;font-size:clamp(16px,2vw,19px);line-height:1.85;letter-spacing:.035em;max-width:30em;margin:0;text-wrap:pretty}
.room-stage-section .npc-conversation button{font:inherit;cursor:pointer;pointer-events:auto;-webkit-tap-highlight-color:transparent}
.room-stage-section .npc-conversation button:focus-visible{outline:2px solid #d5ef62;outline-offset:4px}
.room-stage-section .npc-conversation .npc-change{display:grid;place-items:center;width:32px;height:32px;min-height:32px;padding:6px;border:0;background:transparent;color:#fff9;border-radius:50%}
.room-stage-section .npc-change svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.room-stage-section .npc-conversation .npc-interact{align-self:end;display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:9px 15px;border:1px solid #d5ef6266;border-radius:999px;color:#e0f391;background:#273329b3;backdrop-filter:blur(16px);font-size:13px;letter-spacing:.08em;white-space:nowrap}
.room-stage-section .npc-interact>svg{width:22px;height:22px}.room-stage-section .npc-interact>svg.npc-expand{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.4}.room-stage-section .npc-interact[aria-expanded=true]>.npc-expand{transform:rotate(180deg)}
.room-stage-section .npc-action-drawer{grid-column:1/-1;min-width:0;padding:14px 8px 8px;background:#18201deb;border:1px solid #ffffff24;border-radius:20px;backdrop-filter:blur(20px);pointer-events:auto;box-shadow:0 12px 40px #0003;text-shadow:none}
.room-stage-section .npc-action-drawer[hidden]{display:none}
.room-stage-section .npc-action-tabs{display:flex;gap:22px;margin:0 12px 10px;padding-bottom:9px;border-bottom:1px solid #ffffff16}
.room-stage-section .npc-conversation .npc-action-tabs button{min-height:30px;padding:0 2px;border:0;border-bottom:2px solid transparent;background:transparent;color:#ffffff80;font-size:12px}
.room-stage-section .npc-conversation .npc-action-tabs button[aria-selected=true]{color:#e0f391;border-bottom-color:#d5ef62}
.room-stage-section .npc-action-row{display:flex;gap:6px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#ffffff30 transparent;padding:0 3px 6px;scroll-snap-type:x proximity;max-height:min(180px,30dvh)}
.room-stage-section .npc-conversation .npc-action{display:flex;flex:0 0 76px;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-height:82px;padding:10px 5px;border:1px solid transparent;border-radius:13px;background:transparent;color:#fffdf5;scroll-snap-align:start}
.room-stage-section .npc-action>svg{width:28px;height:28px;flex-shrink:0}.room-stage-section .npc-action>span{font-size:11px;line-height:1.4;text-align:center;max-width:100%;overflow-wrap:anywhere}
.room-stage-section .npc-conversation .npc-action:hover,.room-stage-section .npc-conversation .npc-action:focus-visible{background:#ffffff10}.room-stage-section .npc-conversation .npc-action[aria-pressed=true]{background:#d5ef6214;border-color:#d5ef6240;color:#e0f391}.room-stage-section .npc-conversation .npc-action:disabled{opacity:.45;cursor:wait}
.room-stage-section .npc-action-status{grid-column:1/-1;min-height:0;font-size:12px;color:#f2c6ad;pointer-events:none}.room-stage-section .npc-action-status:empty{display:none}
@media(orientation:portrait){.room-stage-section .npc-conversation{inset-inline:22px;width:calc(100% - 44px);bottom:max(30px,env(safe-area-inset-bottom));gap:18px 14px}.room-stage-section .npc-conversation-copy{grid-column:1/-1}.room-stage-section .npc-conversation-line{white-space:pre-line;font-size:17px;line-height:1.85;max-width:24em}.room-stage-section .npc-conversation .npc-interact{grid-column:2;min-width:105px}.room-stage-section .npc-action-drawer{padding-top:12px}.room-stage-section .npc-action-row{gap:2px}.room-stage-section .npc-conversation .npc-action{flex-basis:70px}.room-stage-section .npc-conversation-identity{margin-bottom:9px}}
@media(orientation:landscape) and (max-height:520px){.room-stage-section .npc-conversation{inset-inline:28px;width:min(760px,calc(100% - 56px));bottom:max(20px,env(safe-area-inset-bottom));gap:12px 20px}.room-stage-section .npc-conversation-line{white-space:pre-line;font-size:15px;line-height:1.65}.room-stage-section .npc-conversation-identity{margin-bottom:4px}.room-stage-section .npc-conversation-identity strong{font-size:15px}.room-stage-section .npc-action-drawer{padding-top:6px}.room-stage-section .npc-conversation .npc-action{min-height:62px;gap:4px;padding-block:6px}.room-stage-section .npc-action>svg{width:23px;height:23px}.room-stage-section .npc-action-tabs{margin-bottom:4px;padding-bottom:3px}}
@media(prefers-reduced-motion:no-preference){.room-stage-section .npc-conversation-copy{animation:npc-dialogue-arrive .7s ease both}.room-stage-section .npc-action-drawer:not([hidden]){animation:npc-dialogue-arrive .2s ease both}@keyframes npc-dialogue-arrive{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}}

/* The flat NPC portrait is a centred cutout, with dialogue laid over its hem. */
.room-stage-section.npc-dialogue-active :is(.bottom-nav,#timePanel,#roomNavigation,.presence-cue){visibility:hidden;pointer-events:none}
.room-stage-section .presence-actions.presence-actions.is-npc.is-npc:not([hidden]){position:absolute!important;inset:auto 16px max(18px,env(safe-area-inset-bottom))!important;width:min(720px,calc(100% - 32px))!important;max-width:none!important;max-height:calc(100% - 120px)!important;margin-inline:auto!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;color:var(--sen-ui-ink,#343a35)!important;overflow:visible!important;z-index:22!important;display:block!important;pointer-events:none}
.room-stage-section .npc-conversation-controls{display:flex;align-self:end;align-items:center;justify-content:flex-end;gap:8px;pointer-events:auto}
.room-stage-section .npc-conversation.npc-overview{--npc-ink:var(--sen-ui-ink,#343a35);--npc-muted:var(--sen-ui-muted,#737b73);--npc-surface:var(--sen-material-panel,var(--sen-ui-glass,rgba(250,249,245,.95)));--npc-floor:0,0,0;position:relative;inset:auto;width:auto;margin:0;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:'portrait portrait' 'copy copy' '. controls';gap:14px 16px;padding:0 6px 4px;border:0;border-radius:0;background:transparent;color:var(--npc-ink);text-shadow:none;box-shadow:none;backdrop-filter:none;pointer-events:none;isolation:isolate}
.room-stage-section[data-theme=night] .npc-conversation.npc-overview{--npc-floor:0,0,0}
.room-stage-section .npc-overview::before{content:'';position:absolute;z-index:1;pointer-events:none;inset:auto -16px -24px;height:280px;background:linear-gradient(0deg,#000 0%,#000e 32%,#0008 65%,transparent)}
.room-stage-section .npc-overview .npc-conversation-copy{position:relative;z-index:2;grid-area:copy;padding:0;align-self:end;min-width:0;color:#fffdf5;text-shadow:0 1px 8px #0008}
.room-stage-section .npc-overview .npc-conversation-identity{display:flex;gap:9px;margin:0 0 6px}
.room-stage-section .npc-overview .npc-conversation-identity::before{width:16px;background:#afc53c}
.room-stage-section .npc-overview .npc-conversation-identity strong{font-size:16px;line-height:24px;letter-spacing:.08em}
.room-stage-section .npc-overview .npc-change{width:28px;height:28px;min-height:28px;padding:5px;color:#ffffffa6}
.room-stage-section .npc-overview .npc-conversation-line{text-wrap:pretty;font-size:17px;line-height:1.7;letter-spacing:.025em;margin:0;color:inherit}
.room-stage-section .npc-overview .npc-conversation-controls{position:relative;z-index:2;grid-area:controls;gap:8px}
.room-stage-section .npc-overview .npc-action-drawer{z-index:4;position:absolute;inset:auto 0 122px;border-color:var(--sen-ui-line,#a4aea22e);background:var(--npc-surface);box-shadow:0 8px 32px #101b1b16;backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);border-radius:18px;padding-top:10px}
.room-stage-section .npc-overview .npc-action-row{max-height:min(155px,24dvh)}
.room-stage-section .npc-overview .npc-action-status{position:relative;z-index:2;grid-column:1/-1;color:var(--npc-muted);margin:0;font-size:12px}
.room-stage-section .npc-overview .npc-action-tabs{border-color:var(--sen-ui-line,#a4aea22e)}
.room-stage-section .npc-overview .npc-action-tabs button{color:var(--npc-muted)}
.room-stage-section .npc-overview .npc-action-tabs button[aria-selected=true]{color:var(--npc-ink);border-color:#bdd746}
.room-stage-section .npc-overview .npc-action{color:var(--npc-ink);min-height:72px}
.room-stage-section .npc-overview .npc-action:hover,.room-stage-section .npc-overview .npc-action:focus-visible{background:var(--sen-ui-secondary,#65725c12)}
.room-stage-section .npc-overview .npc-action[aria-pressed=true]{background:#bfd74920;border-color:#aabd4b70;color:var(--npc-ink)}
.room-stage-section .npc-overview .npc-dialogue-portrait{grid-area:portrait;justify-self:center;align-self:end;display:block;width:min(100%,380px);height:clamp(230px,42dvh,380px);min-width:0;min-height:0;margin:0 0 clamp(-104px,-10dvh,-72px);padding:0;border:0;border-radius:0;background:transparent;color:inherit;pointer-events:none}
.room-stage-section .npc-overview.is-expanded .npc-dialogue-portrait{margin-bottom:-12px}
.room-stage-section .npc-overview .npc-dialogue-art{position:relative;display:grid;place-items:center;width:100%;height:100%;border-radius:0;overflow:visible;background:transparent;border:0;pointer-events:auto}
.room-stage-section .npc-dialogue-art>svg{position:absolute;inset:0;margin:auto;width:96px;height:96px;opacity:.35}
.room-stage-section .npc-dialogue-art:has(>img)>svg{display:none}
.room-stage-section .npc-dialogue-art>img{position:relative;display:block;width:100%;height:100%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 8px 16px #0000001a);-webkit-mask-image:none;mask-image:none}
.room-stage-section .npc-overview .npc-interact,.room-stage-section .npc-overview .npc-focus{display:flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:8px 14px;border-radius:999px;font-size:12px;letter-spacing:.03em;white-space:nowrap;box-shadow:none;backdrop-filter:none}
.room-stage-section .npc-overview .npc-interact{border:1px solid #b9d449;color:#34421f;background:#d5ef62}
.room-stage-section .npc-overview .npc-focus{border:1px solid var(--sen-ui-line,#a4aea250);color:var(--npc-ink);background:var(--sen-ui-secondary,#ffffff40)}
.room-stage-section .npc-focus>svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}.room-stage-section .npc-overview .npc-interact>svg{width:19px;height:19px}.room-stage-section .npc-overview .npc-interact>svg.npc-expand{width:12px;height:12px}
.room-stage-section .npc-overview .npc-dialogue-dismiss{z-index:5;position:absolute;right:0;top:8px;display:grid;place-items:center;min-width:40px;min-height:40px;width:40px;height:40px;padding:11px;border:1px solid var(--sen-ui-line,#a4aea250);border-radius:50%;background:var(--sen-material-control,var(--sen-ui-secondary,#ffffff60));color:var(--npc-ink)}
.room-stage-section .npc-dialogue-dismiss>svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round}
.room-stage-section .npc-overview button:focus-visible{outline:2px solid #a7c238;outline-offset:3px}.room-stage-section .npc-overview .npc-focus:disabled{opacity:.5;cursor:wait}
@media(orientation:portrait){.room-stage-section .npc-conversation-controls{grid-column:2}.room-stage-section .npc-overview .npc-conversation-line{font-size:16px;line-height:1.75}.room-stage-section .npc-overview .npc-interact,.room-stage-section .npc-overview .npc-focus{min-width:0;padding:8px 13px}}
@media(orientation:landscape) and (max-height:520px){
 .room-stage-section .presence-actions.presence-actions.is-npc.is-npc:not([hidden]){inset:auto 22px max(12px,env(safe-area-inset-bottom))!important;width:min(680px,calc(100% - 44px))!important;max-height:calc(100% - 32px)!important}
 .room-stage-section .npc-conversation.npc-overview{grid-template-areas:'portrait portrait' 'copy controls';gap:10px 20px;padding-inline:4px}
 .room-stage-section .npc-overview .npc-dialogue-portrait{width:min(48%,280px);height:clamp(150px,59dvh,270px);margin-bottom:-42px}
 .room-stage-section .npc-overview::before{height:170px}
 .room-stage-section .npc-overview .npc-conversation-line{font-size:15px;line-height:1.6}
 .room-stage-section .npc-overview .npc-conversation-identity{margin-bottom:3px}
 .room-stage-section .npc-overview .npc-dialogue-dismiss{right:0;top:4px}
 .room-stage-section .npc-overview .npc-action-drawer{bottom:68px;padding:4px 6px 6px}
 .room-stage-section .npc-overview .npc-action-tabs{margin:0 10px 4px;padding-bottom:2px}
 .room-stage-section .npc-overview .npc-action-tabs button{min-height:20px;font-size:11px}
 .room-stage-section .npc-overview .npc-action-row{max-height:64px;padding-bottom:0}
 .room-stage-section .npc-overview .npc-action{min-height:44px;padding-block:2px;gap:2px}
 .room-stage-section .npc-overview .npc-action>svg{width:20px;height:20px}
 .room-stage-section .npc-overview .npc-action>span{font-size:10px}
}
@media(prefers-reduced-transparency:reduce){.room-stage-section .npc-overview::before{background:linear-gradient(0deg,rgb(var(--npc-floor)) 70%,rgba(var(--npc-floor),0))}.room-stage-section .npc-overview .npc-action-drawer{background:var(--sen-material-flat,var(--npc-surface));backdrop-filter:none;-webkit-backdrop-filter:none}}

/* Original full-body artwork is framed at the head/torso, without upscaling the tiny list avatar. */
.room-stage-section .npc-dialogue-art:has(>img.is-fullbody){overflow:hidden}
.room-stage-section .npc-dialogue-art>img.is-fullbody{object-fit:cover;object-position:center top;transform:scale(1.5);transform-origin:center top}

/* Tap feedback should be visible on the first paint, not fade in from invisible. */
.room-stage-section .npc-overview .npc-conversation-copy{animation:none}

/* Interaction entry transforms into a single dark action dock. No stacked popover. */
.room-stage-section .npc-conversation .npc-action-drawer{
 position:absolute;inset:auto 0 0;z-index:6;box-sizing:border-box;
 min-height:164px;padding:12px 12px 16px;border:0;border-radius:28px;
 background:transparent;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;
 color:#f5f7f4;text-shadow:none;isolation:isolate;animation:none;
}
.room-stage-section .npc-conversation .npc-action-drawer[hidden]{display:none}
.room-stage-section .npc-dock-surface{position:absolute;inset:0;z-index:-1;border-radius:28px;background:#101312;pointer-events:none;overflow:hidden;clip-path:inset(0px 0px 0px 0px round 28px);box-shadow:inset 0 1px 0 #ffffff0b}
.room-stage-section .npc-dock-tint{position:absolute;inset:0;background:#d5ef62;opacity:0;pointer-events:none}
.room-stage-section .npc-dock-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:32px;margin:0 6px 10px}
.room-stage-section .npc-dock-title{font-size:12px;color:#c6ccc5;letter-spacing:.12em;padding-left:8px}
.room-stage-section .npc-conversation .npc-dock-back{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;min-height:32px;margin-left:auto;padding:6px;border:0;border-radius:50%;background:#ffffff0c;color:#dce1da;transition:background .18s ease,transform .18s ease}
.room-stage-section .npc-dock-back svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.room-stage-section .npc-conversation .npc-dock-back:hover{background:#ffffff18}.room-stage-section .npc-conversation .npc-dock-back:active{transform:scale(.9)}
.room-stage-section .npc-conversation .npc-action-tabs{display:flex;align-items:center;gap:4px;margin:0;padding:0;border:0}
.room-stage-section .npc-conversation .npc-action-tabs button{font-size:12px;letter-spacing:.04em;min-height:32px;padding:5px 12px;border:0;border-radius:99px;background:transparent;color:#899189;transition:background .2s ease,color .2s ease}
.room-stage-section .npc-conversation .npc-action-tabs button[aria-selected=true]{background:#ffffff12;color:#f5f7f4;border:0}
.room-stage-section .npc-conversation .npc-action-row{display:flex;align-items:stretch;gap:4px;overflow-x:auto;overflow-y:hidden;max-height:124px;margin:0;padding:2px 0 0;scrollbar-width:none;scroll-snap-type:x proximity;overscroll-behavior-x:contain;mask-image:linear-gradient(90deg,transparent,#000 8px,#000 calc(100% - 8px),transparent)}
.room-stage-section .npc-action-row::-webkit-scrollbar{display:none}
.room-stage-section .npc-conversation .npc-action{flex:0 0 calc((100% - 12px)/4);min-width:64px;min-height:84px;gap:10px;margin:0;padding:8px 4px 10px;border:0;border-radius:18px;background:transparent;color:#f5f7f4;transition:background .18s ease,transform .18s ease;color-scheme:dark}
.room-stage-section .npc-conversation .npc-action>svg{width:28px;height:28px;flex-shrink:0;color:inherit;filter:none}
.room-stage-section .npc-conversation .npc-action>span{font-size:11px;line-height:16px;letter-spacing:.015em;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.room-stage-section .npc-conversation .npc-action:hover,.room-stage-section .npc-conversation .npc-action:focus-visible{background:#ffffff0c;color:#fff}
.room-stage-section .npc-conversation .npc-action:active{transform:scale(.91);background:#ffffff16}
.room-stage-section .npc-conversation .npc-action[aria-pressed=true]{background:#ffffff12;color:#fff;border:0;box-shadow:inset 0 0 0 1px #ffffff12}
.room-stage-section .npc-conversation-copy,.room-stage-section .npc-conversation-controls{opacity:1;filter:blur(0)}
.room-stage-section .npc-conversation-copy{transition:opacity .18s ease .12s,filter .18s ease .12s}
.room-stage-section .npc-conversation-controls{transition:opacity .14s ease .22s,filter .14s ease .22s}
.room-stage-section .npc-conversation.is-expanded>.npc-conversation-copy,.room-stage-section .npc-conversation.is-expanded>.npc-conversation-controls{opacity:0;transform:none;filter:blur(2px);pointer-events:none;visibility:hidden;transition:opacity .17s ease,transform .32s cubic-bezier(.22,1,.36,1),filter .17s ease,visibility 0s linear .17s}
.room-stage-section .npc-conversation.is-expanded>.npc-conversation-copy button,.room-stage-section .npc-conversation.is-expanded>.npc-conversation-controls button{pointer-events:none}
.room-stage-section .npc-overview.is-expanded .npc-dialogue-portrait{margin-bottom:clamp(-104px,-10dvh,-72px)}
.room-stage-section .npc-conversation .npc-action-status{z-index:7;position:absolute;bottom:174px;left:12px;right:12px;text-align:center;color:#f0d3bd;line-height:18px;padding:6px 10px;background:#111713d9;border:1px solid #ffffff0b;border-radius:12px;backdrop-filter:blur(12px)}
.room-stage-section .npc-conversation .npc-action-status:empty{display:none}
@media(orientation:landscape) and (max-height:520px){
 .room-stage-section .npc-conversation .npc-action-drawer{min-height:130px;padding:8px 12px 10px}
 .room-stage-section .npc-dock-toolbar{min-height:28px;margin-bottom:4px}
 .room-stage-section .npc-conversation .npc-action{min-height:70px;gap:6px;padding-block:7px;flex-basis:calc((100% - 20px)/6)}
 .room-stage-section .npc-conversation .npc-action>svg{width:26px;height:26px}
 .room-stage-section .npc-conversation .npc-action>span{font-size:10px}
 .room-stage-section .npc-overview.is-expanded .npc-dialogue-portrait{margin-bottom:-42px}
 .room-stage-section .npc-conversation .npc-action-status{bottom:140px}
}
@media(prefers-reduced-motion:reduce){.room-stage-section .npc-conversation-copy,.room-stage-section .npc-conversation-controls,.room-stage-section .npc-conversation .npc-action,.room-stage-section .npc-conversation .npc-action-tabs button,.room-stage-section .npc-conversation .npc-dock-back{transition:none!important;filter:none!important}}

/* Dialogue and actions are persistent states of one surface; cutouts stay subordinate. */
.room-stage-section .npc-overview .npc-dialogue-portrait,.room-stage-section .npc-overview.is-expanded .npc-dialogue-portrait{width:min(100%,330px);height:clamp(220px,38dvh,340px);margin-bottom:clamp(-76px,-8dvh,-48px)}
.room-stage-section .npc-overview.npc-pet .npc-dialogue-portrait{width:min(65%,180px);height:clamp(100px,20dvh,170px);margin-bottom:-32px}
@media(orientation:landscape) and (max-height:520px){
 .room-stage-section .npc-overview .npc-dialogue-portrait,.room-stage-section .npc-overview.is-expanded .npc-dialogue-portrait{width:min(48%,250px);height:clamp(140px,52dvh,240px);margin-bottom:-28px}
 .room-stage-section .npc-overview.npc-pet .npc-dialogue-portrait{width:min(28%,140px);height:clamp(76px,28dvh,130px);margin-bottom:-16px}
}

/* Action icons live on the dialogue's existing bottom gradient, without a card. */
.room-stage-section .npc-conversation .npc-action-drawer{border:0;border-radius:0;background:transparent;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
.room-stage-section .npc-conversation .npc-dock-back,.room-stage-section .npc-conversation .npc-action-tabs button[aria-selected=true],.room-stage-section .npc-conversation .npc-action[aria-pressed=true]{background:transparent;box-shadow:none;border:0}
.room-stage-section .npc-conversation .npc-action-tabs button[aria-selected=true],.room-stage-section .npc-conversation .npc-action[aria-pressed=true]{color:#d5ef62}
.room-stage-section .npc-conversation .npc-action-status{background:transparent;border:0;backdrop-filter:none;-webkit-backdrop-filter:none}

/* Match roaming glyph dimensions and tint, while labels remain independent. */
.room-stage-section .npc-conversation .npc-action>.npc-action-glyph{display:block;width:30px;height:30px;flex-shrink:0;background:currentColor;mask:var(--npc-action-mask) center/contain no-repeat;-webkit-mask:var(--npc-action-mask) center/contain no-repeat}
@media(orientation:landscape) and (max-height:520px){.room-stage-section .npc-conversation .npc-action>.npc-action-glyph{width:26px;height:26px}}

/* Fade the portrait container after upper-body cropping, so its lower edge cannot form a seam. */
.room-stage-section .npc-overview:not(.npc-pet) .npc-dialogue-art:has(>img){-webkit-mask-image:linear-gradient(to bottom,#000 62%,transparent 100%);mask-image:linear-gradient(to bottom,#000 62%,transparent 100%)}

/* Move the whole expanded composition into the dock's existing bottom breathing space. */
.room-stage-section .npc-overview.is-expanded{transform:translateY(24px)}
.room-stage-section .npc-overview.is-expanded::before{bottom:0;height:256px}
@media(orientation:landscape) and (max-height:520px){.room-stage-section .npc-overview.is-expanded{transform:translateY(12px)}.room-stage-section .npc-overview.is-expanded::before{height:158px}}

/* A quiet progress track follows the actual shared action/dance row overflow. */
.room-stage-section .npc-action-scroll-hint{height:2px;width:56px;justify-self:center;max-width:28%;margin:2px auto 0;border-radius:2px;background:#ffffff12;overflow:hidden;pointer-events:none}
.room-stage-section .npc-action-scroll-hint[hidden]{display:none}
.room-stage-section .npc-action-scroll-hint>span{display:block;height:100%;min-width:0;border-radius:inherit;background:#ffffff42}

/* Separate the immutable room cast from the visitor’s owned companions. */
.room-stage-section .companion-sources{display:flex;gap:6px;margin:12px 0 4px}.room-stage-section .companion-sheet .companion-sources button{min-height:36px;padding:6px 14px;border-radius:999px;background:transparent;color:var(--companion-muted)}.room-stage-section .companion-sheet .companion-sources button[aria-pressed=true]{background:var(--companion-selected);color:var(--companion-ink);border-color:var(--companion-accent)}

.room-stage-section .companion-active-actors{display:flex;gap:8px;margin:10px 0}.room-stage-section .companion-sheet .companion-actor{display:flex;align-items:center;gap:8px;padding:5px 10px 5px 5px;min-width:0;border-radius:999px;background:var(--companion-card);color:var(--companion-ink)}.room-stage-section .companion-actor img{width:38px;height:38px;border-radius:50%;object-fit:cover}.room-stage-section .companion-actor span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.room-stage-section .companion-sheet .companion-actor[aria-pressed=true]{border-color:var(--companion-accent);background:var(--companion-selected)}

.room-stage-section .companion-purchase-link{display:block;margin:0 auto 8px;padding:8px 20px;min-height:44px;border:0;border-radius:24px;background:var(--sen-ui-action,#dceda2);color:var(--sen-ui-on-action,#253d30);font:inherit;cursor:pointer}

.room-stage-section .presence-action-buttons .dance-music-label,.room-stage-section .npc-action .dance-music-label{display:block;margin:3px 0 0;font-size:10px;line-height:1.25;color:inherit;opacity:.65}

/* Secondary opening surfaces only. Plaza chrome, camera and gesture rails
   stay in plaza-refinement.css; no scene or auth selectors belong here. */
.room-stage-section dialog#dialog {
  padding: 16px 16px max(16px, env(safe-area-inset-bottom));
  border-radius: 20px 20px 0 0;
}
.room-stage-section dialog#dialog #dialogContent > h2 { margin: 8px 44px 12px 0; font-size: var(--sen-compact-title, 17px); line-height: 24px; font-weight: 550; }
.room-stage-section dialog#dialog #dialogContent > p { font-size: var(--sen-compact-body, 13px); line-height: 20px; }
.room-stage-section dialog#dialog .share-text { padding: 10px 12px; border-radius: 12px; font-size: 16px; line-height: 22px; }
.room-stage-section dialog#dialog :is(.sheet-primary, .sheet-action) { box-sizing: border-box; min-height: 44px; padding: 10px 14px; border-radius: var(--sen-compact-control-radius, 14px); font-size: var(--sen-compact-body, 13px); line-height: 20px; }
.room-stage-section dialog#dialog .sheet-primary { background: var(--sen-ui-action-surface, var(--sen-ui-action)); color: var(--sen-compact-on-action, var(--sen-ui-on-action)); }
.room-stage-section dialog#dialog .sheet-action small { font-size: var(--sen-compact-caption, 11px); }
.room-stage-section dialog#dialog #closeDialog { position: absolute; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; box-shadow: none; font-size: 24px; isolation: isolate; }
.room-stage-section dialog#dialog #closeDialog::before { content: ''; position: absolute; inset: 4px; border-radius: 50%; border: 1px solid var(--sen-material-edge, var(--sen-compact-line, var(--sen-ui-line))); background: var(--sen-material-control, var(--sen-compact-secondary, var(--sen-ui-secondary))); z-index: -1; pointer-events: none; }

.room-stage-section dialog.community-dialog { border-radius: 20px 20px 0 0; }
.room-stage-section dialog.community-dialog > header { padding-inline: 16px; }
.room-stage-section dialog.community-dialog #commentsHeading { font-size: var(--sen-compact-title, 17px); line-height: 24px; font-weight: 550; }
.room-stage-section dialog.community-dialog :is(.comment-message, .owner-story > p) { font-size: var(--sen-compact-body, 13px); line-height: 21px; }
.room-stage-section dialog.community-dialog :is(.comment-time, .comments-section-title, .comment-compose-meta) { font-size: var(--sen-compact-caption, 11px); line-height: 16px; }
.room-stage-section dialog.community-dialog :is(#closeComments, #sendComment) { position: relative; box-sizing: border-box; width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; background: transparent; box-shadow: none; isolation: isolate; }
.room-stage-section dialog.community-dialog :is(#closeComments, #sendComment)::before { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--sen-material-control, var(--sen-compact-secondary, var(--sen-ui-secondary))); border: 1px solid var(--sen-material-edge, var(--sen-compact-line, var(--sen-ui-line))); z-index: -1; pointer-events: none; }
.room-stage-section dialog.community-dialog #sendComment { color: var(--sen-compact-on-action, var(--sen-ui-on-action)); }
.room-stage-section dialog.community-dialog #sendComment::before { background: var(--sen-ui-action-surface, var(--sen-ui-action)); }
.room-stage-section dialog.community-dialog #commentText { font-size: 16px; }

.room-stage-section dialog.author-page > header { gap: 8px; padding: calc(8px + env(safe-area-inset-top)) 16px 8px; }
.room-stage-section dialog.author-page > header h2 { font-size: var(--sen-compact-title, 17px); line-height: 24px; }
.room-stage-section dialog.author-page .author-page-content { padding: 20px 16px; }
.room-stage-section dialog.author-page .author-page-identity { gap: 12px; margin-bottom: 24px; }
.room-stage-section dialog.author-page .author-page-identity h1 { font-size: var(--sen-compact-title, 17px); line-height: 24px; margin-bottom: 5px; }
.room-stage-section dialog.author-page .author-page-avatar { width: 56px; height: 56px; }
.room-stage-section dialog.author-page .author-page-grid { gap: 12px 10px; }
.room-stage-section dialog.author-page .author-page-work { border-radius: 14px; }
.room-stage-section dialog.author-page .author-page-work strong { margin: 8px 10px 6px; font-size: var(--sen-compact-body, 13px); line-height: 20px; }
.room-stage-section dialog.author-page .author-page-work small { margin: 0 10px 10px; font-size: var(--sen-compact-caption, 11px); line-height: 16px; }
.room-stage-section dialog.author-page :is(.author-page-retry, .author-page-mine) { min-height: 44px; padding: 10px 14px; border-radius: var(--sen-compact-control-radius, 14px); font-size: var(--sen-compact-body, 13px); line-height: 20px; }

.room-stage-section dialog.companion-sheet { padding: 12px 16px max(16px, env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; }
.room-stage-section dialog.companion-sheet h2 { font-size: var(--sen-compact-title, 17px); line-height: 24px; font-weight: 550; }
.room-stage-section dialog.companion-sheet .companion-tabs button { min-height: 44px; padding: 8px 10px; font-size: var(--sen-compact-body, 13px); border-radius: 14px; }
.room-stage-section dialog.companion-sheet .companion-card { border-radius: 14px; }
.room-stage-section dialog.companion-sheet .companion-card-label { font-size: var(--sen-compact-caption, 11px); line-height: 16px; }
.room-stage-section dialog.companion-sheet :is(.companion-close, .companion-none) { position: relative; min-height: 44px; width: 44px; padding: 0; border: 0; background: transparent; box-shadow: none; isolation: isolate; }
.room-stage-section dialog.companion-sheet :is(.companion-close, .companion-none)::before { content: ''; position: absolute; inset: 4px; border-radius: 50%; border: 1px solid var(--companion-line); background: var(--sen-material-control, var(--companion-card)); z-index: -1; pointer-events: none; }
.room-stage-section dialog.companion-sheet .companion-none[aria-pressed=true]::before { background: var(--companion-selected); border-color: var(--companion-accent); }
.room-stage-section dialog.companion-sheet :is(.companion-close, .companion-none) svg { width: 18px; height: 18px; }

.room-stage-section dialog.music-sheet .music-sheet-panel { padding-inline: 16px; border-radius: var(--sen-compact-panel-radius, 20px); }
.room-stage-section dialog.music-sheet .music-sheet-track strong { font-size: var(--sen-compact-title, 17px); line-height: 24px; }
.room-stage-section dialog.music-sheet .music-sheet-current { min-height: 44px; gap: 10px; }
.room-stage-section dialog.music-sheet .music-sheet-controls { gap: 20px; }
.room-stage-section dialog.music-sheet .music-sheet-toggle { position: relative; width: 44px; height: 44px; background: transparent; border: 0; box-shadow: none; isolation: isolate; }
.room-stage-section dialog.music-sheet .music-sheet-toggle::before { content: ''; position: absolute; inset: 4px; border-radius: 50%; border: 1px solid var(--music-edge); background: var(--music-soft); box-shadow: inset 0 1px 0 #ffffff18; z-index: -1; pointer-events: none; }
.room-stage-section dialog.music-sheet[data-playing=true] .music-sheet-toggle::before { background: var(--music-selection); border-color: var(--music-selection-edge); }
.room-stage-section dialog.music-sheet .music-sheet-song { min-height: 44px; padding-inline: 8px; gap: 10px; }

.room-stage-section dialog.ambient-weather-sheet { padding: 10px 16px 16px; border-radius: var(--sen-compact-panel-radius, 20px); }
.room-stage-section dialog.ambient-weather-sheet .weather-sheet-close { position: relative; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; box-shadow: none; isolation: isolate; }
.room-stage-section dialog.ambient-weather-sheet .weather-sheet-close::before { content: ''; position: absolute; inset: 4px; border-radius: 50%; border: 1px solid var(--ambient-edge, #ffffff29); background: var(--sen-material-control, #ffffff0c); z-index: -1; pointer-events: none; }
.room-stage-section dialog.ambient-weather-sheet .weather-live { min-height: 52px; padding: 8px 12px; border-radius: 14px; }
.room-stage-section dialog.ambient-weather-sheet .weather-live strong { font-size: var(--sen-compact-body, 13px); }
.room-stage-section dialog.ambient-weather-sheet .weather-live small { font-size: var(--sen-compact-caption, 11px); }
.room-stage-section dialog.ambient-weather-sheet .weather-choice-grid { gap: 8px; margin-bottom: 12px; }
.room-stage-section dialog.ambient-weather-sheet .weather-choice-grid [data-weather-choice] { height: 68px; gap: 7px; border-radius: 14px; font-size: var(--sen-compact-caption, 11px); }
.room-stage-section dialog.ambient-weather-sheet footer { font-size: var(--sen-compact-caption, 11px); line-height: 16px; }

.room-stage-section .presence-actions.presence-actions { padding: 8px 10px; border-radius: 14px; color: var(--sen-compact-ink, var(--sen-ui-ink)); background: var(--sen-material-panel, var(--sen-compact-card, var(--sen-ui-sheet))); border-color: var(--sen-material-edge, var(--sen-compact-line, var(--sen-ui-line))); }
.room-stage-section .presence-actions .presence-action-buttons > button { min-height: 44px; padding: 8px; border-radius: 12px; font-size: var(--sen-compact-body, 13px); line-height: 18px; color: var(--sen-compact-ink, var(--sen-ui-ink)); background: var(--sen-compact-secondary, var(--sen-ui-secondary)); border-color: var(--sen-compact-line, var(--sen-ui-line)); }
.room-stage-section .presence-actions > header > button { min-width: 44px; min-height: 44px; }
.room-stage-section .presence-actions > small { color: var(--sen-compact-muted, var(--sen-ui-muted)); }
.room-stage-section .memory-panel.memory-panel { color: var(--sen-compact-ink, var(--sen-ui-ink)); background: var(--sen-material-panel, var(--sen-compact-card, var(--sen-ui-sheet))); border-color: var(--sen-material-edge, var(--sen-compact-line, var(--sen-ui-line))); }
.room-stage-section .memory-panel .memory-panel__title { font-size: var(--sen-compact-title, 17px); line-height: 24px; }
.room-stage-section .memory-panel :is(.memory-panel__caption, .memory-panel__hint, .memory-panel__scope, .memory-panel__length, .memory-panel__status) { color: var(--sen-compact-muted, var(--sen-ui-muted)); font-size: var(--sen-compact-caption, 11px); line-height: 16px; }
.room-stage-section .memory-panel .memory-panel__input { background: var(--sen-ui-input, var(--sen-compact-card, var(--sen-ui-card))); color: var(--sen-compact-ink, var(--sen-ui-ink)); border-color: var(--sen-compact-line, var(--sen-ui-line)); font-size: 16px; }
.room-stage-section .memory-panel .memory-panel__save { background: var(--sen-ui-action-surface, var(--sen-ui-action)); color: var(--sen-compact-on-action, var(--sen-ui-on-action)); font-size: var(--sen-compact-body, 13px); }
.room-stage-section .memory-panel .memory-panel__save:not(:disabled):active { background: var(--sen-ui-action-pressed); }

@media (prefers-reduced-transparency: reduce) {
  .room-stage-section .presence-actions.presence-actions, .room-stage-section .memory-panel.memory-panel { background: var(--sen-compact-card, var(--sen-ui-sheet)); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* Dialog roots are portalled to body; take the shared compact palette here. */
.room-stage-section dialog.author-page { --author-bg:var(--sen-compact-page,var(--sen-ui-page)); --author-card:var(--sen-compact-card,var(--sen-ui-card)); --author-text:var(--sen-compact-ink,var(--sen-ui-ink)); --author-muted:var(--sen-compact-muted,var(--sen-ui-muted)); --author-line:var(--sen-compact-line,var(--sen-ui-line)); }
.room-stage-section dialog.companion-sheet { --companion-ink:var(--sen-compact-ink,var(--sen-ui-ink)); --companion-muted:var(--sen-compact-muted,var(--sen-ui-muted)); --companion-line:var(--sen-compact-line,var(--sen-ui-line)); --companion-card:var(--sen-compact-secondary,var(--sen-ui-secondary)); --companion-selected:var(--sen-compact-selected,var(--sen-ui-selected)); }
/* Modal typography/materials do not rely on the homepage caption defaults. */
.room-stage-section dialog:is(#dialog,.community-dialog,.author-page,.companion-sheet,.ambient-weather-sheet){font-family:var(--scene-ui-font,system-ui,sans-serif);font-size:13px;line-height:20px;color:var(--sen-compact-ink)}
.room-stage-section dialog.companion-sheet{--companion-accent:var(--sen-compact-action-surface);--companion-on-selected:var(--sen-compact-on-action)}
.room-stage-section dialog.author-page .author-page-mine{background:var(--sen-compact-action-surface);color:var(--sen-compact-on-action)}
.room-stage-section dialog.music-sheet:not([data-period=night]){--music-ink:var(--sen-compact-ink);--music-muted:var(--sen-compact-muted);--music-edge:var(--sen-compact-line);--music-glass:var(--sen-material-panel,var(--sen-compact-card));--music-soft:var(--sen-compact-secondary)}

/* These native dialogs must also be styled when the product bundle fails to
   load. The shop fallback has inline legacy paint; override only its material
   and type, leaving showModal/close, focus and recovery handlers native. */
.room-stage-section dialog:is(#opening-module-recovery,.companion-shop-recovery) {
  box-sizing: border-box;
  width: min(360px, calc(100vw - 32px));
  max-width: calc(100vw - 32px) !important;
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 20px !important;
  border: 1px solid var(--sen-compact-line) !important;
  border-radius: var(--sen-compact-panel-radius) !important;
  background: var(--sen-material-panel, var(--sen-compact-card)) !important;
  color: var(--sen-compact-ink) !important;
  font: 400 var(--sen-compact-body)/20px var(--scene-ui-font, system-ui, sans-serif);
}
.room-stage-section dialog:is(#opening-module-recovery,.companion-shop-recovery)::backdrop { background: #17171766; }
.room-stage-section dialog#opening-module-recovery > h2 { margin: 0 0 8px; font-size: var(--sen-compact-title); line-height: 24px; font-weight: 550; }
.room-stage-section dialog:is(#opening-module-recovery,.companion-shop-recovery) > p { margin: 0 0 12px; font-size: var(--sen-compact-body); line-height: 20px; color: var(--sen-compact-muted); }
.room-stage-section dialog:is(#opening-module-recovery,.companion-shop-recovery) > button {
  box-sizing: border-box;
  min-height: var(--sen-compact-action-height);
  margin: 4px 8px 0 0 !important;
  padding: 10px 14px !important;
  border: 1px solid var(--sen-compact-line) !important;
  border-radius: var(--sen-compact-control-radius) !important;
  font: inherit !important;
  background: var(--sen-compact-secondary) !important;
  color: var(--sen-compact-ink) !important;
}
.room-stage-section dialog#opening-module-recovery > .sheet-primary,
.room-stage-section dialog.companion-shop-recovery > button:first-of-type { background: var(--sen-compact-action-surface) !important; color: var(--sen-compact-on-action) !important; }

/* Match the personal-center material even in independent native dialogs. */
.room-stage-section dialog:is(#dialog,.community-dialog,.companion-sheet,.ambient-weather-sheet,
 #opening-module-recovery,.companion-shop-recovery),.room-stage-section dialog.music-sheet .music-sheet-panel,.room-stage-section .presence-actions.presence-actions,.room-stage-section .memory-panel.memory-panel,.room-stage-section .furniture-panel[data-variant=editor],.room-stage-section .hex-filter-bar[data-expanded=true] {
  --sen-material-control:var(--sen-compact-control-fill);
  --sen-material-edge:var(--sen-compact-edge);
  background:var(--sen-compact-panel-fill)!important;
  border-color:var(--sen-compact-edge)!important;
  box-shadow:var(--sen-compact-panel-shadow)!important;
  -webkit-backdrop-filter:var(--sen-glass-panel-filter,var(--sen-compact-panel-filter,blur(14px)));backdrop-filter:var(--sen-glass-panel-filter,var(--sen-compact-panel-filter,blur(14px)));
}
.room-stage-section dialog:is(#dialog,#opening-module-recovery,.companion-shop-recovery) > button,.room-stage-section dialog#dialog .sheet-action {
  box-shadow:var(--sen-compact-control-shadow);
}
.room-stage-section dialog#dialog .sheet-action{background:var(--sen-compact-control-fill);color:var(--sen-compact-ink)}
.room-stage-section dialog#dialog .sheet-primary,.room-stage-section .memory-panel .memory-panel__save,.room-stage-section dialog.author-page .author-page-mine{box-shadow:var(--sen-compact-action-shadow)}

/* Scene-local person actions use the same light material as floating controls. */
.room-stage-section .presence-actions.presence-actions.is-person {
 width:min(280px,calc(100% - 24px));max-height:calc(100% - 24px);
 padding:8px 10px;border-radius:18px;
 --sen-dismiss-fill:var(--scene-control-bg,var(--sen-material-control));
 background:var(--sen-compact-panel-fill)!important;
 border-color:var(--sen-compact-edge)!important;
 box-shadow:var(--sen-compact-panel-shadow)!important;
 backdrop-filter:var(--sen-glass-panel-filter,var(--sen-compact-panel-filter,blur(14px)));-webkit-backdrop-filter:var(--sen-glass-panel-filter,var(--sen-compact-panel-filter,blur(14px)));
}
.room-stage-section .presence-actions.presence-actions.is-person>header{font-size:13px;margin:0 0 2px;padding:0;gap:6px}
.room-stage-section .presence-actions.presence-actions.is-person .presence-action-kinds{gap:4px;margin-bottom:4px}
.room-stage-section .presence-actions.presence-actions.is-person .presence-action-kinds button{font-size:12px;border-radius:14px;background:transparent;box-shadow:none}
.room-stage-section .presence-actions.presence-actions.is-person .presence-action-kinds button[aria-selected=true]{background:var(--sen-compact-selected);color:inherit}
.room-stage-section .presence-actions.presence-actions.is-person .presence-action-buttons{gap:4px;margin-top:0}
.room-stage-section .presence-actions.presence-actions.is-person .presence-action-buttons>button{
 min-height:52px;padding:4px 2px;gap:3px;border:0;border-radius:12px;
 font-size:clamp(10px,3vw,11px);font-weight:500;line-height:14px;background:transparent;box-shadow:none;
}
.room-stage-section .presence-actions.presence-actions.is-person .presence-action-buttons>button svg{width:24px;height:24px}
.room-stage-section .presence-actions.presence-actions.is-person .presence-action-buttons>button span{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.room-stage-section .presence-actions.presence-actions.is-person .presence-action-buttons>button:hover,
.room-stage-section .presence-actions.presence-actions.is-person .presence-action-buttons>button:active{background:var(--sen-compact-selected)}
.room-stage-section .presence-actions.presence-actions.is-person .presence-action-pages{margin-top:2px;font-size:11px}
.room-stage-section .presence-actions.presence-actions.is-person .presence-person-modes{grid-template-columns:1fr;margin-top:2px;padding-top:4px}
.room-stage-section .presence-actions.presence-actions.is-person .presence-person-modes button{min-height:44px;font-size:12px;gap:5px;background:var(--sen-compact-secondary);border-radius:14px;box-shadow:none}
.room-stage-section .presence-actions.presence-actions.is-person .presence-person-modes svg{width:18px;height:18px}
.room-stage-section .presence-actions.presence-actions.is-person>small{font-size:11px;margin-top:4px}
@media(max-height:500px) and (min-width:400px){
 .room-stage-section .presence-actions.presence-actions.is-person:not([hidden]){width:min(360px,calc(100% - 24px));display:grid;grid-template-columns:minmax(0,1fr) auto 44px;column-gap:6px;row-gap:2px;padding:6px 10px}
 .room-stage-section .presence-actions.presence-actions.is-person>header{display:contents}
 .room-stage-section .presence-actions.presence-actions.is-person>header strong{grid-column:1;grid-row:1;align-self:center;position:sticky;top:6px;z-index:2}
 .room-stage-section .presence-actions.presence-actions.is-person>header button{grid-column:3;grid-row:1;position:sticky;top:0;z-index:2}
 .room-stage-section .presence-actions.presence-actions.is-person .presence-action-kinds{grid-column:2;grid-row:1;margin:0}
 .room-stage-section .presence-actions.presence-actions.is-person .presence-action-kinds button{min-width:54px;padding:6px}
 .room-stage-section .presence-actions.presence-actions.is-person .presence-action-buttons{grid-column:1/-1;grid-template-columns:repeat(6,minmax(0,1fr))}
 .room-stage-section .presence-actions.presence-actions.is-person .presence-action-pages,.room-stage-section .presence-actions.presence-actions.is-person>small,.room-stage-section .presence-actions.presence-actions.is-person .presence-person-modes{grid-column:1/-1;margin-top:0}
 .room-stage-section .presence-actions.presence-actions.is-person .presence-action-pages{grid-column:1;grid-row:3}
 .room-stage-section .presence-actions.presence-actions.is-person .presence-person-modes{grid-column:2/4;grid-row:3;padding:0;border-top:0;position:sticky;bottom:-6px;z-index:1}
 .room-stage-section .presence-actions.presence-actions.is-person .presence-action-buttons>button{min-height:44px;gap:2px}
 .room-stage-section .presence-actions.presence-actions.is-person .presence-action-buttons>button svg{width:20px;height:20px}
}
@media(max-height:500px) and (max-width:399px){
 .room-stage-section .presence-actions.presence-actions.is-person .presence-action-buttons{grid-template-columns:repeat(3,minmax(0,1fr))}
}
.room-stage-section[data-sen-glass="flat"] body .presence-actions.presence-actions.is-person{background:var(--sen-compact-card)!important;backdrop-filter:none;-webkit-backdrop-filter:none}
@media(prefers-reduced-transparency:reduce){.room-stage-section .presence-actions.presence-actions.is-person{background:var(--sen-compact-card)!important;backdrop-filter:none;-webkit-backdrop-filter:none}}

/* Pet taps use the same compact day/night material, with a six-icon menu. */
.room-stage-section .presence-actions.presence-actions.is-pet{width:min(264px,calc(100% - 16px));padding:8px 10px;border-radius:20px;box-shadow:var(--sen-material-shadow,0 6px 24px #14282120)}
.room-stage-section .presence-actions.is-pet .presence-action-buttons{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
.room-stage-section .presence-actions.presence-actions.is-pet .presence-action-buttons>button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:60px;padding:5px 2px;border:0;background:transparent;font-size:11px;line-height:15px}
.room-stage-section .presence-actions.is-pet .presence-action-buttons svg{width:27px;height:27px;flex-shrink:0}
.room-stage-section .presence-actions.is-pet .presence-action-buttons>button:hover{background:var(--sen-compact-selected,var(--sen-ui-selected))}

/* Person and pet share one shell, with static, unembossed inner actions. */
.room-stage-section .presence-actions.presence-actions{border-radius:var(--sen-compact-panel-radius);color:var(--sen-compact-ink)}
.room-stage-section .presence-actions .presence-action-buttons>button{box-shadow:none;background:var(--sen-compact-card-fill)}
.room-stage-section[data-sen-glass=flat] :is(.presence-actions,.memory-panel,.furniture-panel[data-variant=editor]){background:var(--sen-compact-card)!important}
@media(prefers-reduced-transparency:reduce){
 .room-stage-section :is(.presence-actions,.memory-panel,.furniture-panel[data-variant=editor]){background:var(--sen-compact-card)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
}

.room-stage-section .hex-filter-bar[data-expanded=true] .hex-filters button{background:var(--sen-compact-card-fill)!important;color:var(--sen-compact-muted)}
.room-stage-section .hex-filter-bar[data-expanded=true] .hex-filters button[aria-pressed=true]{background:var(--sen-compact-selected)!important;border-color:var(--sen-compact-accent);color:var(--sen-compact-ink)}

/* Nearby keeps the existing planet panel/rows and follows account surface roles. */
.room-stage-section .hex-nearby-panel{background:var(--sen-compact-page);color:var(--sen-compact-ink);font-family:var(--sen-ui-font,-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif);font-size:13px;line-height:20px}
.room-stage-section .hex-nearby-panel>header{gap:8px;padding-inline:16px}
.room-stage-section .hex-nearby-panel>header h3{font-weight:550;letter-spacing:normal}
.room-stage-section .hex-nearby-back{position:relative;isolation:isolate;flex:none;box-sizing:border-box;width:44px;height:44px;min-width:44px;min-height:44px;border:0;background:transparent;box-shadow:none;color:var(--sen-compact-ink);backdrop-filter:none;-webkit-backdrop-filter:none}
.room-stage-section .hex-nearby-back::before{content:'';position:absolute;inset:4px;z-index:-1;border-radius:50%;background:var(--sen-compact-control-fill);box-shadow:var(--sen-compact-control-shadow);pointer-events:none}
.room-stage-section .hex-nearby-back svg{width:16px;height:16px}
.room-stage-section :is(.hex-nearby-count,.hex-nearby-status,.hex-nearby-city-form label,.hex-nearby-person-copy small,.hex-nearby-location p){color:var(--sen-compact-muted)}
.room-stage-section .hex-nearby-status{padding-inline:16px;font-size:11px}
.room-stage-section .hex-nearby-city-form{gap:8px;margin-inline:16px;padding:12px;border-color:var(--sen-compact-edge);border-radius:16px;background:var(--sen-compact-card-fill);box-shadow:var(--sen-compact-card-shadow)}
.room-stage-section .hex-nearby-city-form label{min-width:0}
.room-stage-section .hex-nearby-city-form input{min-width:0;min-height:44px;padding:10px 12px;border-color:var(--sen-compact-line);border-radius:14px;background:var(--sen-compact-secondary);color:var(--sen-compact-ink);font:16px/22px var(--sen-ui-font,-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif)}
.room-stage-section .hex-nearby-city-form input:focus{border-color:var(--sen-compact-accent)}
.room-stage-section :is(.hex-nearby-city-form button,.hex-nearby-locate){min-height:44px;padding:10px 14px;border-radius:14px;background:var(--sen-compact-action-surface);color:var(--sen-compact-on-action);box-shadow:var(--sen-compact-action-shadow);font-size:13px;line-height:20px;white-space:normal}
.room-stage-section .hex-nearby-location{margin-inline:16px}
.room-stage-section .hex-nearby-list{padding-inline:16px}
.room-stage-section .hex-nearby-person{padding:12px;border-color:var(--sen-compact-edge);border-radius:16px;background:var(--sen-compact-card-fill);box-shadow:var(--sen-compact-card-shadow)}
.room-stage-section .hex-nearby-avatar{width:44px;height:44px;background:var(--sen-compact-secondary);color:var(--sen-compact-ink)}
.room-stage-section .hex-nearby-person-copy{flex:1;min-width:0}
.room-stage-section .hex-nearby-panel button:focus-visible{outline:2px solid var(--sen-compact-accent);outline-offset:3px}
.room-stage-section .hex-nearby-panel button:disabled{opacity:var(--sen-ui-disabled-opacity,.45)}

.room-stage-section .home-dance-picker{position:absolute;z-index:150;inset:auto 20px max(28px,env(safe-area-inset-bottom));max-height:65%;overflow:auto;padding:22px;border:1px solid #ffffff26;border-radius:28px;background:#101613f2;color:#f2f5ee;box-shadow:0 20px 60px #0005;font:inherit}
.room-stage-section .home-dance-picker[hidden]{display:none}.room-stage-section .home-dance-picker header{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.room-stage-section .home-dance-picker strong{font-size:18px;font-weight:500}.room-stage-section .home-dance-picker button{font:inherit;color:inherit;cursor:pointer}.room-stage-section .home-dance-picker header button{display:grid;place-items:center;border:1px solid #ffffff26;border-radius:50%;background:#ffffff0c;width:40px;height:40px;font-size:27px}.room-stage-section .home-dance-songs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.room-stage-section .home-dance-songs button{min-height:64px;border:1px solid #ffffff20;border-radius:16px;background:#ffffff08;padding:12px}.room-stage-section .home-dance-songs button:hover,.room-stage-section .home-dance-songs button:focus-visible{border-color:#d5ef62;outline:1px solid #d5ef62}.room-stage-section .home-dance-songs button:disabled{opacity:.45;cursor:wait}.room-stage-section .home-dance-picker small{display:block;min-height:20px;margin-top:12px;color:#d5dfce;font-size:13px}

.room-stage-section .home-dance-songs .dance-music-label{display:block;min-height:0;margin-top:4px;font-size:11px;line-height:1.3;color:inherit;opacity:.65}

/* Plaza and roaming share these materials; scene lighting is independent. */
:where(.room-stage-section, .planning-stage) {
  --scene-control-bg: #ffffff66;
  --scene-ui-font: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  --scene-control-border: #59655112;
  --scene-control-ink: #536372;
  --scene-favorite-selected-ink: #42533f;
  --scene-control-blur: 6px;
  --scene-control-shadow: inset 0 1px 0 #ffffff38;
}
:where(.room-stage-section[data-time=night], .planning-stage[data-ui-theme=night]) {
  --scene-control-bg: #22272966;
  --scene-control-border: #e0e8dc0b;
  --scene-control-ink: #bec9c3;
  --scene-favorite-selected-ink: #d5ef62;
  --scene-control-shadow: inset 0 1px 0 #ffffff0d;
}

/* Dark scene backdrops still need a visible selected bookmark in day UI. */
:where(.room-stage-section[data-background=black]) {
  --scene-favorite-selected-ink: #d5ef62;
}

/* Room view: a quiet header, one vertical action rail, light control within reach. */
.room-stage-section{--opening-top-inset:max(24px,env(safe-area-inset-top,0px));--opening-header-height:118px;--opening-swipe-height:44px;--opening-control-size:40px;--opening-side-inset:18px;--opening-control-bg:var(--scene-control-bg);--opening-control-blur:var(--scene-control-blur);--opening-control-border:var(--scene-control-border);--opening-control-ink:var(--scene-control-ink)}
.room-stage-section .home-top{min-height:var(--opening-header-height);padding:0 var(--opening-side-inset);pointer-events:none}
.room-stage-section .home-top .tools{height:calc(var(--opening-header-height) - 8px);align-items:flex-start}
.room-stage-section .home-top .tools>button{pointer-events:auto}
.room-stage-section .room-caption{top:calc((var(--opening-control-size) - 26px)/2);left:0;right:0;gap:5px}
.room-stage-section .room-caption h2{max-width:calc(100% - 168px);font-size:18px;line-height:26px;letter-spacing:.6px;color:inherit;font-weight:500}
.room-stage-section .room-caption .room-location{position:relative;display:block;max-width:calc(100% - 50px);text-align:center}
.room-stage-section .room-caption .room-location svg{position:absolute;right:calc(100% + 4px);top:2px;width:12px;height:12px}
.room-stage-section .room-caption .room-location span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.room-stage-section .room-caption .room-description{max-width:calc(100% - 32px);font-size:11px;line-height:18px;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.room-stage-section .home-top .tools>.author-profile{margin-left:auto;flex:none;align-items:center}
.room-stage-section .tools .author-avatar{width:22px;height:22px;flex:0 0 22px;border-radius:50%;overflow:hidden;font-size:10px}
.room-stage-section .tools .author-avatar img{border-radius:inherit;object-fit:cover}
.room-stage-section .tools .author-name{font-size:11px;line-height:16px;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.room-stage-section .room-element-summary{display:flex;align-items:center;justify-content:center;gap:9px;margin:4px 0 0;padding:0;pointer-events:auto}.room-stage-section .room-element-icon{display:grid;place-items:center;width:23px;height:24px;opacity:.82}.room-stage-section .room-element-icon svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}.room-stage-section[data-time=day] .room-element-icon{filter:brightness(.72)}
.room-stage-section .room-navigation{position:static}.room-stage-section .room-navigation .details{position:absolute;right:18px;bottom:120px;margin:0;z-index:3}.room-stage-section .room-navigation .creator{display:flex;flex-direction:column;gap:10px;margin:0;padding:0;border:0}.room-stage-section .creator>button.room-action,.room-stage-section .creator>button.save{width:40px;height:40px;background:var(--opening-control-bg);color:var(--opening-control-ink);backdrop-filter:blur(var(--opening-control-blur));-webkit-backdrop-filter:blur(var(--opening-control-blur));border:1px solid var(--opening-control-border)}.room-stage-section[data-time=night] .creator>button.room-action,.room-stage-section[data-time=night] .creator>button.save{background:var(--opening-control-bg);color:var(--opening-control-ink);border-color:var(--opening-control-border)}.room-stage-section .creator>button.room-action svg,.room-stage-section .creator>button.save svg{width:19px;height:19px}.room-stage-section .room-navigation .next{height:34px;margin:6px auto 4px;width:100%}/* Render behind the header and time controls; controls retain their own hit areas. */
.room-stage-section .space>.time-panel{margin-top:auto;margin-bottom:0}
.room-stage-section .space .room-page-viewer{position:absolute;left:0;right:0;top:calc(0px - var(--opening-top-inset) - var(--opening-header-height));bottom:var(--opening-swipe-height);margin:0}
.room-stage-section .space .room-page-viewer canvas{outline:none}
/* Feed gestures start below the model viewport. Its bottom uses the same
   swipe height, so the hit plane never covers visible furniture or floor. */
.room-stage-section .room-navigation::before{content:"";position:absolute;z-index:2;left:0;right:0;bottom:0;height:var(--opening-swipe-height);touch-action:none}
.room-stage-section .room-navigation .next{position:relative;z-index:2}
.room-stage-section .hex-top>div{align-self:center}.room-stage-section .hex-explore{justify-content:center}.room-stage-section .hex-enter{position:relative;display:inline-flex!important;align-items:center;justify-content:center;gap:6px;width:76px;min-width:76px;height:44px!important;padding:0!important;border:0!important;border-radius:999px!important;background:transparent!important;color:#fffef2!important;box-shadow:none!important;backdrop-filter:none;-webkit-backdrop-filter:none;font-size:12px!important;line-height:18px;font-weight:400;letter-spacing:1px;transition:transform .18s ease}
/* Reference: small translucent capsule; retain a 44px-high touch target. */
.room-stage-section .hex-enter::before{content:"";position:absolute;inset:8px 0;border:1px solid #ffffff16;border-radius:999px;background:linear-gradient(175deg,#ffffff2c,#ffffff17);box-shadow:inset 0 1px 0 #ffffff1a;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);pointer-events:none}
.room-stage-section .hex-enter-label,.room-stage-section .hex-enter-spinner{position:relative;z-index:1}
.room-stage-section .hex-enter:hover::before{background:linear-gradient(175deg,#ffffff36,#ffffff20)}
.room-stage-section .hex-enter:active{transform:scale(.96)}.room-stage-section .hex-enter-glyph{display:none}.room-stage-section .hex-enter-spinner{display:none;width:10px;height:10px;flex:0 0 10px;border:1.5px solid #ffffff30;border-top-color:#faf9e9;border-right-color:#faf9e9;border-radius:50%;animation:enter-spin .8s linear infinite}.room-stage-section .hex-plaza[data-busy=true] .hex-enter-spinner{display:block}.room-stage-section .hex-plaza[data-busy=true] .hex-enter{opacity:1!important}.room-stage-section .hex-plaza[data-busy=true] .hex-tile[data-selected=true] .hex-rim{animation:enter-focus 1.7s ease-in-out infinite}.room-stage-section .hex-entry-progress{margin-top:12px!important}.room-stage-section .hex-progress-track{height:3px!important}.room-stage-section .hex-plaza[data-entering=true] .hex-focus-frame{transform:scale(1.1);opacity:0;transition:transform .45s ease,opacity .45s ease}
@keyframes enter-spin{to{transform:rotate(360deg)}}@keyframes enter-focus{50%{filter:drop-shadow(0 0 9px #ccead778);opacity:.7}}
@media(max-height:740px){.room-stage-section{--opening-header-height:108px;--opening-control-size:36px;--opening-side-inset:14px}.room-stage-section .room-navigation .details{bottom:110px;right:14px}.room-stage-section .room-navigation .creator{gap:8px}.room-stage-section .creator>button.room-action,.room-stage-section .creator>button.save{width:36px;height:36px}}
@media(prefers-reduced-motion:reduce){.room-stage-section .hex-enter,.room-stage-section .hex-focus-frame{transition:none!important}.room-stage-section .hex-enter-spinner,.room-stage-section .hex-plaza[data-busy=true] .hex-focus-frame{animation:none}}

.room-stage-section .hex-plaza[data-level=planet]::before{opacity:1;background:radial-gradient(ellipse at 48% 45%,#3c617c18,transparent 50%),radial-gradient(ellipse at 70% 64%,#7a54751a,transparent 38%)}

/* The planning reference: a softly rounded lime-to-champagne rim, attached to the room. */
.room-stage-section .hex-plaza[data-selection=on] .hex-tile[data-selected=true] .hex-tile-shape{inset:1px;clip-path:none;mask:var(--selected-room-mask) center/100% 100% no-repeat;-webkit-mask:var(--selected-room-mask) center/100% 100% no-repeat}
.room-stage-section .hex-plaza{--selected-room-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 115.47' preserveAspectRatio='none'%3E%3Cpath d='M54 5.6 93 28.1Q97 30.4 97 35V80.5Q97 85.1 93 87.4L54 109.9Q50 112.2 46 109.9L7 87.4Q3 85.1 3 80.5V35Q3 30.4 7 28.1L46 5.6Q50 3.3 54 5.6Z'/%3E%3C/svg%3E")}
.room-stage-section .hex-rim{stroke:url(#planet-frame);stroke-width:4.6;filter:drop-shadow(0 0 5px #dae88a28)}.room-stage-section .hex-rim path{vector-effect:none}
.room-stage-section .hex-plaza[data-selection=on] .hex-tile[data-selected=true]{filter:drop-shadow(0 7px 12px #0007)}
@media(prefers-reduced-motion:reduce){.room-stage-section .hex-plaza[data-busy=true] .hex-tile[data-selected=true] .hex-rim{animation:none}}

.room-stage-section .room-element-summary{position:relative;gap:5px}.room-stage-section .room-element-icon{cursor:pointer;border:0;background:none;outline-offset:3px}.room-stage-section .room-element-icon svg{width:16px;height:16px}.room-stage-section .room-element-label{position:absolute;top:calc(100% + 4px);left:50%;transform:translate(-50%,-3px);pointer-events:none;white-space:nowrap;font-size:10px;line-height:16px;color:inherit;opacity:0;transition:opacity .16s,transform .16s}.room-stage-section .room-element-label.show{opacity:.8;transform:translate(-50%,0)}

/* AI line originals are alpha masks: the established quiet tag color remains. */
.room-stage-section .element-line-art{display:block;width:16px;height:16px;background:currentColor;mask-image:var(--line-url);-webkit-mask-image:var(--line-url);mask-size:var(--line-size);-webkit-mask-size:var(--line-size);mask-position:var(--line-position);-webkit-mask-position:var(--line-position);mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat;pointer-events:none}
.room-stage-section .room-element-icon{cursor:pointer}.room-stage-section .room-element-icon:focus-visible{outline:1px solid currentColor;outline-offset:1px;border-radius:4px}

.room-stage-section .element-line-art{filter:drop-shadow(.2px .2px 0 currentColor) drop-shadow(-.2px -.2px 0 currentColor)}

/* The title and top controls share a centerline and the action rail's glass. */
.room-stage-section[data-time=night]{--opening-control-bg:var(--scene-control-bg);--opening-control-border:var(--scene-control-border);--opening-control-ink:var(--scene-control-ink)}
.room-stage-section[data-time] .home-top .tools>button.music-toggle{height:var(--opening-control-size);background:var(--opening-control-bg);border:1px solid var(--opening-control-border);color:var(--opening-control-ink);box-shadow:none;backdrop-filter:blur(var(--opening-control-blur));-webkit-backdrop-filter:blur(var(--opening-control-blur));border-radius:999px}
.room-stage-section[data-time] .home-top .tools>button.music-toggle{width:var(--opening-control-size);flex:0 0 var(--opening-control-size);padding:0}
.room-stage-section[data-time] .home-top .tools>button.music-toggle[data-enabled=true]{color:var(--opening-control-ink)}
.room-stage-section[data-time] .home-top .author-name{color:inherit;min-width:0}
.room-stage-section .opening-feed-neighbor .room-caption{left:var(--opening-side-inset);right:var(--opening-side-inset)}

/* A quiet, nearly neutral dusk surface. Warmth belongs to the room lightmaps;
   the small vertical tonal shift fades continuously at either end of the day. */
.room-stage-section[data-time]{background-image:linear-gradient(180deg,rgb(255 255 255 / calc(var(--opening-dusk,0)*.06)),transparent 52%,rgb(35 42 48 / calc(var(--opening-dusk,0)*.035)))}
.room-stage-section[data-time=evening] :is(.room-caption,.room-location,.room-description,.time-labels,.bottom-nav){color:var(--opening-dusk-ink,#465159)}
.room-stage-section[data-time=evening] .time-labels button[aria-pressed=true]{color:var(--opening-dusk-ink,#465159)}

.room-stage-section[data-time=evening] .room-element-icon{filter:brightness(.66) saturate(.85)}
.room-stage-section[data-time=evening][data-dusk-contrast=light] .room-element-icon{filter:brightness(1.6) saturate(.65)}

/* Small portrait + name, matching the supplied identity reference. Keep a 44px hit area. */
.room-stage-section[data-time] .home-top .tools>button.author-profile{width:auto;max-width:80px;min-height:44px;height:44px;margin-top:calc((var(--opening-control-size) - 44px)/2);flex:0 1 auto;padding:0;display:flex;flex-direction:row;gap:6px;border:0;border-radius:0;background:transparent;color:#737a71;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;text-align:left}
.room-stage-section .home-top .author-profile .author-name{display:block;max-width:52px}
.room-stage-section[data-time=evening] .home-top .tools>button.author-profile{color:var(--opening-dusk-ink,#465159)}
.room-stage-section[data-time=night] .home-top .tools>button.author-profile{color:#b9c3bb}
.room-stage-section .home-top .author-profile:focus-visible{outline:1px solid currentColor;outline-offset:4px;border-radius:6px}
.room-stage-section .room-caption{gap:6px}
.room-stage-section .room-caption .room-location{display:flex;align-items:center;justify-content:center;gap:5px;max-width:calc(100% - 36px);font-size:11px;line-height:16px;letter-spacing:.3px}
.room-stage-section .room-caption .room-location svg{position:static;width:14px;height:14px;flex:none;stroke-width:1.8;color:var(--opening-control-ink)}
.room-stage-section .room-caption .room-location span{min-width:0;max-width:150px}
.room-stage-section .room-caption .room-location .room-author-label{display:none}
.room-stage-section .room-author-label::before{content:'·';margin-right:5px;opacity:.55}
.room-stage-section .room-caption .room-description{margin:0;letter-spacing:.5px}
.room-stage-section .hex-top{padding-top:var(--opening-top-inset);padding-left:var(--opening-side-inset);padding-right:var(--opening-side-inset)}
.room-stage-section .hex-top h2{font-size:18px;line-height:26px;font-weight:500;letter-spacing:.6px;margin:0}
.room-stage-section .hex-top .hex-round{width:var(--opening-control-size);height:var(--opening-control-size);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.room-stage-section .hex-filters{top:calc(var(--opening-top-inset) + var(--opening-control-size) + 12px)}
/* Match the planet's drawn silhouette to the taller person glyph, not just its SVG box. */
.room-stage-section .bottom-nav #homeNav svg.nav-line{width:30px;height:30px;stroke-width:1.4}

/* Night colors come from ../mobile-theme.css through the document theme. */
.room-stage-section .author-page[data-theme=night] .author-page-work,.room-stage-section .community-dialog[data-theme=night] .comment-compose{box-shadow:inset 0 0 0 1px var(--sen-ui-line)}
.room-stage-section .author-page[data-theme=night] .author-page-mine,.room-stage-section .community-dialog[data-theme=night] form button,.room-stage-section[data-time=night] #dialog .sheet-primary{
 background:var(--opening-night-action);color:var(--sen-ui-on-action);border:0;box-shadow:inset 0 1px 2px #ffffff55;
}
.room-stage-section[data-time=night] #dialog .sheet-primary:hover:not(:disabled){background:var(--opening-night-action);filter:brightness(1.04)}
/* Keep the dice's transparent image padding clear of the entry hit target on short screens. */
@media(max-height:680px){
 .room-stage-section .hex-selection-card{top:calc(var(--focus-bottom) - 10px);gap:6px;z-index:6}
 .room-stage-section .hex-bottom{padding-bottom:max(14px,env(safe-area-inset-bottom))}
 .room-stage-section .hex-explore{margin-bottom:4px}
 .room-stage-section .hex-explore .hex-random .hex-dice-stage,.room-stage-section .hex-random img{width:64px;height:64px}
}

/* Time and weather describe the room's atmosphere, alongside its existing slider. */
.room-stage-section .scene-time-board{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:9px 13px;margin:0 -12px 7px;border:1px solid var(--opening-control-border);border-radius:16px;background:var(--opening-control-bg);color:var(--opening-control-ink);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);text-align:left}
.room-stage-section .scene-clock-group{display:flex;align-items:center}
.room-stage-section .scene-clock{font-size:25px;font-weight:400;line-height:29px;letter-spacing:.3px;font-variant-numeric:tabular-nums}
.room-stage-section .scene-weather{position:relative}.room-stage-section .scene-weather svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round;color:#a48652}
.room-stage-section .scene-weather-name{display:block;font-size:12px;line-height:18px}.room-stage-section .scene-weather-mood{display:block;font-size:9px;line-height:15px;opacity:.65;white-space:nowrap}
.room-stage-section .scene-moon{color:#d0d3ae}
@media(max-height:680px){.room-stage-section .scene-time-board{padding:5px 11px;margin-bottom:3px}.room-stage-section .scene-clock{font-size:22px;line-height:26px}}
.room-stage-section .scene-weather-source,.room-stage-section .scene-weather-license{display:block;color:inherit;text-decoration:none;line-height:18px}.room-stage-section .scene-weather-license{opacity:.6;font-size:9px}
.room-stage-section .scene-time-board .scene-weather svg{display:none;flex:none;width:23px;height:23px}
.room-stage-section .scene-time-board[data-weather-icon=sun] .scene-sun,.room-stage-section .scene-time-board[data-weather-icon=moon] .scene-moon,.room-stage-section .scene-time-board[data-weather-icon=cloud] .scene-cloud,.room-stage-section .scene-time-board[data-weather-icon=rain] .scene-rain,.room-stage-section .scene-time-board[data-weather-icon=snow] .scene-snow{display:block}
.room-stage-section .scene-weather-name{white-space:nowrap}

.room-stage-section .scene-weather-source[hidden]{display:none}

.room-stage-section .scene-weather-summary{display:flex;align-items:center;gap:6px;min-height:30px;list-style:none;cursor:pointer;border-radius:6px}
.room-stage-section .scene-weather-summary::-webkit-details-marker{display:none}
.room-stage-section .scene-weather-summary:focus-visible{outline:1px solid currentColor;outline-offset:3px}
.room-stage-section .scene-weather-mood[hidden]{display:none}
.room-stage-section .scene-weather-info{position:absolute;bottom:calc(100% + 12px);right:0;z-index:4;width:max-content;padding:10px 13px;border:1px solid var(--opening-control-border);border-radius:12px;background:#faf8f3f5;box-shadow:0 4px 20px #0000000c;font-size:10px;line-height:18px;white-space:nowrap}
.room-stage-section .scene-weather-location{display:block;margin-bottom:3px;opacity:.7}
.room-stage-section[data-time=night] .scene-weather-info{background:#1c201ff5}

/* Small, transient activity cue beside the actor; never another fixed HUD panel. */
.room-stage-section .presence-cue{position:absolute;z-index:4;pointer-events:none;transform:translate(-50%,-100%);display:flex;align-items:center;gap:4px;white-space:nowrap;border-radius:9px;padding:4px 8px;background:rgba(250,249,246,.88);border:1px solid rgba(255,255,255,.45);box-shadow:0 2px 8px #25312909;color:#686f69;font-size:10px;font-weight:400;line-height:15px;letter-spacing:.2px;opacity:0;transition:opacity .35s ease}
.room-stage-section .presence-cue.is-visible{opacity:1}.room-stage-section .presence-cue[hidden]{display:none}.room-stage-section .presence-cue svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.25;stroke-linecap:round}.room-stage-section .presence-zzz{font-size:11px;letter-spacing:.5px}
@media(prefers-reduced-motion:reduce){.room-stage-section .presence-cue{transition:none}}
.room-stage-section .presence-target{position:absolute;z-index:3;pointer-events:none;display:flex;align-items:center;gap:5px;padding:5px 9px 5px 5px;border:1px solid #fffffff0;border-radius:22px;background:rgba(250,252,247,.94);box-shadow:0 2px 12px #273b2b12;color:#657866;font-size:10px;line-height:17px;white-space:nowrap;opacity:0;transition:opacity .2s ease}
.room-stage-section .presence-target.is-visible{opacity:1}.room-stage-section .presence-target[hidden]{display:none}
.room-stage-section .presence-target-symbol{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#e7eee3;color:#738a6d}
.room-stage-section .presence-target svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.room-stage-section .presence-target-check{display:none}.room-stage-section .presence-target.is-arrived .presence-target-check{display:inline;margin-left:2px;color:#81987c}
.room-stage-section.screensaver-active .presence-target{visibility:hidden}
@media(prefers-reduced-motion:reduce){.room-stage-section .presence-target{transition:none}}

/* Light, open vertical grouping: one music hit area, a clock, then weather. */
.room-stage-section .scene-ambient-rail{position:relative;z-index:3;flex:none;width:68px;padding:0 2px;display:flex;flex-direction:column;align-items:center;gap:9px;border:0;border-radius:0;background:transparent;color:var(--opening-control-ink);pointer-events:auto}
.room-stage-section .scene-ambient-rail .music-toggle{display:grid;place-items:center;flex:none;width:44px;height:40px;padding:0;border:1px solid var(--opening-control-border);background:var(--opening-control-bg);color:inherit;border-radius:50%;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.room-stage-section .scene-ambient-rail .music-toggle:focus-visible{outline:1px solid currentColor;outline-offset:3px}
.room-stage-section .scene-ambient-rail .scene-time-board{width:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:3px;padding:0;margin:0;border:0;border-radius:0;background:transparent;color:inherit;backdrop-filter:none;-webkit-backdrop-filter:none;text-align:center}
.room-stage-section .scene-ambient-rail .scene-clock-group{flex-direction:column;align-items:center;justify-content:center;width:100%;padding:0;border:0}
.room-stage-section .scene-ambient-rail .scene-clock{font-size:20px;line-height:26px;letter-spacing:-.6px;font-weight:450;font-variant-numeric:tabular-nums}
.room-stage-section .scene-ambient-rail .scene-weather{width:100%}
.room-stage-section .scene-ambient-rail .scene-weather-summary{display:grid;grid-template-columns:18px auto;column-gap:4px;row-gap:0;justify-content:center;align-content:center;min-height:44px;width:100%;border-radius:9px}
.room-stage-section .scene-ambient-rail .scene-weather-summary>span{display:contents}
.room-stage-section .scene-ambient-rail .scene-weather svg{grid-column:1;grid-row:1;width:18px;height:18px;color:inherit;opacity:.85;align-self:center}
.room-stage-section .scene-ambient-rail .scene-weather-name{grid-column:2;grid-row:1;font-size:13px;line-height:20px;font-weight:500;white-space:nowrap;font-variant-numeric:tabular-nums}
.room-stage-section .scene-ambient-rail .scene-weather-mood{grid-column:1/-1;font-size:10px;line-height:16px;white-space:nowrap;opacity:.8}
.room-stage-section .scene-ambient-rail .scene-time-board[data-weather-icon=none] .scene-weather-name{grid-column:1/-1;font-size:11px;font-weight:400;opacity:.7}
.room-stage-section .scene-ambient-rail .scene-weather-info{top:calc(100% + 5px);bottom:auto;left:0;right:auto;text-align:left;max-width:calc(100vw - 64px);min-width:170px;white-space:normal}
.room-stage-section .home-top .room-caption .room-location,.room-stage-section .home-top .room-caption .room-description{max-width:calc(100% - 136px)}
@media(max-height:740px){.room-stage-section .scene-ambient-rail{gap:5px}.room-stage-section .scene-ambient-rail .scene-clock{font-size:19px}}

.room-stage-section .scene-time-now{min-width:44px;min-height:28px;padding:0 6px;border:0;border-radius:8px;background:var(--opening-control-bg);color:inherit;font:inherit;font-size:10px;cursor:pointer}.room-stage-section .scene-time-now[hidden]{display:none}

/* A single quiet glass system for the ambient clock, controls and weather sheet. */
.room-stage-section{--ambient-glass:linear-gradient(135deg,#78817b42,#27363140);--ambient-edge:#ffffff29;--ambient-highlight:inset 0 1px 0 #ffffff20;--ambient-ink:#fffdf8}
.room-stage-section .scene-ambient-rail{width:48px;padding:0;gap:0}
.room-stage-section .scene-ambient-rail .music-toggle{position:relative;width:44px;height:44px;border:0;background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none}
.room-stage-section .scene-ambient-rail .music-toggle::before{content:"";position:absolute;inset:7px;border:1px solid var(--opening-control-border);border-radius:50%;background:var(--opening-control-bg)}
.room-stage-section .scene-ambient-rail .music-toggle svg{position:relative;width:17px;height:17px}
.room-stage-section .ambient-trigger{display:flex;align-items:center;justify-content:center;width:94px;min-height:36px;margin:0 auto 14px;padding:0;gap:10px;border:1px solid var(--opening-control-border);border-radius:999px;background:var(--opening-control-bg);color:inherit;font-size:14px;line-height:20px;font-variant-numeric:tabular-nums;cursor:pointer;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.room-stage-section .ambient-trigger svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.4;opacity:.65}.room-stage-section .ambient-trigger[aria-busy=true]{opacity:.5}
.room-stage-section .ambient-trigger:focus-visible{outline:1px solid currentColor;outline-offset:3px}
.room-stage-section .tools .author-avatar{width:28px;height:28px;flex-basis:28px}.room-stage-section .home-top .tools>.author-profile{max-width:90px;min-height:44px}
/* Optical alignment: the filled star sits lower than the adjacent line icons.
   Move only its artwork; keep the shared 23 × 24 px label hit area centered. */
.room-stage-section .room-curated-symbol{color:#b39051;opacity:1}.room-stage-section .room-curated-symbol svg{width:17px;height:17px;transform:translateY(-1px)}.room-stage-section .room-curated-symbol svg path:first-child{fill:currentColor;stroke-width:1}.room-stage-section .room-curated-symbol svg path:last-child{stroke:#fffaf0;stroke-width:1.7}
.room-stage-section .ambient-view[hidden]{display:none}
.room-stage-section .ambient-view{--ambient-glass:linear-gradient(135deg,#e5e0ce40,#b2b5a72b 52%,#65706042);--ambient-edge:#fff8e64d;--ambient-highlight:inset 0 1px 0 #fff9e63d,inset 0 -1px 0 #ffffff0a;--ambient-ink:#fffdf5;position:absolute;inset:0;z-index:20;pointer-events:none;color:var(--ambient-ink);background:linear-gradient(180deg,#111c2426,transparent 20%,transparent 68%,#17221c24);font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display",sans-serif}
.room-stage-section .ambient-view::before{content:"";position:absolute;inset:0;background:#101514;opacity:var(--ambient-cut,0);pointer-events:none}
.room-stage-section .ambient-story{position:absolute;left:30px;right:34px;bottom:calc(max(24px,env(safe-area-inset-bottom)) + 158px);pointer-events:none}
.room-stage-section .ambient-story-copy{max-width:270px;animation:ambient-story-reveal var(--story-duration,8s) both;text-shadow:0 1px 5px #101a1ac9,0 2px 16px #101a1a99}
.room-stage-section .ambient-story-copy>span{display:block;font-size:10px;line-height:16px;letter-spacing:1.6px;opacity:.7}.room-stage-section .ambient-story-copy>p{margin:7px 0 0;font-size:16px;font-weight:400;line-height:1.8;letter-spacing:.6px;text-wrap:pretty}
@keyframes ambient-story-reveal{0%,15%{opacity:0;transform:translateY(6px)}30%,78%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(-2px)}}
@media(prefers-reduced-motion:reduce){.room-stage-section .ambient-story-copy{animation:none}}
.room-stage-section .ambient-view button,.room-stage-section .ambient-view summary,.room-stage-section .ambient-view a{pointer-events:auto}
.room-stage-section .ambient-exit,.room-stage-section .ambient-sound-toggle{position:absolute;top:max(18px,env(safe-area-inset-top));width:44px;min-height:44px;display:grid;place-items:center;padding:0;border:0;background:transparent;color:inherit;cursor:pointer}
.room-stage-section .ambient-exit{left:15px}.room-stage-section .ambient-sound-toggle{right:15px}
.room-stage-section .ambient-resume{position:absolute;top:max(18px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);min-height:44px;padding:0 14px;display:flex;align-items:center;gap:5px;border:0;background:transparent;color:inherit;font:inherit;font-size:11px;letter-spacing:.3px;cursor:pointer}
.room-stage-section .ambient-resume[hidden]{display:none}.room-stage-section .ambient-resume::before{content:"";position:absolute;inset:5px 0;border:1px solid var(--ambient-edge);border-radius:999px;background:var(--ambient-glass);box-shadow:var(--ambient-highlight);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.room-stage-section .ambient-resume svg,.room-stage-section .ambient-resume span{position:relative}.room-stage-section .ambient-resume svg{width:13px;height:13px;fill:currentColor;opacity:.85}
.room-stage-section .ambient-exit::before,.room-stage-section .ambient-sound-toggle::before{content:"";position:absolute;inset:5px;border-radius:50%;border:1px solid var(--ambient-edge);background:var(--ambient-glass);box-shadow:var(--ambient-highlight);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.room-stage-section .ambient-exit svg,.room-stage-section .ambient-sound-toggle svg{position:relative;width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}.room-stage-section .ambient-sound-toggle[aria-pressed=false]{opacity:.65}
.room-stage-section .ambient-view .scene-time-board{position:absolute;inset:auto 20px max(24px,env(safe-area-inset-bottom));height:136px;display:block;margin:0;padding:0;border-radius:28px;border:1px solid var(--ambient-edge);color:inherit;background:var(--ambient-glass);box-shadow:var(--ambient-highlight),0 8px 24px #101c1c12;backdrop-filter:var(--sen-glass-ambient-filter,blur(8px));-webkit-backdrop-filter:var(--sen-glass-ambient-filter,blur(8px));text-shadow:0 1px 4px #111d2130;pointer-events:none}
.room-stage-section .ambient-caption{position:absolute;top:14px;left:20px;right:20px;height:23px;display:flex;align-items:flex-start;gap:12px;border-bottom:1px solid #fff7df26;line-height:16px}
.room-stage-section .ambient-place{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;letter-spacing:.35px;opacity:.88}.room-stage-section .ambient-activity{flex:none;max-width:82px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:9px;opacity:.7;letter-spacing:.25px}
.room-stage-section .ambient-view .scene-clock-group{position:absolute;top:47px;left:20px;display:flex;flex-direction:column;align-items:flex-start;gap:0}
.room-stage-section .ambient-date{font-size:10px;line-height:15px;font-weight:450;letter-spacing:.35px;opacity:.82}
.room-stage-section .ambient-view .scene-clock{font-family:inherit;font-size:46px;line-height:53px;font-weight:300;letter-spacing:-1.8px;font-variant-numeric:tabular-nums}
.room-stage-section .ambient-view .scene-time-now{color:inherit;background:#ffffff16;font-size:10px}
.room-stage-section .ambient-view .scene-weather{position:absolute;left:auto;right:18px;bottom:21px}
.room-stage-section .ambient-view .scene-weather-summary{display:flex;align-items:center;gap:9px;min-height:53px;padding:2px;border-radius:14px;transition:background .18s}
.room-stage-section .ambient-view .scene-weather-summary:active{background:#ffffff16}
.room-stage-section .ambient-view .scene-weather-summary>span{display:flex;flex-direction:column;align-items:flex-start;gap:0}
.room-stage-section .ambient-view .scene-weather-name{font-size:26px;line-height:30px;font-weight:400;letter-spacing:-.5px}.room-stage-section .ambient-view .scene-weather-mood{font-size:10px;line-height:17px;letter-spacing:.4px;opacity:.72}
.room-stage-section .ambient-view .scene-weather svg{width:25px;height:25px;color:inherit;stroke-width:1.1}
.room-stage-section .ambient-view .scene-weather-info{display:none!important}
.room-stage-section.screensaver-active .home-top,.room-stage-section.screensaver-active .bottom-nav,.room-stage-section.screensaver-active .home-indicator,.room-stage-section.screensaver-active #timePanel,.room-stage-section.screensaver-active #roomNavigation,.room-stage-section.screensaver-active .presence-cue{visibility:hidden;pointer-events:none}
.room-stage-section.screensaver-active .space{position:absolute;inset:0;min-height:0;padding:0;margin:0}.room-stage-section.screensaver-active .space .room-page-viewer{position:absolute;inset:0;margin:0;touch-action:none}
.room-stage-section .ambient-weather-sheet{box-sizing:border-box;position:fixed;inset:auto 0 max(14px,env(safe-area-inset-bottom));width:min(380px,calc(100vw - 28px));max-height:calc(100dvh - 80px);margin:0 auto;padding:10px 18px 17px;border:1px solid var(--ambient-edge,#ffffff29);border-radius:30px;color:var(--ambient-ink,#fffdf8);background:linear-gradient(135deg,#5e6969bd,#263637ce);box-shadow:inset 0 1px 0 #ffffff20,0 16px 60px #08131835;backdrop-filter:blur(28px) saturate(110%);-webkit-backdrop-filter:blur(28px) saturate(110%);font-family:-apple-system,BlinkMacSystemFont,sans-serif;animation:weather-reveal .24s cubic-bezier(.2,.7,.2,1)}
.room-stage-section .ambient-weather-sheet::backdrop{background:#101c2326}
.room-stage-section .weather-sheet-handle{width:30px;height:3px;margin:0 auto 14px;border-radius:9px;background:#ffffff4d}
.room-stage-section .ambient-weather-sheet header{display:flex;align-items:center;justify-content:space-between;margin:0 0 15px;padding:0 2px}.room-stage-section .ambient-weather-sheet h2{margin:0;font-size:17px;font-weight:550;letter-spacing:.4px}.room-stage-section .weather-sheet-location{margin:5px 0 0;font-size:11px;opacity:.6}
.room-stage-section .ambient-weather-sheet button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}.room-stage-section .weather-sheet-close{border:1px solid #ffffff12;border-radius:50%;background:#ffffff0c;width:32px;height:32px;padding:0;font-size:23px!important;line-height:1;font-weight:300!important}
.room-stage-section .weather-live{display:flex;align-items:center;gap:12px;width:100%;min-height:57px;padding:9px 14px;border-radius:18px;border:1px solid #ffffff15;background:#ffffff06;text-align:left}.room-stage-section .weather-live-mark{font-size:26px;opacity:.8}.room-stage-section .weather-live strong{font-size:12px;font-weight:500}.room-stage-section .weather-live small{display:block;margin-top:4px;font-size:10px;opacity:.6}.room-stage-section .weather-choice-check{margin-left:auto;opacity:0;font-size:12px}
.room-stage-section .weather-choice-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:10px 0 15px}.room-stage-section .weather-choice-grid button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;height:79px;border:1px solid #ffffff10;border-radius:18px;background:#ffffff05;font-size:11px;letter-spacing:.5px}.room-stage-section .weather-choice-grid svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round;opacity:.9}.room-stage-section .weather-choice-grid .weather-choice-check{position:absolute;top:8px;right:9px}
.room-stage-section .ambient-weather-sheet button[aria-pressed=true]{background:#ffffff1f;border-color:#ffffff54;box-shadow:inset 0 1px 0 #ffffff0c}.room-stage-section .ambient-weather-sheet button[aria-pressed=true] .weather-choice-check{opacity:.9}.room-stage-section .ambient-weather-sheet button:focus-visible{outline:2px solid #e3ecff;outline-offset:2px}
.room-stage-section .ambient-weather-sheet footer{padding:0 2px;color:#ffffff8c;font-size:9px;line-height:16px}.room-stage-section .weather-sheet-credits{margin-top:5px}.room-stage-section .weather-sheet-credits summary{cursor:pointer;list-style:none}.room-stage-section .weather-sheet-credits summary::-webkit-details-marker{display:none}.room-stage-section .weather-data-credits{margin-top:8px;padding-top:8px;border-top:1px solid #ffffff14}.room-stage-section .weather-data-credits a{color:inherit;margin-right:9px}.room-stage-section .weather-data-credits .scene-weather-location{margin-bottom:0}
@keyframes weather-reveal{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:360px){.room-stage-section .ambient-view .scene-time-board{left:16px;right:16px}.room-stage-section .ambient-caption{left:17px;right:17px}.room-stage-section .ambient-view .scene-clock-group{left:17px}.room-stage-section .ambient-view .scene-clock{font-size:43px}.room-stage-section .ambient-view .scene-weather{right:15px}.room-stage-section .ambient-view .scene-weather-name{font-size:24px}.room-stage-section .ambient-weather-sheet{padding-left:15px;padding-right:15px}}
@media(prefers-reduced-motion:reduce){.room-stage-section .ambient-weather-sheet{animation:none}}

/* Free-view movement shares the ambient glass and leaves the clock unobstructed. */
.room-stage-section .ambient-joystick{position:absolute;left:22px;bottom:calc(max(24px,env(safe-area-inset-bottom)) + 158px);width:88px;height:88px;padding:0;border:1px solid #fff8e652;border-radius:50%;background:linear-gradient(145deg,#fff8e61a,#32473b0a);box-shadow:inset 0 1px 0 #ffffff20;color:inherit;touch-action:none;user-select:none;-webkit-user-select:none;backdrop-filter:none;-webkit-backdrop-filter:none;opacity:.18;transition:opacity .16s ease-out;cursor:grab}
.room-stage-section .ambient-joystick[data-moving]{opacity:.92;cursor:grabbing}.room-stage-section .ambient-joystick:focus-visible{opacity:.55;outline:1px solid currentColor;outline-offset:4px}.room-stage-section .ambient-joystick[data-moving]:focus-visible{opacity:.92}
.room-stage-section .ambient-joystick-ring{position:absolute;inset:12px;border:1px solid #ffffff26;border-radius:50%}.room-stage-section .ambient-joystick-thumb{position:absolute;left:calc(50% - 12px);top:calc(50% - 12px);width:24px;height:24px;border:1px solid #ffffff70;border-radius:50%;background:linear-gradient(145deg,#fffdf0c4,#e1ead08c);box-shadow:0 2px 8px #101a1920;transform:translate(var(--stick-x,0px),var(--stick-y,0px));pointer-events:none}
.room-stage-section .ambient-joystick-label{position:absolute;left:0;right:0;top:calc(100% + 6px);font-size:10px;line-height:14px;letter-spacing:1px;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .16s ease-out}
.room-stage-section .ambient-view .ambient-story{left:130px;right:24px;bottom:calc(max(24px,env(safe-area-inset-bottom)) + 172px)}
@media(max-height:480px){.room-stage-section .ambient-joystick{width:72px;height:72px;left:18px;bottom:calc(max(12px,env(safe-area-inset-bottom)) + 152px)}}

/* Only a held pointer/arrow key reveals the control; touch hover must not stick. */
.room-stage-section .ambient-joystick[data-moving] .ambient-joystick-label,.room-stage-section .ambient-joystick:focus-visible .ambient-joystick-label{opacity:.8}
@media(prefers-reduced-motion:reduce){.room-stage-section .ambient-joystick,.room-stage-section .ambient-joystick-label{transition:none}}

/* Composition lives inside the original clock glass, without a second surface. */
.room-stage-section .ambient-view [hidden]{display:none!important}
.room-stage-section .ambient-view .scene-time-board{height:auto;display:flex;flex-direction:column;align-items:stretch;gap:0;z-index:1}
.room-stage-section .ambient-board-summary{position:relative;flex:none;height:136px}
.room-stage-section .ambient-board-summary:has(.scene-time-now:not([hidden])){height:154px}
.room-stage-section .ambient-caption{padding-right:29px}
.room-stage-section .ambient-view .ambient-menu-toggle{position:absolute;right:-12px;top:-14px;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:transparent;color:inherit;cursor:pointer;opacity:.8}
.room-stage-section .ambient-menu-toggle svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round}
.room-stage-section .ambient-menu-toggle[aria-expanded=true]{opacity:1}
.room-stage-section .ambient-menu-toggle[aria-expanded=true]::before{content:"";position:absolute;inset:8px;border:1px solid #ffffff38;border-radius:50%;background:#ffffff0c}
.room-stage-section .ambient-view .ambient-controls-dismiss{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;background:transparent;cursor:default}
.room-stage-section .ambient-exit,.room-stage-section .ambient-sound-toggle,.room-stage-section .ambient-resume{z-index:2}
.room-stage-section .ambient-controls{box-sizing:border-box;flex:none;max-height:min(240px,38dvh);overflow:auto;overscroll-behavior:contain;margin:0 20px;padding:0 0 17px;border-top:1px solid #fff7df26;pointer-events:auto;animation:ambient-controls-reveal .18s ease-out}
.room-stage-section .ambient-controls header{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:49px}
.room-stage-section .ambient-controls h2{margin:0;font:inherit;font-size:11px;font-weight:500;letter-spacing:.6px;opacity:.75}
.room-stage-section .ambient-controls button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
.room-stage-section .ambient-controls svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round;flex:none}
.room-stage-section .ambient-auto-toggle{display:flex;align-items:center;gap:6px;min-height:44px;padding:0;border:0;background:none;font-size:10px!important;opacity:.65}
.room-stage-section .ambient-auto-toggle svg{width:13px;height:13px}.room-stage-section .ambient-auto-toggle[aria-pressed=true]{opacity:1}
.room-stage-section .ambient-auto-toggle::after{content:"";width:4px;height:4px;margin-left:2px;border-radius:50%;border:1px solid currentColor}.room-stage-section .ambient-auto-toggle[aria-pressed=true]::after{background:currentColor}
.room-stage-section .ambient-shot-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.room-stage-section .ambient-controls .ambient-shot{position:relative;display:flex;align-items:center;gap:9px;min-height:49px;padding:9px 12px;text-align:left;border:1px solid #ffffff1f;border-radius:13px;background:#ffffff05;font-size:11px;line-height:1.4}
.room-stage-section .ambient-shot>span{min-width:0;overflow-wrap:anywhere}
.room-stage-section .ambient-controls .ambient-shot[aria-pressed=true]{border-color:#ffffff70;background:#ffffff17;box-shadow:inset 0 1px 0 #ffffff10}
.room-stage-section .ambient-view .ambient-menu-toggle:focus-visible,.room-stage-section .ambient-controls button:focus-visible{outline:1px solid #fffdf5;outline-offset:2px}
.room-stage-section .ambient-view .ambient-joystick{bottom:calc(max(24px,env(safe-area-inset-bottom)) + 158px + var(--ambient-controls-lift,0px))}
.room-stage-section .ambient-view .ambient-story{bottom:calc(max(24px,env(safe-area-inset-bottom)) + 172px + var(--ambient-controls-lift,0px))}
@keyframes ambient-controls-reveal{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:360px){.room-stage-section .ambient-controls{margin-left:17px;margin-right:17px}.room-stage-section .ambient-controls .ambient-shot{padding-left:9px;padding-right:9px}}
@media(max-height:480px){.room-stage-section .ambient-controls{max-height:28dvh}.room-stage-section .ambient-view .ambient-joystick{bottom:calc(max(12px,env(safe-area-inset-bottom)) + 152px + var(--ambient-controls-lift,0px))}}
@media(prefers-reduced-motion:reduce){.room-stage-section .ambient-controls{animation:none}}

/* Quiet feedback entry shares the existing ambient rail and its immersive visibility. */
.room-stage-section .scene-ambient-rail .plaza-feedback{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;width:44px;min-height:50px;margin:0 0 4px;padding:5px 0;border:0;border-radius:14px;background:var(--opening-control-bg);color:var(--opening-control-ink);font-size:9px;line-height:12px;cursor:pointer}
.room-stage-section .scene-ambient-rail .plaza-feedback svg{width:18px;height:18px;fill:none}.room-stage-section .scene-ambient-rail .plaza-feedback:focus-visible{outline:2px solid currentColor;outline-offset:2px}

/* Original component composition, tightened towards the edges.
   Keep the time button centred above a single light row, with the feed cue below. */
.room-stage-section{--opening-top-inset:max(12px,env(safe-area-inset-top,0px));--opening-header-height:104px;--opening-side-inset:8px;--opening-control-size:36px;padding-top:var(--opening-top-inset);padding-bottom:calc(80px + env(safe-area-inset-bottom,0px))}
.room-stage-section .home-top .tools>.author-profile{max-width:76px;gap:4px}
.room-stage-section .home-top .author-avatar{width:24px;height:24px;flex-basis:24px}
.room-stage-section .room-navigation .details{right:8px;bottom:88px}
.room-stage-section .room-navigation .creator{gap:8px}
.room-stage-section .creator>button.room-action,.room-stage-section .creator>button.save{position:relative;width:36px;height:36px;min-height:36px;padding:0}
.room-stage-section .creator>button.room-action::after,.room-stage-section .creator>button.save::after{content:"";position:absolute;inset:-4px}
.room-stage-section .creator>button.room-action svg,.room-stage-section .creator>button.save svg{width:18px;height:18px}
.room-stage-section .scene-ambient-rail{width:44px}
.room-stage-section .scene-ambient-rail .plaza-feedback{position:relative;width:44px;min-height:44px;height:44px;padding:0;margin:-4px 0 0;background:transparent;border-radius:50%}
.room-stage-section .plaza-feedback::before{content:"";position:absolute;inset:6px;border:1px solid var(--opening-control-border);border-radius:50%;background:var(--opening-control-bg)}
.room-stage-section .plaza-feedback svg{position:relative;width:17px;height:17px}
.room-stage-section .plaza-feedback>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.room-stage-section .space>.time-panel{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;grid-template-rows:36px 44px;width:284px;max-width:calc(100% - 88px);height:80px;padding:0;margin-bottom:0;overflow:visible}
.room-stage-section #timePanel>.ambient-trigger{grid-column:1/-1;grid-row:1;align-self:center;justify-self:center;width:94px;min-height:36px;height:36px;margin:0;transform:scale(1);transform-origin:center bottom;transition:transform 260ms cubic-bezier(.2,.7,.2,1)}
.room-stage-section #timePanel>.time-slider-wrap{grid-column:2;grid-row:2;align-self:center;min-width:0;width:100%;height:44px;margin:0}
.room-stage-section #timePanel .time-rail{top:calc(50% - 1.5px)}
.room-stage-section #timeSlider{height:44px}
.room-stage-section #timePanel>.time-labels{display:contents}
.room-stage-section #timePanel>.time-labels button{display:grid;grid-row:2;place-items:center;width:44px;height:44px;padding:0;margin:0;opacity:0;visibility:hidden;pointer-events:none;transform:scale(.86);transition:opacity 220ms ease,transform 220ms ease,visibility 0s 220ms}
.room-stage-section #timePanel>.time-labels button:first-child{grid-column:1}
.room-stage-section #timePanel>.time-labels button:last-child{grid-column:3}
.room-stage-section #timePanel>.time-labels svg{width:18px;height:18px;transform:none}
.room-stage-section #timePanel.dragging>.time-labels button{opacity:.9;visibility:visible;pointer-events:auto;transform:scale(1);transition-delay:0s}
.room-stage-section #timePanel.dragging>.ambient-trigger{transform:scale(1.26)}
/* Removing the flex stacking context keeps the feed plane below the slider. */
.room-stage-section .room-navigation{z-index:auto}
.room-stage-section .room-navigation>.next{position:relative;left:auto;bottom:auto;width:100%;height:28px;padding:0;margin:0 auto;z-index:2}
@media(max-height:700px){.room-stage-section{--opening-header-height:96px}.room-stage-section .room-navigation .details{bottom:84px}.room-stage-section .room-navigation .creator{gap:8px}.room-stage-section .creator>button.room-action,.room-stage-section .creator>button.save{width:32px;height:32px;min-height:32px}}
@media(prefers-reduced-motion:reduce){.room-stage-section #timePanel>.ambient-trigger,.room-stage-section #timePanel>.time-labels button{transition:none}}

/* A visible room keeps pet-only recovery off its central actor and lower controls.
   Ordinary loading failures retain the original centred recovery button. */
.room-stage-section .room-page-viewer[data-load-state="ready"][data-entry-load-status="partial"] > .retry-room {
  top: clamp(12px, calc(var(--opening-top-inset, 12px) + var(--opening-header-height, 104px) + 8px), calc(100% - 72px));
  right: max(12px, var(--opening-side-inset, 8px), env(safe-area-inset-right, 0px));
  bottom: auto;
  left: auto;
  transform: none;
  max-width: min(196px, calc(50% - 24px));
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 18px;
}

/* Flat plaza only; Home retains the main project composition and type. */
.room-stage-section .hex-top h2{font-size:16px;line-height:24px}
.room-stage-section .hex-selection-card{top:calc(var(--focus-bottom) - 12px)}
.room-stage-section .hex-selection-card h3{font-size:13px;line-height:19px;font-weight:400}
.room-stage-section .hex-selection-card .hex-location{font-size:11px;line-height:16px}
.room-stage-section .hex-location .hex-distance{font-size:11px;font-weight:400}
.room-stage-section .hex-location svg{width:12px;height:12px}
.room-stage-section .hex-selection-card .hex-meta{position:relative;display:flex;justify-content:center;gap:6px;line-height:20px}
.room-stage-section .hex-meta .hex-author{display:flex;align-items:center;justify-content:center;width:28px;height:28px;max-width:none;overflow:visible}
.room-stage-section .hex-meta .hex-author-avatar{position:relative;right:auto;top:auto;transform:none;width:28px;height:28px}
.room-stage-section .hex-meta .hex-author-name{display:none}
.room-stage-section .hex-meta .hex-curation{display:none}
.room-stage-section .hex-meta .hex-author+.hex-curation::before{display:none}

/* Centered caption and entry; discovery remains independently centered at the bottom. */
.room-stage-section .hex-plaza .hex-bottom{top:auto;bottom:0;display:flex;flex-direction:column;align-items:center;gap:8px;padding:0 20px max(18px,env(safe-area-inset-bottom));background:none}
.room-stage-section .hex-plaza .hex-selection-card{position:absolute;inset:auto 24px auto;top:calc(var(--focus-bottom) + 8px);min-height:0;width:auto;display:flex;flex-direction:column;align-items:center;gap:10px;justify-content:flex-start;margin:0;padding:0;z-index:6}
.room-stage-section .hex-selection-copy{display:flex;flex-direction:column;align-items:center;gap:4px;max-width:100%}
.room-stage-section .hex-selection-heading{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;max-width:100%}
.room-stage-section .hex-selection-details{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;max-width:100%}
.room-stage-section .hex-plaza .hex-selection-card .hex-meta{flex:none;margin:0;line-height:1}
.room-stage-section .hex-plaza .hex-meta .hex-author,.room-stage-section .hex-plaza .hex-meta .hex-author-avatar{width:28px;height:28px}
.room-stage-section .hex-plaza .hex-selection-card .hex-title{min-width:0;max-width:100%;margin:0;font-size:13px;line-height:19px;font-weight:400;letter-spacing:.3px;white-space:normal;overflow-wrap:anywhere}
.room-stage-section .hex-plaza .hex-selection-card .hex-location,.room-stage-section .hex-plaza .hex-selection-card .hex-room-elements{margin:0;font-size:11px;line-height:16px;font-weight:400;letter-spacing:0}
.room-stage-section .hex-plaza .hex-selection-card .hex-room-elements{color:#a3aaa0;font-size:10px;line-height:15px}
.room-stage-section .hex-plaza .hex-selection-card .hex-room-elements:empty{display:none}
.room-stage-section .hex-plaza .hex-bottom::before{content:"";position:absolute;inset:-18px 0 0;z-index:-1;background:linear-gradient(transparent,#0c0d1080 28%,#0c0d1070 80%,transparent);pointer-events:none}
.room-stage-section .hex-plaza .hex-selection-card .hex-location .hex-distance{color:#d9f45b;font-weight:600}
.room-stage-section .hex-plaza .hex-bottom .hex-explore{position:static;margin:0;gap:0;pointer-events:auto}
.room-stage-section .hex-plaza .hex-random{box-sizing:border-box;width:82px;min-height:82px;gap:0;padding:0 5px;border:0;background:transparent;box-shadow:none}
.room-stage-section .hex-plaza .hex-dice-stage,.room-stage-section .hex-plaza .hex-random img{width:70px;height:70px}
.room-stage-section .hex-plaza .hex-random small{margin:-5px 0 0;font-size:9px;line-height:15px;letter-spacing:.5px}
.room-stage-section .hex-plaza .hex-selection-card .hex-enter{flex:none;width:76px;min-width:76px;height:44px!important;letter-spacing:1px}
.room-stage-section .hex-plaza .hex-selection-card .hex-enter::before{inset:8px 0}
.room-stage-section .hex-plaza .hex-hint{margin:0;font-size:9px;line-height:14px;letter-spacing:.2px;color:#929a91}
.room-stage-section .hex-plaza[data-busy=true] .hex-bottom .hex-explore{pointer-events:none}
.room-stage-section .hex-plaza[data-level=planet] .hex-selection-card,.room-stage-section .hex-plaza[data-selection=off] .hex-selection-card,.room-stage-section .hex-plaza[data-empty=true] .hex-bottom{display:none!important}
@media(max-height:680px){
 .room-stage-section .hex-plaza .hex-bottom{gap:5px;padding-bottom:max(10px,env(safe-area-inset-bottom))}
 .room-stage-section .hex-plaza .hex-random{width:64px;min-height:62px}
 .room-stage-section .hex-plaza .hex-dice-stage,.room-stage-section .hex-plaza .hex-random img{width:50px;height:50px}
 .room-stage-section .hex-plaza .hex-selection-card{gap:7px;top:var(--focus-bottom)}
 .room-stage-section .hex-plaza .hex-selection-copy{gap:2px}
 .room-stage-section .hex-plaza .hex-selection-heading{gap:3px}
 .room-stage-section .hex-plaza .hex-selection-details{gap:1px}
 .room-stage-section .hex-plaza .hex-meta .hex-author,.room-stage-section .hex-plaza .hex-meta .hex-author-avatar{width:24px;height:24px}
}

/* Home identity and utility controls sit at the edges of the room composition. */
.room-stage-section .home-top .tools>.author-profile{position:absolute;top:0;right:var(--opening-side-inset);display:grid;place-items:center;width:44px;min-width:44px;max-width:44px;height:44px;margin:0;padding:4px;border-radius:50%;color:var(--opening-control-ink);pointer-events:auto}
.room-stage-section .home-top .tools>.author-profile .author-avatar{display:grid;place-items:center;width:34px;height:34px;flex-basis:34px;font-size:13px;border:1px solid var(--opening-control-border);background:var(--opening-control-bg)}
.room-stage-section .home-top .tools>.author-profile .author-name{display:none}
.room-stage-section .home-top .tools>.scene-ambient-rail{position:absolute;left:var(--opening-side-inset);top:0;width:44px;gap:2px}
.room-stage-section .home-top .tools>.scene-ambient-rail .plaza-feedback{margin:0}
.room-stage-section .room-caption{pointer-events:none}
.room-stage-section .room-caption>.room-element-summary{pointer-events:auto}
.room-stage-section .room-caption h2{max-width:calc(100% - 120px)}
.room-stage-section .room-navigation .creator>button{margin-left:0;flex:none}
.room-stage-section .room-navigation .creator>.save[aria-pressed=true] svg{fill:var(--scene-favorite-selected-ink,currentColor);stroke:var(--scene-favorite-selected-ink,currentColor)}

/* Website shell only. Cards follow canonical companionPanel: square portrait, label, pressed check, 3 columns. */
.website-character-shell{--character-header-bottom:124px;--character-ink:#f7f0da;--character-muted:#bdcdc2;--character-line:#d3dfaf40;--character-lime:#e5ff68;position:absolute;inset:0;pointer-events:none;z-index:16;color:var(--character-ink);font:13px/1.5 Arial,sans-serif}
.website-character-shell *{box-sizing:border-box}.website-character-shell [hidden]{display:none!important}.website-character-shell button{font:inherit;color:inherit;cursor:pointer;min-height:44px;border:1px solid var(--character-line);border-radius:12px;background:#11232de6;padding:10px}.website-character-shell button:focus-visible{outline:2px solid var(--character-lime);outline-offset:3px}.website-character-shell button:disabled{opacity:.4;cursor:default}.website-character-shell svg{width:22px;height:22px;flex:none}.website-character-trigger{position:absolute;right:clamp(18px,3vw,48px);top:var(--character-header-bottom);display:flex;align-items:center;gap:9px;max-width:260px;pointer-events:auto;box-shadow:0 5px 24px #0004;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}.website-character-trigger>span:last-child{max-width:180px;line-height:1.4;text-align:left}.website-character-avatar{width:32px;height:32px;flex:none;position:relative;display:grid;place-items:center;overflow:hidden;border-radius:50%;background:#223938;border:1px solid #e5ff6859}.website-character-avatar img,.website-character-current-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.website-character-panel{position:absolute;pointer-events:auto;right:clamp(18px,3vw,48px);top:calc(var(--character-header-bottom) + 66px);bottom:96px;width:318px;max-height:600px;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;border:1px solid #d3dfaf6b;border-radius:22px;padding:16px;background:linear-gradient(145deg,#112530f5,#091923f5);box-shadow:0 16px 50px #0006;backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);scrollbar-width:thin;scrollbar-color:#b5c89b55 transparent}.website-character-panel>header{display:flex;align-items:center;justify-content:space-between;gap:12px;border:0;margin:0;padding:0;background:none}.website-character-panel h2{font:600 18px/1.4 Arial,sans-serif;margin:0;color:var(--character-ink)}.website-character-panel .website-character-close{width:44px;height:44px;flex:none;border-radius:50%;display:grid;place-items:center;padding:10px}.website-character-scope{font-size:11px;letter-spacing:.025em;color:#e5ff68;margin:3px 0 12px}.website-character-panel .website-character-current{display:flex;align-items:center;gap:10px;width:100%;padding:9px;margin:0 0 14px;text-align:left;background:#e5ff680a;border-color:#e5ff6855}.website-character-current-avatar{width:44px;height:44px;flex:none;position:relative;display:grid;place-items:center;overflow:hidden;border-radius:50%;background:#223938;border:1px solid #e5ff6859}.website-character-current>span:nth-child(2){flex:1;min-width:0;display:grid;gap:2px}.website-character-current strong{font-size:13px;overflow-wrap:anywhere}.website-character-current small{color:#d3e9a4;font-size:11px}.website-character-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-content:start}.website-character-panel .website-character-card{position:relative;display:flex;flex-direction:column;min-width:0;min-height:44px;padding:0;overflow:hidden;border-radius:12px;background:#1c3138}.website-character-portrait{position:relative;display:grid;place-items:center;width:100%;aspect-ratio:1;overflow:hidden;background:linear-gradient(140deg,#365048,#1b3036);color:#e1eabf}.website-character-portrait>svg{width:34px;height:34px;opacity:.45}.website-character-portrait img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;object-position:center;background:transparent}.website-character-card-label{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;line-height:16px;width:100%;padding:6px 5px;font-size:11px}.website-character-card[aria-pressed=true]{border-color:#e5ff68!important;box-shadow:inset 0 0 0 1px #e5ff68;background:#e5ff6814}.website-character-card[aria-pressed=true]:after{content:'✓';position:absolute;top:5px;right:5px;width:20px;height:20px;border-radius:50%;display:grid;place-items:center;background:#e5ff68;color:#142217;font-size:13px;line-height:1}.website-character-card[aria-busy=true]{border-style:dashed!important}.website-character-pager{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:12px 0 0}.website-character-pager button{width:44px;height:44px;padding:10px;display:grid;place-items:center}.website-character-pager>span{font-size:12px;color:var(--character-muted)}.website-character-status{font-size:12px;line-height:1.5;margin:10px 0 0;color:#e5ff68}.website-character-status:empty{display:none}.website-character-note{margin:12px 0 0;padding-top:10px;border-top:1px solid var(--character-line);font-size:11px;line-height:1.6;color:var(--character-muted)}
@media(max-width:700px){.website-character-trigger{right:14px;top:calc(var(--character-header-bottom) + 64px);max-width:200px;padding:7px 9px!important}.website-character-trigger>span:last-child{font-size:11px;max-width:144px}.website-character-avatar{width:28px;height:28px}.website-character-panel{top:calc(var(--character-header-bottom) + 120px);right:12px;bottom:90px;width:min(290px,calc(100% - 24px));max-height:calc(100dvh - var(--character-header-bottom) - 210px);border-radius:20px;padding:13px}.website-character-panel h2{font-size:16px}.website-character-panel .website-character-current{margin-bottom:10px}.website-character-note{font-size:10px}.website-character-card-label{font-size:11px}.website-character-scope{margin-bottom:9px}}
@media(max-height:650px){.website-character-panel{bottom:76px;top:calc(var(--character-header-bottom) + 58px);max-height:calc(100dvh - var(--character-header-bottom) - 134px)}.website-character-trigger{top:var(--character-header-bottom)}}
@media(prefers-reduced-transparency:reduce){.website-character-panel,.website-character-trigger{background:#0c202a;backdrop-filter:none;-webkit-backdrop-filter:none}}

.room-stage-section .presence-actions{z-index:45}.room-stage-section .ambient-view{z-index:50}.room-stage-section .home-dance-picker{z-index:60}.room-page-viewer .presence-actions footer,.room-page-viewer .website-character-panel footer{max-width:none;margin:0;padding:0;border:0}.room-page-viewer[data-website-focus-camera="true"] .room-model-controls,.room-page-viewer[data-website-focus-camera="true"] .website-character-shell{visibility:hidden}.room-fullscreen:has(.room-page-viewer[data-website-focus-camera="true"]) .room-stage-header,.room-fullscreen:has(.room-page-viewer[data-website-focus-camera="true"]) .room-stage-caption,.room-fullscreen:has(.room-page-viewer[data-website-focus-camera="true"]) .room-stage-bottom{visibility:hidden;pointer-events:none}
