/* RuangRindu: keep the Canvas scene and invitation as the visual centre. */
:root {
  --rr-card-radius: 20px;
  --rr-shadow: 0 8px 28px rgba(51, 30, 68, .055);
  --rr-cta-ink: #fff;
  --rr-rose-ink: #b52d61;
  --rr-gold-ink: #805b1d;
  --rr-good-ink: #147d53;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --rr-shadow: 0 8px 28px rgba(0, 0, 0, .18);
    --rr-cta-ink: #231422;
    --rr-rose-ink: #f0679a;
    --rr-gold-ink: #e7bf62;
    --rr-good-ink: #44d39a;
  }
}

:root[data-theme="dark"] {
  --rr-shadow: 0 8px 28px rgba(0, 0, 0, .18);
  --rr-cta-ink: #231422;
  --rr-rose-ink: #f0679a;
  --rr-gold-ink: #e7bf62;
  --rr-good-ink: #44d39a;
}

body { line-height: 1.6; }
button, input, select, .filebtn, .btn { min-height: 44px; }
button, .filebtn, .btn { min-width: 44px; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, .filebtn:focus-within {
  outline: 3px solid var(--rose);
  outline-offset: 3px;
}
button, .btn, .filebtn {
  transition: background-color .15s ease, border-color .15s ease,
    box-shadow .15s ease;
}
.btn.rose, .sendb, .name.me, .amt[aria-pressed="true"] { color: var(--rr-cta-ink); }
.btn { line-height: 1.4; }
.btn.ghost { background: var(--panel); }
.card .btn.ghost { background: transparent; }

/* A quiet header; keep the event switch visible on narrow phones. */
.top { min-height: 66px; gap: 14px; padding: 10px 24px; }
.brand { letter-spacing: -.02em; }
.demo-label { padding: 5px 10px; }
.evbtn { max-width: min(52vw, 280px); padding: 10px 16px; overflow: hidden; text-overflow: ellipsis; }
.layout { gap: 20px; }
.stage { box-shadow: var(--rr-shadow); }
.panel-col { padding: 20px 18px 32px; }
.panel-col, .tp, #sheetBody { min-width: 0; }
.tabs { gap: 8px; padding: 3px 3px 14px; scroll-padding-inline: 4px; }
.tab { padding: 10px 15px; letter-spacing: -.01em; }
.tab[aria-selected="true"] { box-shadow: 0 3px 9px rgba(30, 22, 51, .1); }
.sub { font-size: 13px; line-height: 1.7; margin-bottom: 16px; }
.sec { align-items: center; margin: 22px 0 10px; }
.sec h3 { min-width: 0; }
.sec > .btn { flex: none; padding: 9px 12px; font-size: 12px; }
h2 { letter-spacing: -.02em; }
h3 { font-size: 15px; line-height: 1.4; }

/* Room presets and purposeful add-ons use the same readable card system. */
.spots, .moments, .gifts, .shop, .venues, .stats { gap: 10px; }
.spotc, .moment, .gift, .shopc, .venue, .stat, .plan, .quests,
.memory-tools, .phonecast, .rev, .bundle {
  border-radius: var(--rr-card-radius);
  padding: 15px;
}
.spotc, .moment, .gift, .venue, .shopc { min-width: 0; gap: 5px; }
.spotc b, .moment b, .gift b, .venue b, .shopc b {
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.spotc .e, .moment .e, .venue .e, .gift .e, .shopc .e {
  line-height: 1.15;
  margin-bottom: 3px;
}
.spotc span, .moment span, .gift span, .venue span:last-child,
.shopc > span:not(.e) { line-height: 1.6; }
.venue .lock { color: var(--rr-gold-ink) !important; }
.shopc.own .shopf b, .revtop b { color: var(--rr-good-ink); }
.gift.got { opacity: 1; color: var(--muted); }
.spotc[aria-pressed="true"], .venue[aria-pressed="true"] {
  background: var(--rose-soft);
  border-color: var(--rose);
  box-shadow: inset 0 0 0 1px var(--rose);
}
.shopf { gap: 8px; padding-top: 12px; }
.shopc .btn, .pair .btn, .memory-actions .btn { padding: 9px 12px; }
.shopf b, .stat b { white-space: normal; overflow-wrap: anywhere; }
.stat b { display: block; font-size: clamp(18px, 2vw, 22px); line-height: 1.4; margin-top: 3px; }
.stat small, .memory-tools p { line-height: 1.65; }
.plan { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
.plan b, .plan small { overflow-wrap: anywhere; }
.plans { gap: 10px; }
.rundown li { grid-template-columns: 48px minmax(0, 1fr) auto; padding: 12px 0; gap: 9px; }
.rundown li b { font-size: 13px; line-height: 1.5; }
.rundown li.done { opacity: 1; color: var(--muted); }
.rundown li.now time, .lb li.me { color: var(--rr-rose-ink); }
.rundown li.now b::after { color: var(--rr-cta-ink); }
.rundown .btn { padding: 9px 11px; }
.qhead { align-items: center; }
.qbar { margin-block: 10px; }
.qlist { gap: 6px 12px; line-height: 1.55; }
.msgs li { border-radius: 18px; padding: 13px 15px; }
.msgs li b { margin-bottom: 4px; }
.msgs li p { font-size: 17px; line-height: 1.5; overflow-wrap: anywhere; }
.photos { gap: 10px; }
.photos img, .photos .ph { border-radius: 14px; }
.photos .ph { background: var(--panel2); color: var(--muted); }
.memory-actions { gap: 8px; }
.memory-tools p { margin: 8px 0 12px; }
.footlinks { gap: 4px 18px; margin-top: 18px; }
.footlinks a { display: inline-flex; min-height: 44px; align-items: center; text-underline-offset: 4px; }
.note { line-height: 1.65; margin-top: 12px; }

/* Scroll only the room row; even a long room name must not widen the scene. */
.hudcol { min-width: 0; gap: 8px; }
.hud-top { gap: 10px; }
.rooms {
  min-width: 0;
  max-width: 100%;
  gap: 4px;
  padding: 5px;
  border-radius: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-padding-inline: 5px;
  scrollbar-width: thin;
  scrollbar-color: #9f91b4 transparent;
}
.rooms .room {
  max-width: 230px;
  padding: 8px 11px;
  border-radius: 13px;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rooms .room:focus-visible { outline-offset: -3px; }
.rooms .room small { color: #ded5eb; }
.rooms .room[aria-pressed="true"] small { color: #6a6080; }
#rooms { width: max-content; max-width: 100%; }
#editRooms { flex: 1; min-width: 0; }
.hudpills { gap: 6px; }
.pill, .hudpills .pill { padding: 8px 11px; line-height: 1.3; }
.pill.red { background: #bc263d; }
.camctl button, .bar .emo, .emo, .x { width: 44px; height: 44px; }
.camctl { gap: 8px; }
.spot { padding: 8px 11px; }
.bar .say {
  min-height: 44px;
  border: 0;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  line-height: 1.4;
  padding: 10px;
}
.bar { padding: 7px; gap: 6px; border-radius: 18px; }
.sendb { padding: 10px 12px; }
.acts { gap: 8px; }
.acts button { padding: 10px 13px; }
.mc { padding: 8px 9px 8px 14px; line-height: 1.5; }
.mc button { min-height: 44px; }
.editbar { padding: 8px; gap: 8px; border-radius: 18px; }
.editbar .et { padding-left: 5px; flex: none; }
.editbar .et b { font-size: 12px; }
.edittray { padding: 10px; border-radius: 20px; }
.chipsrow { padding: 3px 3px 5px; gap: 8px; }
.addc { padding: 9px 12px; }
.propbar { max-width: calc(100% - 16px); overflow-x: auto; }
.propbar button { flex: none; }

/* Dialogs stay inside the visual viewport, with room for safe-area insets. */
.sheet {
  width: min(620px, calc(100% - 32px));
  max-width: none;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  max-height: calc(100vh - 48px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  max-height: calc(100dvh - 48px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  padding: 12px 24px 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(10, 6, 18, .24);
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scroll-padding-block: 18px;
}
.sheet.short { max-height: min(640px, calc(100dvh - 48px)); }
.sheet h2 { padding-right: 48px; margin-bottom: 8px; line-height: 1.3; }
.x { top: 12px; right: 14px; z-index: 1; }
.grab { margin-bottom: 16px; }
.sheet .sub { margin-bottom: 16px; }
.avs { gap: 9px; }
.avs > b, .avs div > b { margin-top: 10px; }
.sws { gap: 10px; padding: 3px; }
.sw, .look { width: 44px; height: 44px; }
.chips { gap: 8px; }
.chip { padding: 9px 13px; line-height: 1.45; }
.chip[data-avatar-preset] { text-align: left; }
/* Keep the actual Canvas avatar visible while browsing its appearance. */
#sheet.avatar-sheet {
  width: min(940px, calc(100% - 32px));
  height: min(780px, calc(100dvh - 48px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.avatar-sheet #sheetBody { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.avatar-sheet h2, .avatar-sheet .sub, .avatar-done, .avatar-sheet .grab { flex: none; }
.avatar-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; flex: 1; min-height: 0; }
.avatar-controls { overflow-y: auto; min-height: 0; padding: 4px 8px 12px 4px; overscroll-behavior: contain; scrollbar-width: thin; scroll-padding-block: 12px; }
.avatar-controls:focus-visible { outline: 2px solid var(--rose); outline-offset: -2px; border-radius: 12px; }
.avatar-preview { align-self: start; border: 1px solid var(--line); border-radius: 20px; background: radial-gradient(ellipse at 50% 25%, var(--panel), var(--panel2)); overflow: hidden; }
#avatarPreview { display: block; width: 100%; height: auto; aspect-ratio: 260 / 300; }
.avatar-preview-copy { padding: 0 16px 16px; text-align: center; }
.avatar-eyebrow { font-size: 10px; font-weight: 800; letter-spacing: .12em; color: var(--rr-rose-ink); }
.avatar-preview-copy h3 { margin: 5px 0; font-size: 18px; }
.avatar-preview-copy p { font-size: 12px; color: var(--muted); line-height: 1.5; min-height: 36px; margin: 0 0 12px; }
.avatar-turn { display: flex; gap: 6px; justify-content: center; }
.avatar-turn .btn { padding: 8px 11px; }
.avatar-hint { font-size: 12px; line-height: 1.6; color: var(--muted); margin: 4px 0 10px; }
.avatar-preset-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 12px 0 20px; }
.avatar-preset, .avatar-style { display: flex; flex-direction: column; align-items: center; justify-content: space-between; min-width: 0; padding: 6px; border-radius: 14px; }
.avatar-preset canvas, .avatar-style canvas { width: 100%; height: auto; display: block; }
.avatar-preset span, .avatar-style span { text-align: center; font-size: 11px; line-height: 1.4; padding: 4px 0; }
.avatar-preset[aria-pressed="true"], .avatar-style[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--rose); }
.avatar-style-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.avatar-done { margin-top: 14px; }
.avatar-sheet .sw:disabled { opacity: .35; cursor: default; }
@media (max-width: 640px) {
  #sheet.avatar-sheet { width: 100%; height: calc(100dvh - 12px - env(safe-area-inset-top, 0px)); }
  .avatar-sheet .grab { margin-bottom: 10px; }
  .avatar-sheet .sub { margin-bottom: 10px; font-size: 12px; }
  .avatar-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 12px; }
  .avatar-preview { display: flex; align-items: center; }
  #avatarPreview { width: 116px; flex: none; }
  .avatar-preview-copy { flex: 1; min-width: 0; padding: 10px 10px 10px 0; }
  .avatar-preview-copy h3 { font-size: 16px; }
  .avatar-preview-copy p { min-height: 0; margin-bottom: 8px; font-size: 11px; }
  .avatar-turn { gap: 4px; }
  .avatar-turn .btn { padding: 6px 8px; }
  .avatar-preset-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .avatar-style-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .avatar-controls { padding-right: 4px; }
}
@media (max-width: 359px) {
  #avatarPreview { width: 98px; }
  .avatar-preview-copy { padding-right: 6px; }
  .avatar-style-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.card { border-radius: 22px; }
.card::before { border-radius: 16px; }
.card small { color: #5e5270; }
.card input, textarea, input[type="text"], select { min-height: 46px; }
.linkbox { align-items: stretch; min-width: 0; }
.linkbox input { min-width: 0; }
.amts { gap: 8px; }
.amt { padding: 11px 4px; }
.cam { min-width: 0; padding: 12px; gap: 12px; }
.cam span, .cam small { min-width: 0; overflow-wrap: anywhere; }
.pair { padding: 14px; border-radius: 18px; }
.pair > div { min-width: 0; }
.saldo { flex-wrap: wrap; gap: 12px; padding: 14px; border-radius: 18px; }
.saldo > div { min-width: 90px; }
.qris { grid-template-columns: 120px minmax(0, 1fr); }
.revrow > div { min-width: 0; }
.revrow strong { font-size: 13px; }
.toast { line-height: 1.5; }

/* The room is the workspace; tools open over it instead of below it. */
body.room-experience { height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; overflow: hidden; }
.room-experience .top { position: relative; top: 0; flex: none; }
.room-experience .layout { display: block; flex: 1; min-height: 0; width: 100%; max-width: none; padding: 12px 20px 20px; }
.room-experience .stage-col, .room-experience .stage { height: 100%; min-height: 0; }
.room-experience .stage { border-radius: 28px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 12px 14px 16px; }
.room-experience .panel-col { position: static; top: auto; max-height: none; padding: 0; border: 0; background: transparent; overflow: visible; }
.rr-icon { width: 24px; height: 24px; display: inline-block; vertical-align: middle; flex: none; }
.e > .rr-icon { width: 36px; height: 36px; color: var(--rr-rose-ink); }
.room > .rr-icon, .spot > .rr-icon { width: 19px; height: 19px; }
.qlist .rr-icon { width: 16px; height: 16px; }
.invitation-art { display: block; width: 160px; height: 100px; object-fit: contain; margin: 6px auto 0; }
.world-menu-intro { display: flex; justify-content: center; align-items: center; gap: 20px; margin: 2px 0 20px; border-radius: 20px; background: var(--panel2); padding: 10px; }
.world-menu-intro img { width: 140px; height: 88px; object-fit: contain; }
.world-menu-intro p { font-family: var(--display); font-size: 20px; line-height: 1.5; }
.world-menu-intro b { font-weight: 400; color: var(--rr-rose-ink); }
[data-ui-icon] { display: inline-flex; align-items: center; justify-content: center; flex: none; }
.world-dock { position: relative; align-self: center; flex: none; z-index: 4; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; width: min(440px, 100%); padding: 8px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 24px; background: rgba(27, 18, 40, .9); color: #fff; box-shadow: 0 12px 35px rgba(12, 5, 24, .25); }
.world-dock button { min-width: 0; border: 0; border-radius: 16px; background: transparent; color: inherit; padding: 8px 2px; display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; }
.world-dock button > span:last-child { min-width: 0; max-width: 100%; overflow-wrap: anywhere; line-height: 1.35; text-align: center; }
.world-dock button:hover { background: rgba(255, 255, 255, .12); }
.world-dock button:focus-visible { outline-color: #f5b8d0; outline-offset: -2px; }
.world-dock .rr-icon { width: 25px; height: 25px; }
.world-save { position: absolute; left: 14px; bottom: 18px; z-index: 3; display: flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 14px; background: rgba(27, 18, 40, .9); color: #e9e0ef; font-size: 11px; }
.world-save .rr-icon { width: 17px; height: 17px; }
.world-save.warning { color: #ffe7aa; border-color: #d9ad59; }
.room-experience .hud-bot { position: static; z-index: 3; flex: none; width: 100%; align-items: center; }
.room-experience .hud-bot > * { max-width: min(600px, 100%); }
.room-experience .bar { width: auto; max-width: 100%; }
.bar:not(.chat-expanded) .say, .bar:not(.chat-expanded) .sendb { display: none; }
.chat-toggle { border: 0; border-radius: 10px; background: rgba(255, 255, 255, .1); color: #fff; display: inline-flex; align-items: center; gap: 6px; padding: 8px 11px; font-size: 12px; }
.bar.chat-expanded { width: min(600px, 100%); }
.bar.chat-expanded #emos, .bar.chat-expanded #actBtn { display: none !important; }
.bar.chat-expanded .chat-toggle > span:last-child { display: none; }
.bar .say::placeholder { color: #ded3e9; }
.room-experience .camctl { top: auto; transform: none; flex-direction: row; bottom: 22px; right: 16px; }
.room-experience .camctl button { background: rgba(27, 18, 40, .9); color: #fff; border: 1px solid rgba(255, 255, 255, .22); }
.room-experience .sheet { display: flex; flex-direction: column; overflow: hidden; }
.sheet .grab { flex: none; }
.sheet #sheetBody { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 4px 2px; scroll-padding-block: 16px; }
.sheet .x { z-index: 3; }
#sheet.avatar-sheet #sheetBody { overflow: hidden; }
#sheet.dashboard-sheet { width: min(720px, calc(100% - 32px)); height: min(780px, calc(100dvh - 48px)); }
.dashboard-sheet .tabs { position: sticky; top: 0; z-index: 1; padding: 10px 0 12px; background: var(--panel); border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.dashboard-sheet .tp { padding: 2px; }
.dashboard-sheet .moments, .dashboard-sheet .spots { gap: 10px; }
.world-menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.world-menu-item { border: 1px solid var(--line); border-radius: 18px; background: var(--panel2); padding: 16px 12px; min-width: 0; display: flex; align-items: flex-start; gap: 10px; text-align: left; }
.world-menu-item > .rr-icon { width: 32px; height: 32px; color: var(--rr-rose-ink); }
.world-menu-item > span { min-width: 0; }
.world-menu-item b { font-size: 13px; display: block; line-height: 1.5; }
.world-menu-item small { font-size: 11px; display: block; line-height: 1.6; margin-top: 4px; }
.menu-arrow { color: var(--muted); margin-left: auto; }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .room-experience .sheet { background: color-mix(in srgb, var(--panel) 88%, transparent); backdrop-filter: blur(12px) saturate(115%); -webkit-backdrop-filter: blur(12px) saturate(115%); }
  .world-dock { background: rgba(27, 18, 40, .84); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
}
.room-experience .backdrop { background: rgba(13, 8, 22, .10); }
@media (max-width: 979px) {
  .room-experience .layout { padding: 6px 8px 8px; }
  .room-experience .stage { border-radius: 22px; }
  .room-experience .hud-top { left: 10px; right: 10px; top: 10px; }
  .world-save { bottom: 176px; left: 10px; font-size: 10px; min-height: 44px; padding: 4px 8px; }
  .room-experience .camctl { right: 10px; bottom: 176px; gap: 4px; }
  .room-experience .camctl button { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
}
@media (max-width: 640px) {
  #sheet.dashboard-sheet { width: 100%; height: calc(100dvh - 12px - env(safe-area-inset-top, 0px)); }
  .world-menu-grid { grid-template-columns: minmax(0, 1fr); }
  .world-dock { gap: 2px; padding: 7px; border-radius: 20px; }
  .world-dock button { font-size: 10px; padding: 7px 0; }
  .world-dock .rr-icon { width: 23px; height: 23px; }
  .room-experience .hud-bot { bottom: 98px; left: 10px; right: 10px; }
  .room-experience .hudpills .pill { font-size: 11px; padding: 6px 8px; }
  .room-experience .hudpills .rr-icon { width: 18px; height: 18px; }
  .room-experience #venueBtn { max-width: 110px; overflow: hidden; }
  .room-experience .world-save { bottom: 164px; }
  .room-experience .camctl { bottom: 164px; }
}

@media (min-width: 980px) {
  .layout { padding: 20px; }
  .stage { border-radius: 24px; }
  .panel-col {
    top: calc(86px + env(safe-area-inset-top, 0px));
    max-height: calc(100vh - 106px - env(safe-area-inset-top, 0px));
    max-height: calc(100dvh - 106px - env(safe-area-inset-top, 0px));
    padding: 16px 18px 24px;
    background: var(--panel2);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--rr-shadow);
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
  }
}

@media (hover: hover) and (pointer: fine) {
  .spotc:hover, .moment:hover, .gift:hover, .venue:hover,
  .tab:not([aria-selected="true"]):hover, .chip:not([aria-pressed="true"]):hover {
    border-color: var(--rose);
    box-shadow: var(--rr-shadow);
  }
  .btn.ghost:hover, .evbtn:hover { background: var(--panel2); }
  .card .btn.ghost:hover { background: rgba(255, 255, 255, .5); }
}

@media (max-width: 979px) {
  .stage { height: clamp(500px, 68svh, 660px); }
  .panel-col { max-width: 720px; width: 100%; margin-inline: auto; }
  .tabs { padding-top: 2px; }
}

@media (max-width: 520px) {
  .top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand event" "demo event";
    gap: 2px 10px;
    padding: 9px 12px;
  }
  .brand { grid-area: brand; font-size: 20px; }
  .demo-label { grid-area: demo; justify-self: start; margin-left: 30px; padding: 2px 7px; font-size: 10px; }
  .evbtn { grid-area: event; max-width: 158px; padding: 9px 12px; font-size: 12px; }
  .stage { height: clamp(540px, 72svh, 680px); }
  .panel-col { padding: 18px 14px 28px; }
  .tabs { gap: 7px; }
  .tab { padding-inline: 13px; }
  .hud-top { left: 10px; right: 10px; top: 10px; gap: 8px; }
  .hudcol { max-width: calc(100% - 126px); gap: 6px; }
  .rightcol { max-width: 118px; }
  .rightcol .live { justify-content: flex-end; flex-wrap: wrap; gap: 5px; }
  .hudpills { gap: 5px; }
  .hudpills .pill { padding: 8px; font-size: 11.5px; max-width: 100%; }
  #venueBtn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .rooms .room { padding-inline: 10px; font-size: 11.5px; max-width: 170px; }
  .camctl { right: 8px; }
  .hud-bot { left: 8px; right: 8px; gap: 7px; }
  .bar .emo { width: 44px; height: 44px; font-size: 18px; }
  .acts button { padding: 9px 12px; }
  .acts { scroll-padding-inline: 2px; padding-block: 2px; }
  .mc { font-size: 12px; padding: 8px; }
  .editbar { left: 8px; right: 8px; top: 10px; flex-wrap: wrap; }
  .editbar .et { flex: 1; }
  #editRooms { order: 3; flex-basis: 100%; }
  .editbar .btn { padding-inline: 12px; }
  .edittray { left: 8px; right: 8px; bottom: 8px; }
  .sheet {
    width: 100%;
    bottom: 0;
    max-height: calc(100vh - 12px - env(safe-area-inset-top, 0px));
    max-height: calc(100dvh - 12px - env(safe-area-inset-top, 0px));
    padding: 12px 18px calc(24px + env(safe-area-inset-bottom, 0px));
    border-radius: 24px 24px 0 0;
    border-bottom: 0;
  }
  .sheet.short { max-height: calc(100dvh - 12px - env(safe-area-inset-top, 0px)); }
  .venues { gap: 10px; }
  .spotc, .moment, .gift, .shopc, .venue { padding: 13px; }
  .plan { padding: 14px; }
  .qlist { grid-template-columns: 1fr; }
  .sec { gap: 8px; }
  .cam { align-items: flex-start; flex-direction: column; gap: 4px; }
  .revrow { gap: 8px; }
  .revrow strong { font-size: 12px; }
  .footlinks { gap: 2px 16px; }
}

@media (max-width: 379px) {
  .evbtn { max-width: 138px; }
  .brand { font-size: 18px; }
  .brand .brand-mark { width: 20px; height: 27px; }
  #emos button:nth-child(n + 3) { display: none; }
  .rundown li { grid-template-columns: 43px minmax(0, 1fr) auto; gap: 6px; }
  .rundown .btn { padding-inline: 8px; font-size: 11.5px; }
  .qris { grid-template-columns: 90px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .qris .qr { width: 90px; height: 90px; }
  .amts { gap: 5px; }
  .amt { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  button, .btn, .filebtn { transition: none; }
}

@media (forced-colors: active) {
  .tab[aria-selected="true"], .chip[aria-pressed="true"],
  .venue[aria-pressed="true"], .room[aria-pressed="true"] { outline: 2px solid Highlight; outline-offset: -3px; }
  button:focus-visible, a:focus-visible, input:focus-visible,
  textarea:focus-visible, select:focus-visible { outline-color: Highlight; }
}

/* Toasts leave all room actions readable. Short viewports keep avatar styles usable. */
.room-experience .toast { top: auto; bottom: calc(240px + env(safe-area-inset-bottom, 0px)); }
.editbar .et b, .addc { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.addc small { flex-basis: 100%; }
@media (max-height: 560px) and (min-width: 641px) {
  #sheet.avatar-sheet { height: calc(100dvh - 16px); }
  .avatar-sheet .grab { margin-bottom: 6px; }
  .avatar-sheet h2 { font-size: 21px; margin-bottom: 4px; }
  .avatar-sheet .sub { margin-bottom: 8px; font-size: 12px; }
  .avatar-layout { grid-template-columns: 150px minmax(0, 1fr); gap: 16px; }
  .avatar-preview { height: 100%; display: flex; flex-direction: column; }
  #avatarPreview { flex: 1; min-height: 0; width: auto; max-width: 100%; object-fit: contain; }
  .avatar-preview-copy { padding: 0 6px 6px; flex: none; }
  .avatar-eyebrow, .avatar-preview-copy p { display: none; }
  .avatar-preview-copy h3 { font-size: 13px; margin: 3px 0; }
  .avatar-turn { gap: 4px; }
  .avatar-turn .btn { padding: 4px 6px; min-height: 36px; }
  .avatar-done { margin-top: 8px; }
}
.stage.editing .world-dock, .stage.editing .world-save, .stage.editing .camctl { display: none; }
@media (max-height: 560px) and (min-width: 641px) {
  .room-experience .hud-top #rooms, .room-experience .hud-top .meter, .room-experience #onlineN { display: none; }
  .room-experience .world-save { bottom: 22px; left: 14px; }
  .room-experience .camctl { bottom: 22px; right: 14px; }
  .room-experience .toast { top: 8px; bottom: auto; max-width: 250px; padding: 6px 12px; font-size: 11px; }
}

.bar .emo { color: #fff; }
.bar .emo .rr-icon-accent { stroke: #e5be77; }
.tl .rx .rr-icon { width: 17px; height: 17px; }

/* Text keeps its full line; scene labels share a collision-aware layout. */
.bub { max-width: min(188px, calc(100% - 24px)); padding: 5px 9px; font-size: 11.5px; line-height: 1.35; border-radius: 12px; background: rgba(255, 252, 248, .94); box-shadow: 0 6px 18px rgba(15, 10, 24, .18); overflow-wrap: anywhere; }
.bub.me { background: rgba(255, 242, 205, .96); color: #1e1633; }
.name { max-width: min(164px, calc(100% - 12px)); white-space: normal; overflow-wrap: anywhere; text-align: center; font-size: 10.5px; line-height: 1.3; padding: 2px 7px; border-radius: 999px; background: rgba(20, 15, 32, .72); }
.spot { max-width: min(176px, calc(100% - 24px)); white-space: normal; font-size: 11.5px; line-height: 1.32; padding: 5px 10px; }
.spot .t { min-width: 0; overflow-wrap: anywhere; }
.ctx { max-width: 100%; white-space: normal; overflow-wrap: anywhere; line-height: 1.5; }
#mcTxt { min-width: 0; overflow-wrap: anywhere; }
#mcWho, #mcGo { flex: none; }
.world-menu-item b, .world-menu-item small, .avatar-preview-copy p, .avatar-preset span { overflow-wrap: anywhere; }
.rooms .room { display: inline-flex; align-items: center; gap: 4px; white-space: normal; text-overflow: clip; overflow: visible; }
.room-label { min-width: 0; overflow-wrap: anywhere; }
.room-experience .toast { transform: translate(-50%, 0); transition: opacity .2s; }
.world-utility { display: contents; }
/* Discovery, personal albums, and comfort share the room's visual language. */
.story-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.story-actions .btn { min-height: 44px; }
.story-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 10px 0; font-size: 13px; font-weight: 700; }
.story-field input, .story-field select, .story-field textarea { min-height: 44px; width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--ink); padding: 12px; font: 14px/1.6 var(--sans); }
.story-field textarea { resize: vertical; }
.story-field input::placeholder, #exploreSearch::placeholder, #journalSearch::placeholder { color: var(--muted); opacity: 1; }
.story-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.story-error { color: var(--rr-rose-ink); font-size: 13px; line-height: 1.8; }
.story-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.story-card { display: flex; flex-direction: column; min-width: 0; padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); color: var(--ink); text-align: left; overflow: hidden; }
.story-card > img { width: 100%; height: 190px; object-fit: cover; }
.story-card > span { display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.story-card b, .story-card small { overflow-wrap: anywhere; }
.story-card small { color: var(--muted); line-height: 1.8; font-size: 13px; white-space: pre-wrap; }
.story-card time { color: var(--muted); font-size: 11px; line-height: 1.7; }
.story-symbol > .rr-icon { width: 32px; height: 32px; color: var(--rr-rose-ink); }
.story-empty { background: var(--panel2); border: 1px dashed var(--line); padding: 24px; border-radius: 18px; text-align: center; }
.story-empty > .rr-icon { width: 44px; height: 44px; color: var(--rr-rose-ink); }
.story-empty h3 { font: 24px/1.5 var(--display); }
.story-empty p { color: var(--muted); font-size: 13px; line-height: 1.9; }
.story-chapters { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 16px; }
.story-chapters .chip { min-height: 44px; background: var(--panel); color: var(--ink); border: 1px solid var(--line); overflow-wrap: anywhere; max-width: 100%; }
.story-chapters .chip[aria-pressed="true"] { background: var(--rose-soft); color: var(--rr-rose-ink); border-color: var(--rose); }
.story-year { display: grid; grid-template-columns: 65px minmax(0, 1fr); gap: 12px; position: relative; margin-bottom: 24px; }
.story-year > h3 { font: 22px/1.5 var(--display); color: var(--rr-rose-ink); margin: 12px 0; }
.story-year > div { border-left: 2px solid var(--line); padding-left: 16px; display: grid; gap: 12px; }
.story-year .story-card { flex-direction: row; align-items: center; }
.story-year .story-card > img { width: 100px; height: 120px; flex: none; }
.story-year .story-card > span { flex: 1; min-width: 0; }
.story-year .story-symbol { flex: none !important; }
.reader-story { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; color: var(--muted); line-height: 1.9; border-top: 1px solid var(--line); padding-top: 16px; }
.story-trash { display: grid; gap: 14px; }
.story-trash article { border: 1px solid var(--line); border-radius: 18px; padding: 18px; background: var(--panel); overflow-wrap: anywhere; }
.story-trash p, .story-trash small { color: var(--muted); font-size: 12px; line-height: 1.9; }
.story-undo { background: var(--rose-soft); color: var(--rr-rose-ink); padding: 16px; border-radius: 16px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.studio-agenda { margin-block: 24px; }
.studio-agenda-row { display: grid; grid-template-columns: 100px minmax(0, 1fr) auto; gap: 10px; align-items: end; margin-block: 8px; }
.studio-agenda-row > button { margin-block: 10px; min-height: 44px; }
.studio-preview { border: 1px solid var(--line); border-radius: 22px; background: var(--panel); padding: 22px; margin-block: 24px; text-align: center; overflow-wrap: anywhere; }
.studio-preview small { color: var(--muted); font-size: 12px; }
#studioPreview { border-radius: 16px; padding: 18px; margin-top: 14px; color: #66334D; background: #FFF4F7; }
#studioPreview[data-palette="sage"] { color: #285C40; background: #F0F7F1; }
#studioPreview[data-palette="gold"] { color: #76541D; background: #FBF7EF; }
#studioPreview[data-palette="plum"] { color: #633A79; background: #F6F0FA; }
.studio-preview h3 { font: 28px/1.4 var(--display); margin-block: 16px; }
.studio-preview p { font-size: 13px; line-height: 1.8; }
.guest-guide { list-style: none; margin: 20px 0; padding: 0; display: grid; gap: 14px; }
.guest-guide li { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.guest-guide h3 { font-size: 16px; margin: 0; }
.guest-guide p { color: var(--muted); font-size: 13px; line-height: 1.8; margin-block: 8px; }
.guest-guide .btn { min-height: 44px; }
.guide-number { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--rose-soft); color: var(--rr-rose-ink); font-size: 14px; font-weight: 700; }
.guide-state { display: block; color: var(--muted); font-size: 12px; margin-block: 8px; }
.guest-guide [data-done="true"] .guide-state { color: var(--rr-rose-ink); font-weight: 700; }
.guide-progress { color: var(--rr-rose-ink); font-size: 14px; font-weight: 700; }
.invitation-guide { margin-top: 12px; }
@media (max-width: 520px) {
  .story-form-grid { grid-template-columns: minmax(0, 1fr); }
  .story-gallery { grid-template-columns: minmax(0, 1fr); }
  .story-year { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .story-year .story-card { flex-direction: column; align-items: stretch; }
  .story-year .story-card > img { width: 100%; height: 170px; }
  .studio-agenda-row { grid-template-columns: minmax(0, 1fr); gap: 0; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
  .studio-agenda-row > button { justify-self: start; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.memory-edit-error { color: var(--rr-rose-ink); font-size: 13px; line-height: 1.7; }
#memoryEditText { width: 100%; min-height: 180px; resize: vertical; font: inherit; line-height: 1.8; padding: 14px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: var(--panel); }
#memoryEditText[aria-invalid="true"] { border-color: var(--rr-rose-ink); }
.explore-trigger { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); border-radius: 24px; padding: 8px 14px; background: var(--panel); color: var(--ink); flex: none; }
.explore-trigger .rr-icon { width: 21px; height: 21px; color: var(--rr-rose-ink); }
.explore-trigger kbd { font: 12px var(--sans); border: 1px solid var(--line); border-radius: 5px; padding: 0 6px; color: var(--muted); }
.field-label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
#journalSearch, #exploreSearch { display: block; width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--panel); color: var(--ink); font: inherit; }
.journal-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; }
.journal-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.journal-filters .chip { border: 1px solid var(--line); padding: 8px 13px; background: var(--panel); color: var(--ink); }
.journal-filters .chip[aria-pressed="true"] { background: var(--rose-soft); border-color: var(--rose); color: var(--rr-rose-ink); }
.journal-sort { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.journal-sort select, .comfort-field select { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--ink); font: inherit; padding: 10px; }
.journal-count { color: var(--muted); font-size: 12px; margin: 12px 0; line-height: 1.6; }
.journal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.journal-card { min-width: 0; padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); color: var(--ink); text-align: left; overflow: hidden; display: flex; flex-direction: column; }
.journal-card.photo > img { display: block; width: 100%; height: 175px; object-fit: cover; background: var(--panel2); }
.journal-card-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 16px; min-width: 0; }
.journal-card-body > b { overflow-wrap: anywhere; font-size: 14px; }
.journal-card-icon .rr-icon { width: 24px; height: 24px; color: var(--rr-rose-ink); }
.journal-excerpt { line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.journal-card time { font-size: 11px; color: var(--muted); line-height: 1.7; margin-top: auto; }
.journal-open { display: flex; align-items: center; justify-content: space-between; padding-top: 8px; font-size: 12px; font-weight: 700; color: var(--rr-rose-ink); }
.journal-empty { grid-column: 1 / -1; text-align: center; border: 1px dashed var(--line); background: var(--panel2); border-radius: 20px; padding: 28px 20px; }
.journal-empty > .rr-icon { width: 44px; height: 44px; color: var(--rr-rose-ink); }
.journal-empty h4 { font-family: var(--display); font-size: 22px; font-weight: 400; margin: 12px 0; line-height: 1.4; }
.journal-empty p { font-size: 13px; line-height: 1.8; color: var(--muted); margin: 0 0 16px; }
#journalExport { margin-top: 14px; }
.photo-import { margin-bottom: 20px; }
.photo-import small { display: block; color: var(--muted); font-size: 12px; line-height: 1.7; margin-top: 8px; }
#sheet.memory-reader-sheet { width: min(780px, calc(100% - 32px)); }
.reader-context, .reader-date, .reader-local { display: block; font-size: 12px; color: var(--muted); line-height: 1.8; overflow-wrap: anywhere; }
.reader-context { margin: 0 0 20px; }
.reader-content { border: 1px solid var(--line); border-radius: 22px; background: var(--panel); overflow: hidden; padding: 24px; }
.reader-photo { display: block; max-width: 100%; max-height: 55dvh; width: 100%; object-fit: contain; border-radius: 12px; }
.reader-quote { display: block; font: 72px/.7 var(--display); color: var(--rr-rose-ink); margin-top: 10px; }
.reader-message { white-space: pre-wrap; overflow-wrap: anywhere; font: 20px/1.9 var(--display); margin: 12px 0 24px; }
.reader-author { display: block; color: var(--rr-rose-ink); overflow-wrap: anywhere; }
.reader-date { margin-top: 16px; }
.reader-local { margin: 4px 0 16px; }
.reader-navigation { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.reader-navigation button:disabled { opacity: .45; cursor: default; }
.reader-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.reader-actions .btn { flex: 1 1 120px; min-width: min(120px, 100%); min-height: 44px; white-space: normal; overflow-wrap: anywhere; }
.journal-storage { margin: 0 0 12px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.journal-storage.warning { color: var(--rr-rose-ink); }
html[data-workspace] .journal-storage { display: none; }
@media (max-width: 760px) {
  .room-experience input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),
  .room-experience textarea, .room-experience select, #journalSearch, #exploreSearch { font-size: 16px; }
}
.explorer-filters { margin-top: 14px; }
.explore-results { display: flex; flex-direction: column; gap: 8px; }
.explore-result { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); color: var(--ink); text-align: left; padding: 14px; min-width: 0; }
.explore-result > .rr-icon { width: 28px; height: 28px; color: var(--rr-rose-ink); flex: none; }
.explore-result > span:not(.result-kind) { flex: 1; min-width: 0; }
.explore-result b, .explore-result small { display: block; overflow-wrap: anywhere; }
.explore-result b { font-size: 14px; line-height: 1.5; }
.explore-result small { font-size: 12px; line-height: 1.6; color: var(--muted); margin-top: 3px; }
.result-kind { flex: none; font-size: 10px; color: var(--rr-rose-ink); background: var(--rose-soft); padding: 3px 8px; border-radius: 20px; }
.explore-help { font-size: 11px; color: var(--muted); margin: 18px 0 4px; line-height: 1.7; }
.comfort-fields { border: 1px solid var(--line); background: var(--panel); border-radius: 20px; padding: 4px 18px; }
.comfort-field { display: grid; grid-template-columns: minmax(0, 1fr) minmax(140px, .65fr); align-items: center; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.comfort-field b, .comfort-mute b { display: block; font-size: 14px; }
.comfort-field small, .comfort-mute small { display: block; color: var(--muted); font-size: 12px; line-height: 1.8; margin-top: 4px; }
.comfort-mute { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 18px 0; cursor: pointer; }
.comfort-mute input { flex: none; width: 24px; accent-color: var(--rose); }
.comfort-status { font-size: 12px; color: var(--muted); line-height: 1.8; margin: 16px 0; }
@media (hover: hover) { .journal-card:hover, .explore-result:hover { border-color: var(--rose); background: var(--panel2); } }
:root[data-motion="reduce"] *, :root[data-motion="reduce"] *::before, :root[data-motion="reduce"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
:root[data-motion="reduce"] .flash { display: none; }
@media (max-width: 640px) {
  .room-experience .top { gap: 8px; padding-inline: 12px; }
  .explore-trigger { padding: 8px; width: 44px; height: 44px; border-radius: 50%; }
  .explore-label, .explore-trigger kbd { display: none; }
  .room-experience .evbtn { max-width: 38vw; padding-inline: 10px; }
  .comfort-field { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .comfort-field select { width: 100%; }
  #sheet.memory-reader-sheet { width: calc(100% - 16px); }
  .reader-content { padding: 18px; }
  .reader-message { font-size: 18px; }
  .journal-card-body { padding: 12px; }
  .journal-card.photo > img { height: 140px; }
  .result-kind { display: none; }
}
@media (max-width: 360px) { .journal-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) {
  .room-experience .top { display: flex; flex-wrap: wrap; gap: 2px 8px; }
  .room-experience .brand { font-size: 19px; flex: 1 0 auto; }
  .room-experience .demo-label { order: 3; }
  .explore-trigger { order: 1; flex: none; }
  .room-experience .evbtn { order: 2; }
  .room-experience .evbtn { max-width: min(34vw, 158px); }
}
.room-experience .hud-bot .world-save { left: 14px; bottom: 18px; }
.room-experience .hud-bot .camctl { right: 16px; bottom: 22px; }

/* Keep bottom tools in flow so growing dock labels reserve their own space. */
@media (max-width: 979px) {
  .room-experience .stage { padding: 10px 12px 12px; }
  .room-experience .world-utility { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; }
  .room-experience .hud-bot .world-save, .room-experience .hud-bot .camctl { position: static; transform: none; }
  .room-experience .hud-bot .world-save { flex: 0 1 auto; }
  .room-experience .hud-bot .camctl { flex: none; }
}
@media (max-width: 640px) and (min-height: 561px) {
  .room-experience .hud-top { position: relative; inset: auto; flex: none; width: 100%; margin-bottom: auto; z-index: 2; }
  .room-experience .hud-bot { flex: 0 1 auto; min-height: 44px; overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; scroll-padding-block: 8px; }
}

@media (max-width: 640px) {
  .room-experience .hud-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .room-experience .hudcol, .room-experience .rightcol { display: contents; }
  .room-experience .evtag { grid-column: 1 / -1; grid-row: 1; max-width: none; width: 100%; }
  .room-experience .evtag b { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.35; }
  .room-experience .evtag small { display: block; overflow-wrap: anywhere; line-height: 1.5; }
  .room-experience .hudpills { grid-column: 1; grid-row: 2; flex-wrap: wrap; gap: 4px; min-width: 0; }
  .room-experience .hudpills .pill { min-height: 44px; min-width: 44px; justify-content: center; padding: 6px; white-space: normal; overflow-wrap: anywhere; }
  .room-experience #venueBtn { max-width: none; }
  .room-experience #venueBtn .venue-name, .room-experience .meter, .room-experience #onlineN { display: none; }
  .room-experience .rightcol .live { grid-column: 2; grid-row: 2; flex-wrap: nowrap; align-items: center; }
  .room-experience .live .pill.red { min-height: 44px; font-size: 10px; padding-inline: 8px; }
  .room-experience #rooms { grid-column: 1 / -1; grid-row: 3; width: 100%; }
  .room-experience .rooms .room { min-height: 44px; max-width: 220px; }
  .room-experience .spot { min-height: 44px; padding: 7px 10px; max-width: 170px; }
  .room-experience .mc { align-items: center; }
  .room-experience #mcWho { display: none; }
  .room-experience .toast { overflow-wrap: anywhere; }
  .room-experience .world-utility { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; }
  .room-experience .hud-bot .world-save, .room-experience .hud-bot .camctl { position: static; transform: none; }
  .room-experience .hud-bot .world-save { flex: 0 1 auto; }
  .room-experience .hud-bot .camctl { flex: none; }
}
.workspace-bar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:14px 18px;background:#f7eef2;color:#463044;border:1px solid #d4b9c6;border-radius:14px;margin:10px 0}.workspace-bar>span{flex:1;min-width:min(220px,100%);font-size:13px;font-weight:600;line-height:1.6}.workspace-bar .btn{font-size:12px;min-height:44px}.workspace-bar.warning{background:#fff0ed;border-color:#bc655b}.workspace-note{font-size:12px;line-height:1.7;color:var(--ink);background:var(--panel);padding:7px 10px;border-radius:8px;max-width:900px}html[data-workspace] #openStudio{margin-top:8px}html[data-workspace="guest"] [data-editopen],html[data-workspace="preview"] [data-editopen]{display:none!important}@media(prefers-color-scheme:dark){.workspace-bar{background:#302133;color:#f5e9f3;border-color:#805d77}.workspace-bar.warning{background:#422527;color:#fbe7e4}}@media(max-width:540px){.workspace-bar .btn{flex:1}.workspace-bar>span{flex-basis:100%}}
