/* the Pick'em tab (pickem.js): Outliers' parts (lists.css: .oxtop, .oxgrid, .oxrail, .oxtool, .oxdh / .oxdr, .oxside);
   here only what Pick'em adds: its columns, the add button, the slip, a phone's league menu */
/* the game strip and the market list are the board's */
body[data-view='pk'] :is(.slatebar, .secnav) {
  display: none;
}
/* Bet · App (not PrizePicks: it prices no pick) · This side · Other side · Chance (a range) · Edge · add */
#pkRows :is(.oxdh, .oxdr) {
  grid-template-columns: minmax(0, 1fr) 60px 96px 96px 76px 68px 20px;
}
#pkRows.flat :is(.oxdh, .oxdr) {
  grid-template-columns: minmax(0, 1fr) 96px 96px 76px 68px 20px;
}
#pkRows .oxdh > button.r,
#pkRows .oxdh > span.r {
  justify-self: end;
}
#pkRows .oxdr .bp.nb {
  justify-content: flex-end;
  color: var(--faint);
}
#pkRows .oxdr .pm2.up {
  color: var(--pos);
}
/* the rail's names on one line (a long market's ends in an ellipsis, its count kept) */
#pkRail .oxrl-i .oxfs-n {
  overflow: hidden;
  white-space: nowrap;
}
#pkRail .oxrl-i .oxfs-n > span {
  overflow: hidden;
  text-overflow: ellipsis;
}
/* a leg on the ticket (Avi 11/16: clearly marked): the row tinted the accent with its bar at the left, the ring filled;
   the panel's own pick (.on: the ink bar, Outliers') stays as it is on top of it */
#pkRows .oxdr.tk {
  background: var(--accent-tint);
  box-shadow: inset 3px 0 0 var(--accent);
}
#pkRows .oxdr.tk:hover {
  background: color-mix(in srgb, var(--accent-tint) 80%, var(--accent));
}
#pkRows .oxdr.tk.on {
  box-shadow: inset 3px 0 0 var(--accent), inset 5px 0 0 var(--ink);
}
/* the add button: a ring, filled with a tick once on the slip */
.pkadd {
  justify-self: end;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.pkadd::after {
  content: '+';
  font: 500 14px/1 var(--body);
  color: var(--muted);
}
.pkadd:hover {
  border-color: var(--ink);
}
@media (hover: hover) {
  .oxdr:not(:hover) .pkadd:not(.on) {
    visibility: hidden;
  }
}
.pkadd:hover::after {
  color: var(--ink);
}
.pkadd.on {
  background: var(--accent);
  border-color: var(--accent);
}
.pkadd.on::after {
  content: '✓';
  font-size: 11px;
  color: var(--on-accent, #fff);
}
/* the chance's basis (This side · Middle · Other side): the title line's right end */
/* the period switch's pill and label (chrome.css .gper .seg / .ng) */
:is(#pkView, #oxView) .oxtool .pkbasis {
  display: flex;
  align-items: center;
  margin-left: auto;
}
:is(#pkView, #oxView) .oxtool .pkbasis .ng {
  padding-left: 0;
}
:is(#pkView, #oxView) .oxtool .pkbasis button {
  white-space: nowrap;
}
#oxView .oxtool .pkbasis + .pkbasis,
#pkView .oxtool .oxclr:not([hidden]) + .pkbasis {
  margin-left: 16px;
}
/* the narrow bar's league menu: a phone's only (wider, the league row) */
.pklgd {
  display: none !important;
}
.pkslate {
  display: none;
}
@media (min-width: 1240px) {
  .pkslate:not([hidden]) {
    display: flex;
    margin-bottom: 12px;
  }
}
.pkslate button {
  white-space: nowrap;
}
#pkSlateD[hidden] {
  display: none;
}
/* the ticket: the Arbs ticket's card (ticket.css .tkt, .tkt-game, .tkt-sum) at the top of the right column, above the
   line's panel; a bar at the bottom where the column isn't shown. Here only its legs, what each way pays, Clear */
