/* Phase 5 additions to the byte-identical STEP3 stylesheet. */
[hidden] { display: none !important; }
.product-card__image { display: block; width: 100%; height: 180px; object-fit: contain; margin-bottom: 16px; }
.product-card__description { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; }
.product-card__purchase { margin-top: 18px; white-space: normal; }
.product-card__id, .product-card__category { overflow-wrap: anywhere; }
.page-header .demo-notice { margin-top: 16px; padding: 14px; border: 1px solid #dce3ee; border-radius: 10px; background: #fff; }

/* Product administration only; public catalog styles remain unchanged. */
.sps-admin{background:#f4f6f8;color:#202a35;font-family:system-ui,sans-serif;line-height:1.65;margin:0}
.sps-admin main{max-width:1000px;padding:24px;margin:auto}
.sps-admin .sps-product{background:white;border:1px solid #d8e0e7;border-radius:12px;padding:20px;margin:20px 0;overflow-wrap:anywhere}
.sps-admin .sps-image-panel{border-top:1px solid #d8e0e7;padding-top:12px}
.sps-admin .sps-thumb{width:160px;height:160px;object-fit:contain;border-radius:8px}
.sps-admin input,.sps-admin select,.sps-admin textarea{box-sizing:border-box;max-width:100%;padding:8px}
.sps-admin textarea{width:100%;white-space:pre-wrap}
.sps-admin fieldset{min-width:0;margin:0}
.sps-admin input[type=file],.sps-admin select{width:100%}
.sps-admin pre{white-space:pre-wrap;overflow-wrap:anywhere}
.sps-admin button{padding:9px 14px;margin:4px 0;cursor:pointer;max-width:100%}
.sps-admin [role=alert]{background:#fff3e8;border-left:4px solid #b76116;padding:12px}
.sps-admin [role=status]{background:#eaf5ef;border-left:4px solid #258254;padding:12px}
.sps-admin dd{margin-left:0;white-space:pre-wrap;overflow-wrap:anywhere}
.sps-admin dt{font-weight:600}.sps-admin summary{cursor:pointer}
@media(max-width:480px){.sps-admin main{padding:12px}.sps-admin .sps-product{padding:14px}}
.sps-admin .sps-image-compare{display:flex;flex-wrap:wrap;gap:12px}
.sps-admin figure{margin:8px 0;max-width:100%}
.sps-admin .sps-image-changes article{border-top:1px solid #d8e0e7;padding:12px 0}
.sps-admin .sps-image-changes h3{overflow-wrap:anywhere}

.sps-admin .sps-image-retention article{border-top:1px solid #d8e0e7;padding:16px 0}
.sps-admin .sps-image-retention label{display:block;margin:8px 0}
.sps-admin .sps-image-retention input:not([type=checkbox]){width:100%;min-width:0}
.sps-admin .sps-image-retention input[type=checkbox]{vertical-align:middle}
