/* V160: steady table separators and two matching selection dialogs. */
@media (min-width: 761px) {
  /* A separator belongs to one row; pointing must not change only its lower edge. */
  #root#root#root .table-wrap .pick-table-v72.pick-table-v103 > thead > tr,
  #root#root#root .table-wrap .pick-table-v72.pick-table-v103 > tbody > tr.pick-row {
    border-bottom-color: #203043 !important;
  }
}

#root#root .selection-dialog-v160 .selection-dialog-heading-v160 {
  display: grid !important;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center !important;
  gap: 16px !important;
  margin: 0 0 20px !important;
  padding: 0 60px 0 0 !important;
}
#root#root .selection-dialog-v160 .selection-dialog-heading-v160 > h2 {
  min-width: 0;
  margin: 0 !important;
}
/* Same symbols and colors as the Ligi/Typy cards in Settings. */
#root#root .selection-dialog-v160 .selection-dialog-icon-v160 {
  color: var(--green) !important;
  background: #8cf20d14 !important;
  border: 1px solid #8cf20d2e !important;
  box-shadow: none !important;
}
#root#root .selection-dialog-v160 .allowed-markets-count-badge-v58 {
  margin: 0 !important;
  white-space: nowrap;
}
#root#root .selection-dialog-v160 > :is(.allowed-market-groups-v49, .allowed-leagues-scroll-v81) {
  margin-top: 0 !important;
  gap: 12px !important;
  padding-right: 2px !important;
}
#root#root .selection-dialog-v160 :is(.allowed-market-group-v49, .league-country-v81) {
  padding: 12px !important;
  border-radius: 13px;
}
#root#root .selection-dialog-v160 .selection-dialog-group-heading-v160 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 20px;
  margin: 0 0 12px;
}
#root#root .selection-dialog-v160 .selection-dialog-group-heading-v160 > h3 {
  margin: 0 !important;
  color: #eef3fa;
  font: 700 14px/1.4 Arial, Helvetica, sans-serif !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
#root#root .selection-dialog-v160 .selection-group-count-v160 {
  flex: 0 0 auto;
  color: #8fa2b9;
  font: 700 12px/1.35 Arial, Helvetica, sans-serif;
}
#root#root .selection-dialog-v160 :is(.allowed-market-options-v49, .league-options-v160) {
  display: grid;
  gap: 7px;
}
#root#root .selection-dialog-v160 label {
  position: relative;
  gap: 7px;
  padding: 7px 9px;
  min-height: 44px !important;
}
#root#root .selection-dialog-v160 label > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
#root#root .selection-dialog-v160 label > :is(.allowed-market-check-v49, .league-check-v81) {
  display: grid;
  box-sizing: border-box;
  place-items: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border: 1px solid #41566d;
  border-radius: 6px;
  background: #0d1926;
}
#root#root .selection-dialog-v160 label.selected > :is(.allowed-market-check-v49, .league-check-v81) {
  color: #07100a;
  background: #91ff00;
  border-color: #91ff00;
}
#root#root .selection-dialog-v160 label:has(> input:focus-visible) {
  outline: 2px solid #87bff0 !important;
  outline-offset: 2px;
}
#root#root .selection-dialog-v160 .selection-dialog-actions-v160 {
  display: grid !important;
  grid-template-columns: repeat(2, 84px) !important;
  justify-content: end;
  align-items: center;
  gap: 10px !important;
  margin-top: 20px !important;
  padding-top: 0 !important;
}
#root#root .selection-dialog-v160 .selection-dialog-actions-v160 > button {
  box-sizing: border-box;
  width: 100% !important;
  min-width: 0 !important;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 10px 14px !important;
  border-radius: 11px !important;
  font: 700 14px/1.5 Arial, Helvetica, sans-serif !important;
}
#root#root#root#root .selection-dialog-v160 .profile-limits-done-v22,
#root#root#root#root .selection-dialog-v160 .profile-limits-done-v22:is(:hover, :active, :focus-visible) {
  color: #07100a !important;
  background: #91ff00 !important;
  border-color: #91ff00 !important;
}
/* Override the older general hover selector, including its long exclusion list. */
#root#root#root#root .v96-selection,
#root#root#root#root .v96-selection:is(:hover, :active, :focus) {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

@media (hover: hover) and (pointer: fine) {
  /* The inner square needs a visible fill against the row's gray hover. */
  #root#root#root .v96-selection[aria-pressed="false"]:hover .selection-box,
  #root#root#root .selection-dialog-v160 label:not(.selected):hover > :is(.allowed-market-check-v49, .league-check-v81) {
    background: #2b3e50 !important;
    border-color: #607287 !important;
    box-shadow: none !important;
  }
  #root#root#root .v96-selection[aria-pressed="true"]:hover .selection-box.checked,
  #root#root#root .selection-dialog-v160 label.selected:hover > :is(.allowed-market-check-v49, .league-check-v81) {
    border-color: #607287 !important;
  }
}
@media (hover: none), (pointer: coarse) {
  #root#root#root .v96-selection[aria-pressed="false"]:hover:not(:active) .selection-box {
    background: #0d1926 !important;
    border-color: #41566d !important;
  }
  #root#root#root .v96-selection[aria-pressed="false"]:active .selection-box,
  #root#root#root .selection-dialog-v160 label:not(.selected):active > :is(.allowed-market-check-v49, .league-check-v81) {
    background: #2b3e50 !important;
    border-color: #607287 !important;
  }
}
@media (max-width: 760px) {
  #root#root .selection-dialog-v160 .selection-dialog-heading-v160 {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 8px 12px !important;
    padding-right: 42px !important;
    margin-bottom: 16px !important;
  }
  #root#root .selection-dialog-v160 .selection-dialog-icon-v160 {
    width: 42px !important;
    height: 42px !important;
    grid-row: 1 / span 2;
  }
  #root#root .selection-dialog-v160 .allowed-markets-count-badge-v58 {
    grid-column: 2;
    justify-self: start;
  }
}
