/* Repair34: CSS-fallback compositor repair. The accepted hardware, projection,
 * leaf dimensions, transitions and original form remain unchanged.
 * Chromium can hit-test an open form while failing to paint its backdrop-filter
 * subtree inside this preserved 3D stage after WebGL falls back. The authored
 * translucent gradients, borders and shadows still supply its glass surface. */
[data-duo-stage]:not([data-r25-renderer="active"]) > .tt-duo__panel > .tt-duo__panel-surface {
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}

/* Keyboard focus cannot make a physically rear-facing outer LCD readable.
 * The original renderer already supplies the current perspective-facing value;
 * keep it authoritative instead of the older unconditional focus override. */
[data-duo-stage][data-r25-renderer="active"] .tt-duo__outer-screen:focus-within {
  opacity:var(--r25-screen-readable,1);
}

/* The restored CSS inner faces sit at +.5px. These live stage-level surfaces
 * need their own explicit ordering in the same 3D context: CSS z-index alone
 * does not put them ahead of a positive-depth leaf. Restore the original r23 display +2px
 * and real form +3px order only in fallback. The active renderer keeps its
 * approved native coordinates and every physical leaf remains unchanged. */
[data-duo-stage]:not([data-r25-renderer="active"]) > .tt-duo__display {
  translate:0 0 2px;
}
[data-duo-stage]:not([data-r25-renderer="active"]) > .tt-duo__panel {
  translate:0 0 3px;
}
