/* Scripts page: contain filter chips, card actions and grids at every viewport. */
#view-scripts,
#view-scripts * { box-sizing: border-box; }
#view-scripts { width: 100%; min-width: 0; overflow-x: clip; }
#view-scripts .page-head .wrap,
#view-scripts > .wrap { width: min(1200px, calc(100% - 48px)); max-width: 100%; min-width: 0; margin-inline: auto; }
#view-scripts .chips,
#view-scripts #catChips,
#view-scripts #chips { display: flex !important; flex-wrap: wrap !important; align-items: center; gap: 8px !important; width: 100%; max-width: 100%; min-width: 0; margin-inline: 0 !important; padding-inline: 0 !important; overflow: visible !important; }
#view-scripts .chip { flex: 0 1 auto !important; max-width: 100%; white-space: normal; }
#view-scripts #cards { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; justify-items: stretch !important; align-items: stretch; width: min(100%, 780px); max-width: 100%; min-width: 0; margin: 0 auto; }
#view-scripts #cards > *,
#view-scripts .sc { width: 100%; max-width: 100%; min-width: 0; }
#view-scripts .sc-top,
#view-scripts .sc-foot,
#view-scripts .sc-meta,
#view-scripts .sc-by { min-width: 0; max-width: 100%; }
#view-scripts .sc-foot { flex-wrap: wrap; justify-content: flex-start; }
#view-scripts .sc-by { flex: 1 1 150px; }
#view-scripts .sc-meta { display: flex; flex: 1 1 100%; flex-wrap: wrap; justify-content: flex-start; width: 100%; }
#view-scripts .sc-meta > * { flex: 0 0 auto; }
#view-scripts .sc-meta svg { display: block; width: 17px; height: 17px; max-width: 100%; }
#view-scripts .sc-meta .sc-ic { width: 40px; height: 40px; }
#view-scripts .sc-meta .sc-ic svg { width: 19px; height: 19px; }
#view-scripts .sc-bin { min-width: 0; max-width: 100%; }
#view-scripts .sc-bin > svg,
#view-scripts .sc-bin > img { flex: 0 0 48px; width: 48px; height: 48px; max-width: 48px; object-fit: cover; }
#view-scripts .sc-bin > span { min-width: 0; flex: 1 1 0; overflow: hidden; }
#view-scripts .sc-bin b,
#view-scripts .sc-bin small { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#view-scripts .sc-bin > span { flex: 1 1 0; overflow: hidden; }
/* Give the posted file artwork a stable square size and restore deliberate text spacing. */
#view-scripts .sc { gap: 9px; padding: 18px; }
#view-scripts .sc-title { margin: 3px 0 0; font-size: 1.12rem; line-height: 1.25; }
#view-scripts .sc-desc { min-height: 0; margin: 0 0 2px; line-height: 1.55; }
#view-scripts .sc-bin { height: 104px; padding: 0 18px; gap: 14px; border-radius: 14px; }
#view-scripts .sc-bin > img,
#view-scripts .sc-bin > .sc-game-icon { box-sizing: border-box; display: block; flex: 0 0 54px !important; width: 54px !important; height: 54px !important; max-width: 54px !important; aspect-ratio: 1 / 1; object-fit: cover; object-position: center; border: 1px solid rgba(232,219,255,.18); border-radius: 13px; }
#view-scripts .sc-bin > svg { box-sizing: border-box; flex: 0 0 40px !important; width: 40px !important; height: 40px !important; max-width: 40px !important; padding: 9px; border: 1px solid rgba(232,219,255,.16); border-radius: 12px; background: rgba(255,255,255,.06); }
#view-scripts .sc-bin b { font-size: 13px; line-height: 1.45; }
#view-scripts .sc-bin small { margin-top: 4px; font-size: 11px; line-height: 1.3; }
#view-scripts .sc-foot { row-gap: 7px; }
@media (max-width: 760px) {
  #view-scripts .page-head .wrap,
  #view-scripts > .wrap { width: calc(100% - 28px); }
  #view-scripts #cards { grid-template-columns: minmax(0, 1fr) !important; gap: 12px !important; }
  #view-scripts .sc { padding: 15px 14px 12px; }
  #view-scripts .sc { gap: 8px; padding: 15px 14px 13px; }
  #view-scripts .sc-title { font-size: 1.05rem; }
  #view-scripts .sc-bin { height: 90px; padding-inline: 12px; gap: 11px; }
  #view-scripts .sc-bin > img,
  #view-scripts .sc-bin > .sc-game-icon { flex-basis: 48px !important; width: 48px !important; height: 48px !important; max-width: 48px !important; border-radius: 11px; }
  #view-scripts .sc-bin > svg { flex-basis: 36px !important; width: 36px !important; height: 36px !important; max-width: 36px !important; padding: 8px; }
}

/* Game/file icons: adaptive.css resets img[width][height] to the 256px attribute height, which stretched these.
   Pin them to their boxes so a tall icon can never spill out of the card. */
.ig-binic{overflow:hidden}
.ig-binic .ig-game-icon{box-sizing:border-box;display:block;width:48px!important;height:48px!important;max-width:48px!important;max-height:48px!important;aspect-ratio:1/1;object-fit:cover;object-position:center;border-radius:12px}
.ig-post .ig-media.bin{overflow:hidden}
.game-file-icon{width:48px;height:48px;max-width:48px;aspect-ratio:1/1;object-fit:cover;border-radius:12px}
.gm img{width:100%!important;height:100%!important;max-width:none;object-fit:cover}
.ap-ic img,.gw-img img{height:100%!important}
@media (max-width:640px){
  .ig-binic,.ig-binic .ig-game-icon{width:44px!important;height:44px!important;max-width:44px!important;max-height:44px!important}
}
