/* Layout adapter: report has a fixed navigation rail, viewer keeps kit layout. */
body:not(.debug-full).debug-docked{display:block;overflow:hidden}
body:not(.debug-full) .debug-panel{position:fixed;right:0;left:auto;top:0;width:var(--debug-width);z-index:80;border-left:1px solid #424b58;border-right:0}
body:not(.debug-full).debug-docked .app-shell{margin-right:var(--debug-width);width:auto;overflow:auto;height:100dvh}
body:not(.debug-full).debug-docked .sidebar{z-index:20}
body:not(.debug-full) .debug-resize{left:0;right:auto}
.debug-panel p{line-height:1.6}.debug-panel thead{border:0;background:#292e38}.debug-panel td{color:inherit}.debug-panel .text-button{border:0;background:transparent}.debug-panel .debug-grid th{font-size:10px}.debug-panel h2{color:#d9e0e9}.debug-panel input[type=checkbox]{width:auto}
body:not(.debug-full)>.app-shell{width:auto}
#debug-open{position:fixed;right:18px;bottom:18px;z-index:60;font-size:10px;padding:8px 12px;background:#293441;color:#fff;border-color:#465362;box-shadow:0 3px 12px #0002}
@media(max-width:950px){body:not(.debug-full).debug-docked .app-shell{margin-right:0}body:not(.debug-full) .debug-panel{width:100%;height:58dvh;top:auto;bottom:0;border-left:0}body:not(.debug-full).debug-docked .app-shell{height:42dvh}.debug-docked .sidebar{max-height:42dvh;overflow:auto}.debug-resize{display:none}}
@media(max-width:650px){body:not(.debug-full).debug-docked .app-shell{height:30dvh}.debug-docked .sidebar{display:none}body:not(.debug-full) .debug-panel{height:70dvh}}
@media print{#debug-open,.debug-panel{display:none!important}body.debug-docked{display:block!important;overflow:visible!important}.debug-docked .app-shell{height:auto!important;margin-right:0!important}}

html:not([data-tools-unlocked="true"]) body:not(.debug-full) [data-debug-ui]{display:none!important}html:not([data-tools-unlocked="true"]) body.debug-full>:not(#debug-lock-message):not(script){display:none!important}html[data-tools-unlocked="true"] #debug-lock-message{display:none}#debug-lock-message{padding:28px;color:#dce7f4;font:16px/1.6 system-ui}
