/* Order/home library detail: fit the complete SVG and actions in the visible screen. */
.sl-dialog.sl-show-detail[open]{display:flex;flex-direction:column;gap:8px;overflow:hidden;padding:12px 16px;height:88dvh;max-height:92dvh}
.sl-show-detail .sl-head{position:static;flex:none;gap:8px;padding:0;min-height:44px}
.sl-show-detail .sl-head h2{font-size:21px;line-height:1.2;margin-right:auto;white-space:nowrap}
.sl-show-detail .sl-head .sl-detail-back405,.sl-show-detail .sl-head .sl-close{font-size:12px;min-height:44px;padding:8px 10px;white-space:nowrap}
.sl-show-detail .sl-detail{flex:1;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:8px;padding:0}
.sl-show-detail .sl-detail-info405{display:flex;align-items:baseline;gap:8px;min-width:0}
.sl-show-detail .sl-detail-info405 h3{margin:0;font-size:15px;line-height:1.4;overflow-wrap:anywhere}
.sl-show-detail .sl-detail-info405 small{font-size:11px;color:#617160}
.sl-show-detail .sl-detail-preview{width:100%;max-width:none;min-height:0;margin:0;display:flex;align-items:center;justify-content:center;background:transparent;overflow:hidden}
.sl-show-detail .sl-detail-preview svg{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}
.sl-show-detail .sl-detail-actions405{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:8px}
.sl-show-detail .sl-detail-actions405 button{width:100%;min-height:46px;margin:0;padding:10px 8px;font-size:14px;white-space:nowrap}
@media(max-width:480px){.sl-dialog.sl-show-detail[open]{height:100dvh;max-height:100dvh;padding-top:max(10px,env(safe-area-inset-top));padding-bottom:max(12px,env(safe-area-inset-bottom))}}
@media(max-width:350px){.sl-show-detail .sl-head h2{font-size:19px}.sl-show-detail .sl-head{gap:6px}.sl-show-detail .sl-head .sl-detail-back405,.sl-show-detail .sl-head .sl-close{padding:8px}.sl-show-detail .sl-detail-actions405 button{font-size:13px}}
