/* The ImGui canvas and the real elements inside it. */
.imgui-stage { position: relative; width: 100%; max-width: 560px; border-radius: 10px; overflow: hidden; background: #17191f; }
/* touch-action none: ImGui scrolls and drags its own windows with the pointer. */
.imgui-stage canvas { display: block; width: 100%; height: 560px; outline: none; touch-action: none; }
/* #region widget-css */
/* Every DOM element sits at the canvas origin. ImGui decides where it is drawn. */
.imgui-stage [data-imgui] {
  position: absolute; left: 0; top: 0; margin: 0; box-sizing: border-box;
  font: 15px/1.35 system-ui, sans-serif; color: #e6e6e6; color-scheme: dark;
}
.imgui-stage input[data-imgui], .imgui-stage select[data-imgui], .imgui-stage textarea[data-imgui] {
  font-size: 16px; background: #0f1014; border: 1px solid #5a5f6e; border-radius: 4px; padding: 6px 8px; min-height: 34px; resize: none;
}
.imgui-stage [data-imgui]:focus-visible { outline: 2px solid #5aa9ff; outline-offset: -2px; }
.imgui-stage p[data-imgui] { padding: 2px 0; }
.imgui-stage p[data-imgui] a { color: #7ab8ff; }
/* #endregion widget-css */
.stage-msg { position: absolute; inset: 0; margin: 0; padding: 16px; display: flex; align-items: center; justify-content: center; text-align: center; color: #d5d7de; background: #17191f; font-size: 15px; }
.stage-msg[hidden] { display: none; }
