/* A/B has one header in document flow; its height follows wrapped controls. */
html:has(body[data-view="abtests"]),body[data-view="abtests"]{min-width:0}
body[data-view="abtests"] #sectionSubnav{display:none!important}
body[data-view="abtests"] #modeNav{position:sticky;top:0;left:auto;right:auto;width:100%;min-height:0;height:auto;padding:18px 24px;z-index:30;overflow:visible}
body[data-view="abtests"] main{margin-top:0;padding-top:20px}
body[data-view="abtests"] #abtestsView{margin-top:0}
body[data-view="abtests"] #abTopControls{grid-template-columns:minmax(0,1fr);gap:14px}
body[data-view="abtests"] .ab-command-head{gap:16px;flex-wrap:wrap}
body[data-view="abtests"] .ab-command-head>div:first-child{flex-wrap:wrap;gap:8px 14px}
body[data-view="abtests"] .ab-command-head small{white-space:normal;font-size:12px;line-height:1.4}
body[data-view="abtests"] .ab-top-summary{justify-content:flex-start;flex-wrap:wrap;gap:6px}
body[data-view="abtests"] .ab-top-summary button{font-size:13px;min-height:36px}
body[data-view="abtests"] .ab-filter-row{grid-template-columns:minmax(0,1fr) minmax(170px,230px) auto;gap:12px}
body[data-view="abtests"] .ab-filter-row label>span{font-size:10px}
body[data-view="abtests"] .ab-filter-row input,body[data-view="abtests"] .ab-filter-row select{height:40px;font-size:13px}
body[data-view="abtests"] .ab-header-density{height:40px;align-items:center}
body[data-view="abtests"] .ab-header-density button{height:30px;width:30px}
body[data-view="abtests"] .ab-search-results{top:100%;margin-top:6px;max-width:calc(100vw - 32px)}
.ab-card-actions :is(button,a){cursor:pointer;min-width:34px;min-height:34px;touch-action:manipulation}
.ab-card-actions :is(button,a):focus-visible{outline:2px solid var(--ab-accent);outline-offset:3px}
.ab-card-actions button:disabled{opacity:.55;cursor:wait}
.ab-photo-metrics footer:has(.ab-card-feedback){flex-wrap:wrap}
.ab-card-feedback{flex-basis:100%;font-size:12px;color:var(--ab-muted);white-space:normal}
@media(max-width:1100px){
  body[data-view="abtests"] .ab-filter-row{grid-template-columns:minmax(0,1fr) minmax(160px,220px)}
  body[data-view="abtests"] .ab-header-density{grid-column:1/-1;justify-self:start}
}
@media(max-width:650px){
  body[data-view="abtests"] #modeNav{position:relative;padding:14px 12px}
  body[data-view="abtests"] .ab-filter-row{grid-template-columns:minmax(0,1fr)}
  body[data-view="abtests"] .ab-command-head h2{font-size:22px}
}
