.tool-tray{position:fixed;inset:0;width:min(1100px,95vw);height:min(88dvh,960px);max-width:none;max-height:none;padding:0;margin:auto;background:#171c19;color:#edf1e8;border:1px solid #5c695f;border-radius:12px;overflow:hidden;box-shadow:0 16px 80px #0007}
.tool-tray[open]{display:grid;grid-template-rows:auto minmax(0,1fr)}
.tool-tray::backdrop{background:#080d0bb3}
.tray-bar{display:flex;align-items:center;justify-content:space-between;min-height:48px;padding:0 8px 0 18px;border-bottom:1px solid #455044;font:500 15px/1.2 system-ui;background:#171c19}
.tray-bar button{width:44px;height:44px;background:none;color:inherit;border:0;font:26px/1 system-ui;cursor:pointer}
.tool-tray iframe{width:100%;height:100%;border:0;background:#171c19}
html:has(.tool-tray[open]){overflow:hidden}
@media(max-width:650px){.tool-tray{inset:auto 0 0;width:100%;height:92dvh;margin:0;border-radius:14px 14px 0 0;padding-bottom:env(safe-area-inset-bottom)}}
