/* Isolated v5.68 catalogue content editor; no global card/layout rules. */
.catalog-content-editor {border:1px solid #303737;border-radius:14px;margin:14px 0;background:#101516;color:#f4f6f6;min-width:0;}
.catalog-content-editor summary {list-style:none;padding:14px 16px;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px;font-weight:800;}
.catalog-content-editor summary::-webkit-details-marker {display:none;}
.catalog-content-editor summary:after {content:'⌄';color:#f8bc27;font-size:18px;}
.catalog-content-editor[open] summary:after {content:'⌃';}
.ce-body {padding:0 16px 16px;min-width:0;}
.ce-note,.ce-message {font-size:12px;line-height:1.55;color:#aeb8bc;overflow-wrap:anywhere;}
.ce-message {min-height:20px;margin:10px 0;}
.ce-message.is-error {color:#ff9d9d;}
.ce-message.is-success {color:#81dfa0;}
.ce-grid {display:grid;grid-template-columns:minmax(220px,320px) minmax(0,1fr);gap:22px;margin-top:14px;align-items:start;}
.ce-fields {display:grid;gap:14px;min-width:0;}
.ce-fields label,.ce-crop-controls label {display:grid;gap:6px;font-size:12px;font-weight:700;color:#bbc5c8;min-width:0;}
.ce-fields textarea {box-sizing:border-box;width:100%;resize:vertical;min-height:100px;background:#090e10;color:#f4f6f6;border:1px solid #303738;border-radius:10px;padding:11px;font:inherit;line-height:1.6;}
.ce-fields textarea:focus {outline:2px solid #f8bc27;outline-offset:1px;}
.ce-fields small {font-size:11px;font-weight:400;line-height:1.5;}
.ce-cover-preview {aspect-ratio:1;position:relative;border-radius:12px;overflow:hidden;background:#080c0d;border:1px solid #303738;}
.ce-cover-preview canvas,.ce-cover-preview img {width:100%;height:100%;object-fit:cover;display:block;}
.ce-cover-preview .badge {position:absolute;top:12px;left:12px;z-index:1;pointer-events:none;}
.ce-cover-preview [hidden] {display:none!important;}
.ce-cover-label {display:block;margin-bottom:8px;color:#d8e0e2;font-size:12px;font-weight:800;}
.ce-file {width:100%;font-size:12px;margin:12px 0;color:#b9c3c7;}
.ce-file::file-selector-button {border:1px solid #3a4244;background:#171e20;color:#f4f6f6;border-radius:8px;padding:8px;margin-right:8px;cursor:pointer;}
.ce-crop-controls {display:grid;gap:10px;margin:12px 0;}
.ce-crop-controls[hidden] {display:none;}
.ce-crop-controls input {width:100%;accent-color:#f8bc27;}
.ce-dimensions {font-size:11px;color:#bdc6ca;line-height:1.5;}
.ce-actions {display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;border-top:1px solid #2c3537;padding-top:14px;margin-top:14px;}
.ce-actions .btn {font-size:12px;min-height:40px;padding:10px 14px;}
.ce-body button:disabled {opacity:.45;cursor:not-allowed;}
.ce-reset-cover {font-size:12px!important;min-height:32px!important;margin-top:10px;}
.ce-mobile-note {color:#87969c;}
.ps-create-option {font-size:12px;line-height:1.4;}
.ps-create-option small {font-size:11px;line-height:1.5;}
.catalog-price-field input[readonly] {opacity:.65;cursor:not-allowed;}
@media(max-width:720px) {
 .ce-grid {grid-template-columns:1fr;gap:16px;}
 .ce-cover-preview {max-width:340px;}
 .ce-body {padding:0 12px 12px;}
 .catalog-content-editor summary {padding:12px;}
 .ce-actions {display:grid;grid-template-columns:1fr 1fr;}
 .ce-actions .ce-save {grid-column:1/-1;}
}
[data-product-card="playstation-plus"] .music-create-field,
[data-product-card="playstation-store-topup"] .music-create-field,
#productModal[data-product="playstation-plus"] .music-create-field,
#productModal[data-product="playstation-store-topup"] .music-create-field {grid-column:1/-1;}

/* Match the storefront's existing media templates, without changing public cards. */
.ce-cover-preview[data-cover-ratio="wide"]{aspect-ratio:16/9;}
@media(min-width:981px){
 .catalog-admin-pane:has(>.catalog-content-editor){grid-template-areas:"head" "content" "status" "heading" "variants" "history" "save";grid-template-rows:auto auto auto auto minmax(80px,1fr) auto auto;}
 .catalog-admin-pane.is-preview:has(>.catalog-content-editor){grid-template-areas:"head" "content" "notice" "status" "heading" "variants" "history" "save";grid-template-rows:auto auto auto auto auto minmax(80px,1fr) auto auto;}
 .catalog-content-editor{grid-area:content;}
 .catalog-admin-pane:has(>.catalog-content-editor[open]){display:block;overflow-y:auto;}
 .catalog-admin-pane:has(>.catalog-content-editor[open])>.catalog-variant-list{max-height:360px;overflow-y:auto;}
}
