#viewer { font-family: var(--mono, 'Roboto Mono', ui-monospace, monospace); }
#layer-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
#viewer .v-btn {
  font: inherit; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 0; box-shadow: none; cursor: pointer;
  background: transparent; color: var(--ink); border: 1px solid var(--line);
}
#viewer .v-btn:hover { border-color: var(--ink); }
#viewer .v-btn.active { background: var(--accent); color: var(--accent-contrast, var(--paper)); border-color: var(--accent); }
#viewer .v-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#stage {
  position: relative; width: 100%; height: 70vh; min-height: 280px; overflow: hidden;
  background: #14161a; border: 1px solid var(--line); border-radius: 0; box-shadow: none;
  touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab;
}
#stage.drag { cursor: grabbing; }
#stage .vw { position: absolute; inset: 0; transform-origin: 0 0; will-change: transform; }
#stage .vw img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  -webkit-user-drag: none; pointer-events: none;
}
#stage .vw img[hidden], #stage .v-status[hidden] { display: none; }
#stage .v-status {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-size: 12px; letter-spacing: .12em; color: #c8ccd2; pointer-events: none;
}
#stage .v-tools { position: absolute; right: 8px; top: 8px; display: flex; gap: 4px; }
#stage .v-tools .v-btn { background: #14161a; color: #e6e8eb; border-color: #4a4f57; padding: 4px 10px; }
#stage .v-tools .v-btn:hover { border-color: #e6e8eb; }
