.dock-strip {
  width: 100%;
  max-width: 44rem;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.dock-strip[hidden] { display: none; }
.dock-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-ui);
  font-size: .74rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  padding: .25rem .7rem;
  cursor: pointer;
}
.dock-chip:hover { border-color: var(--accent); }
.dock-chip-meta { color: var(--muted); }

/* Full-screen sheet over the session; Close returns to the room. It
   must paint above the dock (z-index 20), which follows it in the DOM
   and would otherwise float over the panel's transcript. */
.viewer-panel {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  background: var(--ground);
}
.viewer-panel[hidden] { display: none; }
/* A panel covers the dock, but not a decision the session is waiting on:
   an item's own conversation runs turns that ask too. While a panel is
   open the dock rises above it with only its pending interactions and
   sheets, and lets every other pointer through to the panel. A docked
   panel covers nothing, so the dock stays as it is. */
body:has(.viewer-panel:not([hidden], .docked)) .dock {
  z-index: 31;
  background: none;
  pointer-events: none;
}
body:has(.viewer-panel:not([hidden], .docked)) .dock > :not(#requests, #editing-panel, dialog) {
  display: none;
}
body:has(.viewer-panel:not([hidden], .docked)) .dock > dialog { pointer-events: auto; }
body:has(.viewer-panel:not([hidden], .docked)) #requests {
  position: relative;
  z-index: 31;
  pointer-events: auto;
}
#editing-panel { pointer-events: auto; }
.panel-note {
  margin: 0;
  font-size: .8rem;
  color: var(--muted);
}

#editing-body { flex: 1; min-height: 0; }
#editing-body iframe { width: 100%; height: 100%; border: 0; }
.editing-availability { padding: 8px 0; }
#editing-status { margin: 0 0 6px; color: var(--muted); font-size: .8rem; overflow-wrap: anywhere; }
#editing-panel { bottom: auto; height: 100dvh; }
