/* One canonical glass/case layer, also inside the native modal top layer.
   Positions and device proportions remain owned by device-geometry.js. */
body.ac-world-shell[data-dl-device] .dl-standby{z-index:10}
body.ac-world-shell[data-dl-device] .dl-glass{z-index:20}
body.ac-world-shell[data-dl-device] .dl-device-image{z-index:30}
body.ac-world-shell[data-dl-device] .dl-power{z-index:40}

/* The native host covers the viewport without drawing or dimming the casing.
   It must not transform/filter: its fixed physical children use document px. */
dialog.dl-modal-host{
 position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;
 margin:0;padding:0;border:0;background:transparent;color:inherit;overflow:visible;
 transform:none;filter:none;box-shadow:none;pointer-events:none;
}
dialog.dl-modal-host[open]{display:block}
dialog.dl-modal-host::backdrop{background:transparent;pointer-events:none}
.dl-modal-aperture{
 position:fixed;left:var(--dl-screen-x,0px);top:var(--dl-screen-y,0px);
 width:var(--dl-screen-width,100vw);height:var(--dl-screen-height,100dvh);
 border-radius:var(--dl-screen-radius,0px);overflow:hidden;z-index:0;
 background:#00000080;pointer-events:none;
}
body.ac-world-shell[data-dl-device] .dl-modal-aperture>.dl-modal-window.ac-dialog{
 position:absolute;inset:8px;width:min(440px,calc(100% - 16px));height:max-content;
 max-width:calc(100% - 16px);max-height:calc(100% - 16px);margin:auto;
 transform:none;overflow:auto;pointer-events:auto;font-size:13px;
}
body.ac-world-shell[data-dl-device] .dl-modal-window.ac-dialog>.ac-window-header{
 position:sticky;top:0;z-index:2;padding:7px 9px;gap:4px 6px;
}
body.ac-world-shell[data-dl-device] .dl-modal-window.ac-dialog>.ac-window-header h2{font-size:18px;line-height:1.2}
body.ac-world-shell[data-dl-device] .dl-modal-window.ac-dialog .ac-dialog__body{padding:3px 9px 9px;font-size:13px}
body.ac-world-shell[data-dl-device] .dl-modal-window.ac-dialog .ac-button{min-width:44px;min-height:44px;font-size:13px;padding:7px 10px}
@media(forced-colors:active){.dl-modal-aperture{background:Canvas}.dl-modal-window{border-color:CanvasText}}