#pkTicket .tkt {
  margin-bottom: 16px;
}
.pklegs {
  margin-top: 8px;
}
.pkl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 12px;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.pkln {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.pkln b,
.pkln i {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pkln b {
  font: 600 14px/1.2 var(--body);
  color: var(--ink);
}
.pkln i {
  font: 500 13px/1.2 var(--body);
  font-style: normal;
  color: var(--muted);
}
.pklc {
  font: 600 14px/1 var(--num);
  color: var(--ink);
}
.pkl button {
  padding: 0;
  border: 0;
  background: none;
  font-size: 15px;
  line-height: 1;
  color: var(--faint);
  cursor: pointer;
}
.pkl button:hover {
  color: var(--ink);
}
/* the sum: each way to play as a row of one table (the way, what it pays, the chance each leg needs, the EV), every
   number in the number face right-aligned under its head; the chance all hit under it */
.pksum {
  margin-top: 12px; /* the last leg's line above it is its divider */
}
.pkways {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 72px; /* the way, what it needs per leg, its EV */
  column-gap: 16px;
  row-gap: 10px;
  align-items: baseline;
}
.pkways .n i {
  font: 400 13px/1 var(--body);
  font-style: normal;
  color: var(--muted);
}
/* the ticket's one rule broken (PrizePicks: picks from 2 teams): in the sum's place, the line that says so */
.pkwarn {
  font: 500 13px/1.4 var(--body);
  color: var(--bad);
}
/* your legs' average, above the ways (the number each way's "needs" is read against) */
.pkavg {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  font: 600 14px/1 var(--body);
  color: var(--ink);
}
.pkavg b {
  font: 600 14px/1 var(--num);
}
.pkp6 .pkavg:last-child {
  margin-bottom: 0;
}
.pkp6 .up {
  color: var(--pos);
}
.pkp6 .dn {
  color: var(--bad);
}
.pkways .w {
  font: 600 14px/1 var(--body);
  color: var(--ink);
}
.pkways .n {
  justify-self: end;
  font: 500 14px/1.25 var(--num); /* tall enough for its 13px "needs" */
  color: var(--ink);
  white-space: nowrap;
}
.pkways b.n {
  font-weight: 600;
}
.pkways .up {
  color: var(--pos);
}
.pkways .dn {
  color: var(--bad);
}
.pkall {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font: 500 13px/1 var(--body);
  color: var(--muted);
}
.pkall b {
  font: 500 14px/1 var(--num);
  color: var(--ink);
}
/* the ticket's foot: the button to the app across the card (the Arbs ticket's .tkt-bk, its logo and words) */
.pkgo {
  margin-top: 12px;
}
.pkgo .tkt-bk {
  width: 100%;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  font: 600 14px/1 var(--body);
}
.pkgo .tkt-bk svg {
  margin-left: 2px;
}
/* the head line as tall as its Clear button (ticket.css sets it 20px) */
.pktk .tkt-game {
  height: 26px;
}
/* Clear: in the head line, after the pick count; a button as the Arbs ticket's outlined one (ticket.css .tkt-bk.page) */
.pkclr {
  margin-left: 12px;
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  font: 500 12px/1 var(--body);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.12s;
}
.pkclr:hover {
  border-color: var(--ink);
}
/* a phone's folded bar: the chevron that says its head opens it (up: opens; down: folds) */
.pkfold {
  display: none;
}
.pkbar {
  display: none;
}
/* narrower than the rail (1240px): the slip a bar at the bottom once a pick is on it */
@media (max-width: 1239px) {
  body.pkhas[data-view='pk'] .pkbar {
    display: block;
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: 8px;
    z-index: 20;
    max-height: 45vh;
    overflow: auto;
    border-radius: 6px; /* the card's (ticket.css .tkt): its corners not cut by the scroll box */
    box-shadow: var(--panel-shadow); /* here, not on the card: the scroll box would clip it */
  }
  /* the bar only places the ticket: the card keeps its own frame (ticket.css .tkt: its border, padding and corners;
     11/16: the frame had been stripped, nothing set it apart in the dark) */
  body.pkhas[data-view='pk'] #pkView {
    padding-bottom: 240px;
  }
}
/* a phone: its league menu; the rows Outliers' phone rows (phone.css .oxhead / .oxr; the #oxView ones here for #pkView);
   a row on the ticket tinted as on a desktop; Edge below 0 not green */
@media (max-width: 640px) {
  .pklgd {
    display: block !important;
  }
  #pkView .bt b {
    font-size: 14px;
  }
  #pkView .oxr .bt small {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    font: 500 var(--t-sm)/15px var(--body);
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
  }
  #pkView .oxr .bt small img {
    width: 14px;
    height: 14px;
    object-fit: contain;
    flex: none;
  }
  #pkView .oxr .bt small i {
    font-style: normal;
    color: var(--faint);
  }
  #pkView .oxr .bt small .d {
    font: 400 var(--t-xs)/1 var(--num);
    color: var(--muted);
  }
  #pkView .oxr .px b {
    font: 600 var(--t-lg)/18px var(--num);
  }
  #pkView .oxr .ed b.dn {
    color: var(--muted);
  }
  #pkRows .oxr.tk {
    background: var(--accent-tint);
    box-shadow: inset 3px 0 0 var(--accent);
  }
  /* the bar: the app, the league, the phase, the slate and Filters (Chance from is a list in the Filters sheet) */
  #pkBar #pkBasisD {
    display: none;
  }
  #pkBar #pkAppD {
    order: 1;
  }
  #pkBar #pkLgD {
    order: 2;
  }
  #pkBar #pkPhaseD {
    order: 3;
  }
  #pkBar #pkSlateD {
    order: 4;
  }
  #pkBar .oxfbtn {
    order: 5;
  }
  #pkBar :is(#pkAppD, #pkLgD) summary .afn {
    gap: 0;
    font-size: 0;
  }
  #pkRows:not(.flat) :is(.oxhead, .oxr) {
    grid-template-columns: minmax(0, 1fr) 50px 56px 58px;
  }
  #pkView .oxr .pxm {
    justify-self: end;
    font: 500 var(--t-md)/18px var(--num);
    color: var(--ink);
    white-space: nowrap;
  }
  #pkView .oxr .pxm s {
    margin-right: 3px;
    font-size: var(--t-xs);
    color: var(--faint);
  }
  #pkView .oxr .ln s {
    margin-left: 5px;
    font-weight: 500;
    color: var(--faint);
  }
  #pkBar {
    flex-wrap: nowrap;
    gap: 6px;
    min-width: 0;
  }
  #pkBar > .afl,
  #pkBar > .oxfbtn {
    flex: none;
  }
  #pkBar > #pkPhaseD {
    flex: 0 1 auto;
    min-width: 0;
  }
  #pkBar > .afl summary {
    min-width: 0;
    padding: 0 7px;
  }
  #pkBar > .afl summary::after {
    margin-left: 4px;
  }
  #pkBar > .afl summary b {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  #pkSlateD summary .pksg {
    display: none;
  }
  /* the ticket bar, 8px above the tab bar (phone.css .bnav: 14px off the bottom, 62px tall): folded to its head (the app,
     the picks, Clear, the chevron), Open in the app, and the 2-team warning when there's one (it says why there's no
     button); its head opens the rest, as tall as the screen allows under the header */
  body.pkhas[data-view='pk'] .pkbar {
    bottom: calc(84px + env(safe-area-inset-bottom));
    max-height: calc(100dvh - 200px - env(safe-area-inset-bottom));
  }
  .pkbar:not(.open) .tkt > :not(.tkt-game, .pkgo, .pkwarn) {
    display: none;
  }
  .pkbar .tkt-game {
    cursor: pointer;
  }
  .pkbar .pkfold {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    margin-left: 4px;
    color: var(--muted);
  }
  .pkbar .pkfold svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: rotate(180deg);
  }
  .pkbar.open .pkfold svg {
    transform: none;
  }
  /* the list's foot clear of the folded bar (body's padding clears the tab bar: phone.css) */
  body.pkhas[data-view='pk'] #pkView {
    padding-bottom: 130px;
  }
}
