.commerce-admin:has([data-admin-workspace]) { max-width: 1540px; padding: 42px 24px 70px; }
.commerce-admin:has([data-admin-workspace]) > :is(h1,.kicker,.lede) { display: none; }
.ops-root { width: 100%; min-width: 0; }
.ops-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 22px; margin-bottom: 30px; }
.ops-header h1 { font-size: clamp(26px,3vw,40px); line-height: 1.2; margin: 8px 0 12px; }
.ops-header p { margin: 0; color: var(--muted); line-height: 1.6; }
.ops-header .kicker { color: var(--navy); }
.ops-root .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ops-root .btn,.ops-dialog .btn { min-height: 42px; padding: 10px 15px; font-size: 13px; }
.ops-customer-filter { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; padding: 18px 20px; border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); margin-bottom: 22px; }
.ops-customer-filter .field { flex: 1 1 230px; max-width: 390px; }
.ops-customer-filter p { align-self: center; margin: 12px 0 0; font-size: 13px; overflow-wrap: anywhere; color: var(--muted); }
.ops-layout { display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 24px; align-items: start; }
.ops-nav { position: sticky; top: 20px; }
.ops-panel { min-height: 58vh; }
.ops-panel h2 { margin-bottom: 24px; }
.ops-panel th,.ops-panel td { white-space: normal; vertical-align: top; }
.ops-panel td { min-width: 95px; }
.ops-panel td small { display: block; color: var(--muted); margin-top: 5px; }
.ops-panel td .btn { margin: 0 6px 6px 0; }
.ops-panel td pre { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 380px; font-size: 12px; }
.ops-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin: 20px 0 28px; }
.ops-form [data-ops-status],.ops-form > .portal-details,.ops-form > .portal-note { grid-column: 1 / -1; margin: 0; }
.ops-form > button { justify-self: start; }
.ops-form .field { min-width: 0; }
.ops-form .ops-wide { grid-column: 1 / -1; }
.ops-form textarea { min-width: 0; width: 100%; resize: vertical; }
.ops-root input,.ops-dialog input,.ops-root select,.ops-dialog select { min-width: 0; max-width: 100%; }
.ops-pagination { display: flex; gap: 14px; align-items: center; margin: 20px 0 30px; }
.ops-pagination span { color: var(--muted); font-size: 13px; }
.ops-connections,.ops-rules { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.ops-connections .portal-card,.ops-rules .portal-card { margin: 0; }
.ops-connections { margin-bottom: 20px; }
.ops-connection-title { display: flex; align-items: center; gap: 13px; }
.ops-connection-title img { width: 36px; height: 36px; object-fit: contain; }
.ops-connection-title h3 { margin: 0 0 4px; font-size: 17px; }
.ops-connection-title p { color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; margin: 0; }
.ops-connections .row { margin-top: 18px; }
.ops-message-toolbar { display: flex; justify-content: flex-end; margin: 10px 0; }
.ops-message-toolbar .btn { color: var(--pink); }
.ops-dialog { width: min(900px,calc(100vw - 40px)); padding: 30px; }
.ops-dialog h2 { margin: 0 35px 22px 0; font-size: 25px; line-height: 1.3; }
.ops-dialog > .portal-details { margin-bottom: 22px; }
.ops-dialog .ops-form:not(:last-child) { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.ops-dialog .check { align-items: start; line-height: 1.6; font-size: 13px; }
.ops-traffic { margin-top: 24px; }
.ops-traffic summary { cursor: pointer; margin-bottom: 18px; }
.ops-legacy .commerce-admin-nav { display: flex; flex-wrap: wrap; }
.ops-legacy .commerce-section-head { margin-bottom: 20px; }
@media(max-width:1050px) {
  .ops-layout { grid-template-columns: 175px minmax(0,1fr); gap: 18px; }
  .ops-connections,.ops-rules { grid-template-columns: 1fr; }
}
@media(max-width:760px) {
  .commerce-admin:has([data-admin-workspace]) { padding: 28px 18px 50px; }
  .ops-layout { display: block; }
  .ops-nav { position: static; display: flex; overflow-x: auto; margin-bottom: 24px; max-width: 100%; }
  .ops-nav button { flex: 0 0 auto; white-space: nowrap; }
  .ops-header { align-items: start; }
  .ops-form { grid-template-columns: 1fr; }
  .ops-customer-filter { padding: 16px; }
  .ops-dialog { padding: 24px 18px; width: calc(100vw - 28px); }
  .ops-panel .portal-conversation { grid-template-columns: 1fr; }
}
@media(prefers-reduced-motion:reduce) { .ops-root *,.ops-dialog * { scroll-behavior: auto; } }
