/* A small labelled tab, not another room surface. Its list fits between the
   pan arrows and below the site navigation even in short phone landscapes. */
.room-object-index {
  position:fixed;
  z-index:110;
  right:max(64px,calc(60px + env(safe-area-inset-right)));
  bottom:max(12px,env(safe-area-inset-bottom));
  display:flex;
  flex-direction:column-reverse;
  align-items:flex-end;
  gap:6px;
}
.room-object-index[hidden] { display:none; }
.room-object-index-toggle {
  min-width:78px;
  min-height:44px;
  padding:6px 14px;
  border:1px solid #fff4df6b;
  border-radius:22px;
  background:linear-gradient(#49382ce8,#281e18ed);
  color:#fff8e9;
  box-shadow:inset 0 1px #fff4df25,0 2px 10px #17110e80;
  font:18px/1 var(--hand);
  cursor:pointer;
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}
.room-object-index-toggle:hover,.room-object-index-toggle[aria-expanded="true"] { background:linear-gradient(#594331f2,#36251af2); }
.room-object-index-list {
  box-sizing:border-box;
  width:min(218px,calc(100vw - 128px));
  max-height:min(360px,42svh,calc(100svh - 172px - env(safe-area-inset-top) - env(safe-area-inset-bottom)));
  overflow:auto;
  overscroll-behavior:contain;
  margin:0;
  padding:5px;
  list-style:none;
  border:1px solid #bd9d766e;
  border-radius:9px;
  background:linear-gradient(135deg,#f7ecd7,#e4d4b8);
  box-shadow:inset 0 1px #fff9eb,0 6px 20px #17100bc7;
  scrollbar-color:#9c876b transparent;
}
.room-object-index-list[hidden] { display:none; }
.room-object-index-list li { margin:0; padding:0; }
.room-object-index-list button {
  display:block;
  width:100%;
  min-height:44px;
  padding:6px 10px;
  border:0;
  border-radius:4px;
  background:transparent;
  color:#35271e;
  font:18px/1.1 var(--hand);
  text-align:left;
  cursor:pointer;
}
.room-object-index-list button:hover,.room-object-index-list button:focus-visible { background:#92795a2a; }
.room-object-index :is(button):focus-visible { outline:2px solid #9b6230; outline-offset:-2px; }
.room-object-index-toggle:focus-visible { outline:2px solid #ffe5a8; outline-offset:3px; }
/* Never sit on top of another surface, its Back control, or the music dock. */
.room-view:has(dialog[open],.notebook.is-open,.room-almanac.is-open,.room-poster-sheet.is-open,.portfolio-surface.is-open,.yearbook-overlay.is-open,[role="dialog"].is-open,.is-open [role="dialog"],#music-dock:not([hidden]),.room-drawer.is-open) .room-object-index { display:none; }
@media(prefers-reduced-motion:reduce) {
  .room-object-index-toggle,.room-object-index-list button { transition:none; }
}
