/* Scoped to the original premixed product; catalogue galleries keep their own layout. */
.pg-system-summary[hidden]{display:none!important}
.pg-system-summary{padding:14px 16px;margin:12px 0;border-left:3px solid #5d91ad;background:#eaf1f6;color:#3a586b;font-size:13px;line-height:1.8}
.pg-system-summary p{margin:0}
.pg-system-summary p+p{margin-top:6px;color:#667e8e}
.pg-system-summary strong{display:block;margin-bottom:4px;color:#22495f;font-size:15px}
.pg-system-summary span{display:block}
#pg-system-dialog .pg-system-summary{font-size:15px}
.premixed-system-gallery .gallery-tabs { grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; }
.premixed-system-gallery .gallery-tabs button { min-height:46px; padding:10px 4px; font-size:12px; line-height:1.5; }
.premixed-system-gallery .pg-system-enlarge[hidden] { display:none!important; }
.premixed-system-gallery .pg-system-enlarge { position:absolute; inset:0; z-index:1; display:block; width:100%; height:100%; margin:0; padding:0; border:0; background:transparent; cursor:zoom-in; }
.premixed-system-gallery .pg-system-enlarge > span { position:absolute; right:12px; bottom:12px; padding:7px 12px; border:1px solid #b4cad7; border-radius:4px; background:#f5fafff5; color:#245b7b; font-size:13px; line-height:1.5; }
.premixed-system-gallery .pg-system-enlarge:focus-visible { outline:3px solid #087bff; outline-offset:-5px; }
#pg-system-dialog { width:min(1480px,calc(100vw - 32px)); max-width:none; max-height:calc(100dvh - 32px); padding:0; border:1px solid #b6cbd7; border-radius:8px; color:#173b50; background:#f4f8fa; box-shadow:0 20px 80px #06182666; overflow:hidden; }
#pg-system-dialog::backdrop { background:#04121cdb; }
#pg-system-dialog .pg-dialog-header { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:13px 18px; border-bottom:1px solid #cedee8; background:#fff; }
#pg-system-dialog .pg-dialog-header h2 { margin:0; font-size:21px; line-height:1.5; letter-spacing:0; }
#pg-system-dialog .pg-dialog-close { min-width:70px; min-height:44px; padding:9px 15px; border:1px solid #9cb9ca; border-radius:4px; background:#fff; color:#214b65; font-size:15px; }
#pg-system-dialog .pg-dialog-note { margin:0; padding:10px 18px; color:#536e7e; background:#eff5f8; font-size:14px; line-height:1.7; }
#pg-system-dialog .pg-system-stage { overflow:auto; max-height:calc(100dvh - 180px); padding:16px; overscroll-behavior:contain; touch-action:pan-x pan-y pinch-zoom; }
#pg-system-dialog .pg-system-stage img { display:block; width:100%; min-width:0; max-width:none; height:auto; margin:0; background:#fff; }
#pg-system-dialog :is(button,[tabindex]):focus-visible { outline:3px solid #087bff; outline-offset:-3px; }
html.pg-system-open { overflow:hidden; }
@media (max-width:900px) { #pg-system-dialog .pg-system-stage img { min-width:1000px; } }
@media (max-width:640px) {
  .premixed-system-gallery .gallery-tabs { grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
  .premixed-system-gallery .gallery-tabs button { font-size:13px; white-space:normal; }
  #pg-system-dialog { width:calc(100vw - 16px); max-height:calc(100dvh - 16px); border-radius:5px; }
  #pg-system-dialog .pg-dialog-header { padding:10px 12px; gap:12px; }
  #pg-system-dialog .pg-dialog-header h2 { font-size:18px; }
  #pg-system-dialog .pg-dialog-note { padding:9px 12px; font-size:13px; }
  #pg-system-dialog .pg-system-stage { padding:10px; max-height:calc(100dvh - 180px); }
}
@media print { .pg-system-enlarge,#pg-system-dialog { display:none!important; } }
