/* Isolated gallery and top-layer viewer. Does not resize the dashboard grid. */
.dsp-gallery{border-top:1px solid #78632f;margin-top:20px;padding-top:8px}.dsp-gallery h4{margin:8px 0}.dsp-gallery [role=status]{font-size:14px;line-height:1.45;color:#e0ce9e}
.dsp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;margin-top:12px}.dsp-card{min-width:0;border:1px solid #61522f;padding:8px;background:#191919}.dsp-card small{display:block;color:#c3b79e;margin-top:6px;font-size:12px}
.dsp-button{border:1px solid #8b7132;background:#222;color:#ebd394;font:600 14px/1.35 Arial,Helvetica,sans-serif;padding:9px 12px;cursor:pointer;border-radius:3px;min-height:38px}.dsp-button:hover{background:#3a3221}.dsp-button:focus-visible{outline:2px solid #efca67;outline-offset:2px}.dsp-button:disabled{opacity:.45;cursor:default}
.dsp-card-button{display:flex;flex-direction:column;gap:8px;padding:0;border:0;width:100%;background:transparent;text-align:left}.dsp-card-button img{width:100%;height:120px;object-fit:contain;background:#080808}.dsp-card-button span{overflow-wrap:anywhere;width:100%}
.dsp-dialog{box-sizing:border-box;color:#eee;background:#111;border:1px solid #d4a532;border-radius:5px;width:calc(100vw - 32px);height:calc(100dvh - 32px);max-width:1800px;max-height:none;padding:18px;overflow:hidden;box-shadow:0 18px 60px #0009;font:15px/1.45 Arial,Helvetica,sans-serif}
.dsp-dialog[open]{display:flex;flex-direction:column}.dsp-dialog::backdrop{background:#000d}.dsp-dialog h2{font-size:18px;margin:0 0 12px;overflow-wrap:anywhere;max-height:70px;overflow:auto;color:#e5c365}
.dsp-toolbar{display:flex;flex-wrap:wrap;gap:8px;flex-shrink:0}.dsp-info{margin:10px 0;color:#cdc4af;min-height:22px;font-size:13px}.dsp-stage{background:#050505;border:1px solid #3d372b;flex:1;min-height:80px;overflow:auto;padding:12px;overscroll-behavior:contain}.dsp-stage img{display:block;margin:auto;object-fit:contain}
@media(max-width:600px){.dsp-dialog{padding:10px;width:calc(100vw - 12px);height:calc(100dvh - 12px)}.dsp-toolbar{gap:5px}.dsp-button{font-size:12px;padding:7px 9px}.dsp-dialog h2{font-size:16px}.dsp-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
