/* The ImGui canvas, the real elements inside it, and the page's controls. */
.occ-stage { position: relative; width: 100%; max-width: 560px; height: 510px; border-radius: 10px; overflow: hidden; background: #17191f; }
/* touch-action none: ImGui drags its own windows with the pointer. */
.occ-stage canvas#occlusion-app { display: block; width: 100%; height: 510px; outline: none; touch-action: none; }
/* #region widget-css */
/* Every DOM element sits at the canvas origin. ImGui decides where it is drawn. */
.occ-stage [data-occ] {
  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;
}
.occ-stage input[data-occ], .occ-stage select[data-occ], .occ-stage textarea[data-occ] {
  font-size: 16px; background: #1c2b4a; border: 1px solid #6f86b8; border-radius: 4px; padding: 6px 8px; min-height: 36px; resize: none;
}
.occ-stage [data-occ]:focus-visible { outline: 2px solid #5aa9ff; outline-offset: -2px; }
.occ-stage p[data-occ] { padding: 4px 8px; background: #1c2b4a; }
.occ-stage p[data-occ] a { color: #8fc2ff; }
/* A blocker: an empty element with no paint. Its hit box is scaled to an ImGui window's rectangle. */
.occ-stage [data-occ-blocker] { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; touch-action: none; }
/* #endregion widget-css */
/* Route 8: a plain element above the canvas, not inside it. */
.occ-stage [data-occ-overlay] { position: absolute; touch-action: none; }
.occ-stage [data-occ-overlay][hidden] { display: none; }
.occ-stage #outline { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.occ-stage #outline[hidden] { display: none; }
.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; }

.occ-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; max-width: 560px; }
.occ-controls label { font-size: 14px; }
.occ-controls select { font-size: 16px; min-height: 44px; max-width: 100%; }
.occ-controls button { font-size: 15px; min-height: 44px; padding: 0 12px; }
.occ-controls .check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.occ-controls .check input { width: 22px; height: 22px; }
table.occ-numbers { width: 100%; max-width: 560px; border-collapse: collapse; font-size: 13px; table-layout: fixed; font-variant-numeric: tabular-nums; }
table.occ-numbers th, table.occ-numbers td { text-align: right; padding: 6px 4px; border-bottom: 1px solid var(--line, #ccc); height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
table.occ-numbers th { font-weight: 600; white-space: normal; vertical-align: bottom; height: 40px; }
table.occ-numbers th:first-child, table.occ-numbers td:first-child { text-align: left; width: 20%; }
table.occ-numbers tr.bad td.n-bad { color: #b3261e; font-weight: 600; }
#cost { min-height: 7.5em; max-width: 560px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: -1px; }
