/* The ImGui canvas and the undrawn nodes inside it. */
.aria-stage { position: relative; width: 100%; max-width: 560px; border-radius: 10px; overflow: hidden; background: #17191f; }
/* touch-action none: ImGui scrolls its own window with the pointer. */
.aria-stage canvas { display: block; width: 100%; height: 420px; outline: none; touch-action: none; }
/* #region node-css */
/* Every node sits at the canvas origin with the size of its widget. ImGui decides where it goes.
   The nodes are never drawn, so most of this only shapes the layout box. */
.aria-stage [data-aria] {
  position: absolute; left: 0; top: 0; margin: 0; padding: 0; border: 0; box-sizing: border-box;
  appearance: none; background: transparent; outline: none; overflow: hidden; touch-action: none;
  font: 15px/1.2 ui-monospace, monospace; color: #fff;
}
/* The text node is the one that can be drawn (while it has focus, when the page asks for it),
   so it is styled to sit on ImGui's frame: same padding, clear background. */
.aria-stage input[data-aria="textbox"] { padding: 0 8px; caret-color: #fff; color-scheme: dark; touch-action: auto; }
.aria-stage input[data-aria="textbox"]::selection { background: rgba(66, 150, 250, .6); }
/* #endregion node-css */
/* The outlines of the nodes, drawn from getBoundingClientRect() by the page. */
.aria-outline { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.aria-outline[hidden] { display: none; }
.aria-outline div { position: absolute; box-sizing: border-box; border: 2px solid #ffd23f; border-radius: 3px; }
.aria-outline div.focus { border-color: #ff5ad1; }
.aria-outline span { position: absolute; left: 100%; top: 50%; translate: 2px -50%; padding: 0 3px; font: 10px/13px system-ui, sans-serif; color: #111; background: #ffd23f; white-space: nowrap; }
.aria-outline div.inside span { left: auto; right: 0; top: 0; translate: none; }
.aria-outline div.focus span { background: #ff5ad1; }
.aria-controls { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0; }
.aria-controls label { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.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; }
