/* SleepRx9 Advertising Center R2, intentionally inherits existing studio-panel UI. */
.srx-center{margin-bottom:22px;max-width:100%;min-width:0}
.srx-center *{box-sizing:border-box}
.srx-head,.srx-sectionbar,.srx-toolbar,.srx-record,.srx-detailtop{display:flex;justify-content:space-between;align-items:center;gap:16px}
.srx-head{align-items:flex-start;flex-wrap:wrap}.srx-head h3{font-size:1.55rem;margin:.25rem 0}.srx-head p{margin:0;color:#9ca8b8}
.srx-safety,.srx-note,.srx-footer{font-size:.84rem;color:#aebccc}.srx-safety{border:1px solid #7c6237;padding:8px 12px;border-radius:9px;background:#282318;color:#ffd995;max-width:270px}
.srx-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:22px 0}.srx-stats>div{border:1px solid #2d3641;background:#151b24;border-radius:12px;padding:15px;display:grid;gap:7px}.srx-stats small{color:#aebccc}.srx-stats strong{font-size:1.7rem;line-height:1.1;color:#fff}
.srx-toolbar{border-bottom:1px solid #39404d;padding:0 0 15px;margin-bottom:14px;flex-wrap:wrap}.srx-tabs{display:flex;gap:6px;flex-wrap:wrap}.srx-tabs button{padding:10px 13px;border-radius:7px}.srx-tabs button[aria-current="page"]{border-color:#e74c53;box-shadow:inset 0 -3px #e74c53;background:#2c2227;color:#fff}
.srx-message{padding:10px 13px;background:#172332;border:1px solid #304052;border-radius:9px;min-height:40px}
.srx-view[hidden],.srx-detail[hidden]{display:none!important}.srx-sectionbar{align-items:flex-start;margin:16px 0 14px;flex-wrap:wrap}.srx-sectionbar h4{font-size:1.15rem;margin:0 0 4px}.srx-sectionbar p{color:#aebccc;margin:0}
.srx-search{display:block;margin-bottom:12px;color:#abb9c7;font-size:.88rem}.srx-search input{display:block;width:100%;margin-top:6px;max-width:550px}
.srx-records{display:grid;gap:9px}.srx-record{border:1px solid #303a46;border-radius:11px;padding:14px 16px;background:#161d27;align-items:center}.srx-record>div:first-child{display:grid;gap:5px;min-width:0}.srx-record strong{overflow-wrap:anywhere}.srx-record small{color:#aab8c6}.srx-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.srx-status{border:1px solid #677482;color:#d6e0e9;border-radius:999px;padding:4px 9px;font-size:.75rem;text-transform:capitalize}.srx-action{white-space:nowrap}.srx-empty{text-align:center;padding:36px 14px;border:1px dashed #516070;border-radius:12px}.srx-empty p{color:#acbac8}
.srx-detail{background:#131c27;border:1px solid #495465;border-radius:12px;margin:18px 0;padding:18px}.srx-detailtop{margin-bottom:15px}.srx-detailtop h4{margin:0}.srx-form{display:grid;gap:14px;max-width:720px}.srx-form label{display:grid;gap:7px}.srx-form label:has(input[type="checkbox"]){display:flex;align-items:center;gap:8px}.srx-form input,.srx-form select,.srx-form textarea{width:100%;max-width:100%}.srx-form button[type="submit"]{justify-self:start}.srx-preview img,.srx-preview video{max-width:100%;max-height:400px;border-radius:8px;background:#000}.srx-preview{margin:15px 0}.srx-footer{border-top:1px solid #2e3947;padding-top:15px;margin-top:20px}
.srx-legacy{border:1px solid #3b4554;border-radius:12px;background:#10151e;margin-top:18px}.srx-legacy>summary{cursor:pointer;padding:17px 18px;font-weight:700;color:#dce4f0}.srx-legacy[open]>summary{border-bottom:1px solid #3b4554}.srx-legacy-content{padding:16px}.srx-legacy-content>*{max-width:100%}
@media(max-width:850px){.srx-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.srx-record{align-items:flex-start;flex-direction:column}.srx-actions{justify-content:flex-start}}
@media(max-width:480px){.srx-stats{gap:8px}.srx-stats>div{padding:10px}.srx-center{padding:12px!important}.srx-toolbar{align-items:stretch}.srx-tabs{width:100%}.srx-tabs button{flex:1 1 100%}.srx-sectionbar button{width:100%}}
/* R3 order-forward workflow */
.srx-journey{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 18px}.srx-journey span{font-size:.78rem;padding:9px 12px;border-radius:8px;background:#1e2735;border:1px solid #344257;color:#d9e1ec}
.srx-order .srx-next-step{color:#b7d8ff;font-weight:600}.srx-order-details{display:grid;gap:12px}.srx-steps{display:grid;gap:9px;list-style:none;padding:0;margin:8px 0}.srx-steps li{border-left:3px solid #5c6471;padding:8px 12px;background:#17202c}.srx-steps li.complete{border-color:#4fbf8b;color:#a9f0c8}.srx-order-details button{justify-self:start}

/* R4: creative file upload and next action */
.srx-form input[type=file]{max-width:100%;padding:12px;border:1px dashed #697485;border-radius:8px}.srx-preview img{max-width:100%;max-height:350px;object-fit:contain}.srx-form a{color:#a8bcff;text-decoration:underline;align-self:flex-start}

.srx-upload-feedback{padding:12px;border:1px solid #637286;border-radius:8px;line-height:1.5}.srx-upload-feedback[data-state="success"]{border-color:#5a9e78}.srx-upload-feedback[data-state="error"]{border-color:#d17777}.srx-upload-feedback[data-state="warning"]{border-color:#c99b57}.srx-saved-asset{display:flex;gap:12px;flex-wrap:wrap;align-items:center;overflow-wrap:anywhere;padding:12px;border-radius:8px;border:1px solid #5a9e78}.srx-saved-asset[hidden]{display:none}
