/* UBML Cup — responsive consistency pass. Presentation only; no data or workflows changed. */
:root {
  --ui-space-1:4px;--ui-space-2:8px;--ui-space-3:12px;--ui-space-4:16px;--ui-space-5:24px;
  --ui-control-radius:11px;--ui-card-radius:14px;
  --ui-shadow-sm:0 2px 8px rgba(15,29,46,.06);
  --ui-shadow-hover:0 10px 25px rgba(15,29,46,.13);
  --ui-motion:160ms cubic-bezier(.2,.7,.2,1);
}
html {min-width:0;scroll-behavior:smooth}
body {min-width:0;overflow-x:clip}
:where(main,.wrap,.panel,.toolbar,.two,.grid2,.groups,.teams,.adash,.ad-panel,.ad-kpi,.ops-page,.ops-grid,.ops-kpis,.res-cols,.mrow,.ref-list,.ref-mcard,.award,.auth-card,.field,.dlg,.dlg-body,.settings-jump) {min-width:0}
:where(.panel,.ad-panel,.ad-kpi,.award,article.team,.ref-mcard,.bx,.tbl-wrap,.auth-card) {box-shadow:var(--ui-shadow-sm)}
:where(.panel,.ad-panel,.ad-kpi,.award,article.team,.ref-mcard,.bx,.auth-card) {overflow-wrap:break-word}
:where(.panel,.ad-panel,.ad-kpi,.award,article.team,.ref-mcard,.bx) {transition:box-shadow var(--ui-motion),border-color var(--ui-motion),transform var(--ui-motion)}
:where(.btn,button.chip,.header-admin-access,.settings-jump a,.tab,.iconbtn,.cardbtn,.step) {transition:background-color var(--ui-motion),color var(--ui-motion),border-color var(--ui-motion),box-shadow var(--ui-motion),transform var(--ui-motion)}
:where(.btn,button.chip,.header-admin-access,.settings-jump a) {border-radius:var(--ui-control-radius)}
:where(.btn,button.chip,.header-admin-access,.iconbtn,.cardbtn,.step) {touch-action:manipulation}
.btn {min-height:44px;max-width:100%;line-height:1.3;text-align:center;white-space:normal;overflow-wrap:anywhere}
.btn.small {min-height:40px}
:where(.btn,button.chip,.header-admin-access,.iconbtn,.cardbtn,.step):disabled {cursor:not-allowed;opacity:.58;transform:none!important;box-shadow:none!important}
:where(.btn,button.chip,.header-admin-access,.iconbtn,.cardbtn,.step):focus-visible,
:where(input,select,textarea,a,[role="button"]):focus-visible {outline:3px solid var(--court);outline-offset:3px}
:where(input:not([type="checkbox"]):not([type="radio"]),select,textarea) {max-width:100%;min-width:0;border-radius:var(--ui-control-radius)}
:where(input,select,textarea) {font-size:16px}
textarea {resize:vertical}
:where(.toolbar,.btnrow,.ops-actions,.dlg-foot,.dlg-foot .right) {min-width:0;flex-wrap:wrap;gap:var(--ui-space-2)}
:where(.toolbar,.ops-title) > :where(div,h2,h3,p) {min-width:0}
:where(.tbl-wrap,.tree-wrap,.settings-jump,.subnav,nav.tabs) {max-width:100%;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
:where(.tbl-wrap,.tree-wrap) {overflow-x:auto}
:where(.tbl-wrap,.tree-wrap,.settings-jump,.subnav,nav.tabs):focus-visible {outline:3px solid var(--court);outline-offset:2px}
:where(.mrow,.res-score,.match-up,.ad-match,.ops-row,.ref-mcard) > * {min-width:0}
:where(.mrow .team,.match-up .side,.ad-match,.ops-row-main,.rm-t) {overflow-wrap:anywhere}
:where(.ad-kpis,.ad-topgrid,.ad-five,.ad-bottom,.ops-kpis,.ops-grid,.teams,.awards,.two,.grid2,.res-cols) > * {min-width:0}
:where(.notice,.empty-state,.auth-card,.panel) a {overflow-wrap:anywhere}
:where(.toast,.notice) {max-width:min(94vw,680px);overflow-wrap:anywhere}
.ref-mcard .ref-approval-pill {line-height:1.35;white-space:normal;overflow-wrap:anywhere;max-width:100%;min-height:36px;display:inline-flex;align-items:center;justify-content:center}
.ref-mcard.ref-locked {filter:none;opacity:.78}
.ops-row .ops-actions {justify-content:flex-end;max-width:100%}
.ops-row .ops-state {white-space:normal;text-align:center}
@media(hover:hover) and (pointer:fine) {
  .btn:not(:disabled):hover {border-color:var(--court);box-shadow:var(--ui-shadow-hover)}
  .btn.primary:not(:disabled):hover {filter:brightness(1.07)}
  button.chip:not(:disabled):hover,.header-admin-access:not(:disabled):hover {border-color:var(--court);box-shadow:var(--ui-shadow-sm)}
  :where(.panel,.ad-panel,.ad-kpi,article.team,.ref-mcard):hover {border-color:color-mix(in srgb,var(--court) 30%,var(--line))}
}
@media(max-width:900px) {
  .wrap {padding-inline:clamp(12px,2.5vw,18px)}
  .ops-kpis {grid-template-columns:repeat(2,minmax(0,1fr))}
  .ops-grid,.ad-topgrid {grid-template-columns:minmax(0,1fr)}
}
@media(max-width:700px) {
  .wrap {padding-inline:12px}
  .panel {padding:clamp(12px,3vw,18px)}
  .toolbar {align-items:stretch}
  .toolbar > :first-child {min-width:0}
  .toolbar .btnrow {width:100%;justify-content:flex-start}
  .toolbar .btnrow .btn {flex:1 1 140px}
  .ops-row {align-items:stretch;flex-wrap:wrap}
  .ops-row .ops-actions {width:100%;justify-content:flex-start}
  .ops-row .ops-actions .btn {flex:1 1 140px}
  .dlg-foot .right {width:100%}
  .dlg-foot .right .btn {flex:1 1 140px}
  .subnav {overflow-x:auto;flex-wrap:nowrap}
  .subnav .chip {flex:0 0 auto}
  .ad-match {font-size:clamp(10px,2.5vw,13px)}
  .ref-picker-tools {display:flex;flex-wrap:wrap;gap:8px}
  .ref-picker-tools > * {min-width:0;flex:1 1 135px}
}
@media(max-width:520px) {
  .wrap {padding-inline:10px}
  .panel {padding:12px}
  .teams {grid-template-columns:minmax(0,1fr)}
  .awards,.two,.grid2,.res-cols,.ops-grid {grid-template-columns:minmax(0,1fr)}
  .ops-kpis,.ad-kpis {gap:8px}
  .ops-kpis .panel {padding:12px}
  .ops-kpis .panel .btn {width:100%}
  .ops-title {align-items:flex-start;flex-wrap:wrap}
  .ops-title .btn {min-height:40px}
  .mrow {gap:6px;padding-inline:10px}
  .mrow .sc {min-width:0;font-size:clamp(16px,5vw,22px)}
  .match-up {gap:6px}
  .match-up .side {font-size:clamp(16px,5vw,24px)}
  .match-up .score {font-size:clamp(34px,10vw,56px)}
  .ref-mcard {gap:9px}
  .ref-mcard .ref-approval-pill {grid-column:1/-1;justify-self:stretch;width:100%;min-height:42px}
  .ref-mcard .rm-t b {overflow-wrap:anywhere}
  .auth-card {max-width:100%}
  .settings-jump {position:relative}
}
@media(max-width:360px) {
  .wrap {padding-inline:8px}
  .panel {padding:10px}
  .ops-kpis {grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .ops-kpis .panel>strong {font-size:26px}
  .ref-mcard {padding:10px;gap:6px}
  .ref-mcard .rm-t b {font-size:12px}
  .ref-mcard .rm-s {font-size:17px}
  .toolbar .btnrow .btn {flex-basis:100%}
}
@media(prefers-reduced-motion:reduce) {
  html {scroll-behavior:auto}
  *,*::before,*::after {animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}
