/* P420: definite icon geometry avoids intrinsic grid tracks overflowing the 96px frame. */
.shop-page .shop-card-ico-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 96px;
  height: 96px;
  min-height: 96px;
  max-height: 96px;
  aspect-ratio: auto;
  padding: 8px;
}
.shop-page .shop-card-ico {
  flex: 0 1 auto;
  width: 78px;
  height: 78px;
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  object-position: center;
}
.shop-page .shop-card-ico.p420-loading,
.shop-page .shop-card-ico.p420-image-failed { visibility: hidden; }
.p420-shop-image-status {
  position: absolute;
  inset: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
  pointer-events: none;
}
.p420-password-form { gap: 8px; }
.p420-password-form input { scroll-margin-block: 24px; }
.p420-password-form #cmd-password-error { min-height: 18px; }
#sheet.sheet-keyboard-modal:has(.p420-password-form) {
  max-height: max(80px, min(78vh, calc(var(--rename-vv-height, 100vh) - 24px)));
  overscroll-behavior: contain;
}
