/* EDITOR LAYOUT (Simon, 17 Nov 2026: "We need it so the editor default layout has the gallery dock to the left of the
   main viewer."). The Editor's gallery folded to a strip beside the viewer (html.ev-galmin, js/edit-layout.js; its
   column is var(--ev-galmin-w) in js/panelarrange.js's grid), the strip's "Gallery" button that opens it, and the fold
   button an open gallery wears at its top right. */
html.ev-on { --ev-galmin-w: 30px; }
/* Folded: the gallery's own contents are out of sight (its scroll and its filters are kept for when it opens), and its
   seam has nothing to size. */
html.ev-on.ev-galmin #gallery-pane { overflow: hidden !important; }
html.ev-on.ev-galmin #gallery-pane > * { visibility: hidden !important; }
html.ev-on.ev-galmin #nle-grip-gal { display: none !important; }

.evl-galopen {
  position: fixed; z-index: 30; display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: 10px; padding: 12px 0 0; margin: 0; box-sizing: border-box;
  border: 0; border-right: 1px solid var(--border, #2a2a33); border-radius: 0;
  background: var(--card, #17171d); color: var(--muted, #a3a3b2); cursor: pointer;
  font: 600 10.5px/1 system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase;
}
.evl-galopen span { writing-mode: vertical-rl; transform: rotate(180deg); }
.evl-galopen:hover, .evl-galopen:focus-visible { background: var(--card-hover, #1f1f27); color: var(--text, #e8e8ee); outline: none; }
.evl-galopen:focus-visible { box-shadow: inset 0 0 0 2px var(--accent, #5af); }

.evl-galfold {
  position: fixed; z-index: 30; width: 20px; height: 17px; padding: 0; margin: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--muted, #a3a3b2); cursor: pointer;
}
.evl-galfold:hover, .evl-galfold:focus-visible { color: var(--text, #e8e8ee); border-color: var(--border, #2a2a33); background: var(--card-hover, #1f1f27); outline: none; }
/* Not over a room that covers the window, nor outside the Editor. */
html:not(.ev-on) .evl-galopen, html:not(.ev-on) .evl-galfold { display: none !important; }
