/* ui11.css: the Edges tab, actionable first (agent ui-edges11, 2026-11-10). Layout only; pairs with web/ui11.js. */
/* a card moved out of a league's wrapper hides with that wrapper */
#edges .ui11-off { display: none !important; }
.ui11-zone[hidden] { display: none; }

/* Track record: one row per record card */
.ui11-rec-head { margin-top: var(--cds-gap-sm); }
.ui11-rec-head .ui11-rec-hint { font-size: var(--cds-font-size-caption); }
.ui11-rec-list { display: flex; flex-direction: column; gap: var(--cds-gap-sm); }
.ui11-rec-list > .ui11-rec[hidden] { display: none; }
.sb-card.ui11-rec.ui11-closed { padding: 0; }
.sb-card.ui11-rec.ui11-closed > :not(.ui11-row) { display: none !important; }
.sb-card.ui11-rec > .sb-card-head > h3 { display: none; }
.sb-card.ui11-rec:not(.ui11-closed) > .ui11-row { margin: calc(-1 * var(--cds-pad-lg)) calc(-1 * var(--cds-pad-lg)) var(--cds-gap-sm); border-bottom: 1px solid var(--color-border-line); border-radius: var(--sb-r) var(--sb-r) 0 0; }

.ui11-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 20px; grid-template-areas: "t p c" "s s c";
  align-items: center; gap: 4px 10px; width: 100%; min-height: 56px; margin: 0; padding: 10px 14px;
  background: none; border: 0; border-radius: var(--sb-r); color: var(--color-fg); font: inherit; text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ui11-row:hover { background: color-mix(in srgb, var(--color-fg) 4%, transparent); }
.ui11-row:focus-visible { outline: 2px solid var(--sb-gold, #e2b23f); outline-offset: -2px; }
.ui11-row-t { grid-area: t; font-size: var(--cds-font-size-body); font-weight: var(--cds-font-weight-medium); line-height: 1.3; }
.ui11-row-s { grid-area: s; display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: var(--cds-font-size-caption); color: var(--color-fg-muted); font-variant-numeric: tabular-nums; line-height: 1.4; }
.ui11-row-wl { color: var(--color-fg); font-weight: var(--cds-font-weight-medium); }
.ui11-row-pl:empty, .ui11-row-wl:empty { display: none; }
.ui11-row-pl.sb-pos { color: var(--color-ok); }
.ui11-row-pl.sb-neg { color: var(--color-bad); }
.ui11-pill { grid-area: p; justify-self: end; display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 999px; font-size: var(--cds-font-size-caption); font-weight: var(--cds-font-weight-medium); white-space: nowrap; border: 1px solid var(--color-border-line); color: var(--color-fg-muted); }
.ui11-pill-live { color: var(--sb-green, #3ddc84); border-color: color-mix(in srgb, var(--sb-green, #3ddc84) 55%, transparent); background: color-mix(in srgb, var(--sb-green, #3ddc84) 12%, transparent); }
.ui11-pill-watch { color: var(--sb-amber, #f2b544); border-color: color-mix(in srgb, var(--sb-amber, #f2b544) 55%, transparent); background: color-mix(in srgb, var(--sb-amber, #f2b544) 10%, transparent); }
.ui11-chev { grid-area: c; justify-self: center; width: 9px; height: 9px; border-right: 2px solid var(--color-fg-muted); border-bottom: 2px solid var(--color-fg-muted); transform: translateY(-2px) rotate(45deg); }
.ui11-row[aria-expanded="true"] .ui11-chev { transform: translateY(2px) rotate(-135deg); }
@media (prefers-reduced-motion: no-preference) { .ui11-chev { transition: transform .15s ease; } }

/* the records inside the Degen and Parlays cards */
.ui11-row[hidden] { display: none; }
.ui11-subrow { margin-top: var(--cds-gap-sm); border: 1px solid var(--color-border-line); }
.ui11-sub-closed .ui11-subpart { display: none !important; }
.ui11-subpart.sb-card-head > h3 { display: none; }

/* empty states: one line. A table whose only row is its empty note drops its header; Plays now's empty table repeats the note above it */
#edges table.sb-table.ui11-empty thead { display: none; }
#edges .ui11-empty-wrap { display: none; }

/* desktop: the folded records sit two to a row; an open one takes the full width */
@media (min-width: 1024px) {
  .ui11-rec-list { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: var(--cds-gap-sm) var(--cds-gap-md); }
  .ui11-rec-list > .ui11-rec:not(.ui11-closed) { grid-column: 1 / -1; }
}
