/* ---------- v9 (v9.js; Avi 11/02–03, the session's design/game-page-mock-v9.html): the NFL's, NHL's and NBA's game
   tabs as one system (body.v9on while one of those tabs is open). The table:
   Name · Alts · Line · Over · Under · Vig · Books, framed, every price with its 18px book logo, Over and Under meeting at
   a divider, green for an arb only. The panel: the third column (a sheet on a phone), one spine down its centre. No page
   zoom on these tabs: the sizes below are the design's. ---------- */
body.v9on > :is(.board, .lgbar, .slatebar, .layout, .pop) {
  zoom: 1; /* the header, league row, strip and board unzoom together (chrome.css zooms them as one) */
}
body.v9on > .layout {
  gap: 20px;
  padding-block: 16px 48px;
}
@media (min-width: 1240px) {
  /* the three columns always, the tab list's tabs in or not (a game's first draw, a league's stream, back from Pick'em),
     so the tables are measured at their own column's width (v9Flow: two columns of tables on a one-column page were each
     squeezed to half once the rail and panel came, Avi 11/16). Both selectors: chrome.css's two-column rule names #nav in
     its :has(), which outranks the plain one while the tabs show; the plain one covers the moment they don't */
  body.v9on > .layout,
  body.v9on > .layout:has(> .secnav > #nav:not([hidden])) {
    grid-template-columns: 196px minmax(0, 1fr) 400px;
  }
  /* the rail: the sticky box no longer scrolls itself (a stuck scroller left a stale layer behind, a black box under the
     rail after scrolling it then the page back up, Avi 11/03); its list scrolls inside it */
  body.v9on .secnav {
    max-height: none;
    overflow: visible;
  }
  body.v9on .secnav > #nav {
    max-height: calc(100vh - 2 * var(--s4));
    overflow-y: auto;
  }
}
body.v9on :is(#v9main, .v9m) {
  font: 400 14px/1.4 var(--body);
  color: var(--ink);
  padding-bottom: calc(100vh - 64px - 36px); /* a row near the end can still come up to the panel's line */
}
@media (min-width: 641px) {
  body.v9on .gper {
    display: none; /* on a desktop v9's title line carries the period; the phone keeps the page's own control in the pills row */
  }
}
/* the title line: the tab's name and the period, one control pattern (text with an underline) */
:is(#v9main, .v9m) .tool {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 36px;
  margin-bottom: 12px;
}
:is(#v9main, .v9m) .tool h1 {
  margin: 0;
  font: 600 18px/1 var(--body);
}
:is(#v9main, .v9m) .tabs {
  display: flex;
  gap: 2px;
  height: 100%;
}
:is(#v9main, .v9m) .tabs button {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 10px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  font: 500 14px/1 var(--body);
  color: var(--muted);
  cursor: pointer;
}
:is(#v9main, .v9m) .tabs button:hover {
  color: var(--ink);
}
:is(#v9main, .v9m) .tabs button.on {
  color: var(--ink);
  border-color: var(--ink);
}
/* the table pills (Avi 11/06): one line under the title line, scrolled sideways, kept at the top of the screen; the
   marked pill the table at the top */
:is(#v9main, .v9m) .v9jump {
  position: sticky;
  top: 0; /* under the page's pinned bars on a phone (app: v9JumpSync sets it) */
  z-index: 3;
  display: flex;
  gap: 6px;
  margin: -4px 0 12px;
  padding: 8px 0;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--ground);
}
:is(#v9main, .v9m) .v9jump::-webkit-scrollbar {
  display: none;
}
:is(#v9main, .v9m) .v9jump button {
  flex: none;
  height: 28px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  font: 500 13px/1 var(--body);
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
}
:is(#v9main, .v9m) .v9jump button:hover {
  color: var(--ink);
}
:is(#v9main, .v9m) .v9jump button.on {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--surface);
}
/* ---------- the tables ---------- */
:is(#v9main, .v9m) .flow {
  display: grid;
  gap: 20px;
  align-items: start;
}
:is(#v9main, .v9m) .col {
  display: grid;
  gap: 20px; /* one gap, phone and desktop */
}
:is(#v9main, .v9m) .empty {
  margin: 8px 2px;
  color: var(--muted);
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tb {
  display: grid;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  overflow: hidden;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tr {
  display: grid;
  column-gap: 16px;
  align-items: center;
  height: 36px;
  padding: 0 8px;
  border-top: 1px solid var(--line);
}
/* a one-winner table's vig row (Avi 11/06): under its outcomes, read not tapped */
:is(#v9main, .v9m) .tr.vf {
  height: 22px; /* a footnote, not a row: half a row's height */
  background: var(--raised);
}
:is(#v9main, .v9m) .tr.vf .tn :is(span, i) {
  height: auto;
  font-size: 12px;
  color: var(--muted);
}
:is(#v9main, .v9m) .tr.vf .tn .ni {
  display: none; /* no logo slot: the label sits at the names' left edge */
}
:is(#v9main, .v9m) .tr.vf .tf {
  font-size: 12px;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tr > * {
  height: 100%;
  display: flex;
  align-items: center;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tr > :not(.tn) {
  justify-content: flex-end;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tr.th {
  border-top: 0;
  border-bottom: 1px solid var(--line-strong);
  font: 500 12px/1 var(--body);
  color: var(--muted);
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tr.th > span {
  text-align: right;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tr.th > .c-yes,
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tr.th > .c-no {
  display: grid; /* the price cell's two slots: the head's text sits in the price box, centred by construction */
  grid-template-columns: 18px 58px;
  column-gap: 5px;
  justify-content: end;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tr.th > .c-no {
  grid-template-columns: 58px 18px;
  justify-content: start;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tr.th > .c-yes > b,
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tr.th > .c-no > b {
  grid-column: 2;
  text-align: center;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tr.th > .c-no > b {
  grid-column: 1;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tr.th > span,
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tr.th > span b {
  font: 500 12px/1 var(--body);
  color: var(--muted);
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tr.th .tn {
  font: 600 13px/1 var(--body);
  color: var(--ink);
  text-align: left;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tr[data-row],
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tr[data-pline] {
  cursor: pointer;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tr:not(.th):hover {
  background: var(--surface);
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tr.on {
  box-shadow: inset 2px 0 0 var(--ink);
  background: var(--surface);
}
/* the columns (every set the page can draw): Name takes the slack · Alts 36 · Line 44 · a price 84 · Vig 44 · Books 28 */
/* the Line column's width, one variable: 44 for a number, 72 (.wl) for an outcome's label (27–24, 1–13, 0 · 7, CIN −3) */
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tb { --lw: 44px; }
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tb.wl { --lw: 72px; }
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tb[data-cols='name yes'] .tr { grid-template-columns: minmax(0, 1fr) 84px; }
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tb[data-cols='name alts yes'] .tr { grid-template-columns: minmax(0, 1fr) 36px 84px; }
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tb[data-cols='name line yes'] .tr { grid-template-columns: minmax(0, 1fr) var(--lw) 84px; }
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tb[data-cols='name yes no'] .tr { grid-template-columns: minmax(0, 1fr) 84px 84px; }
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tb[data-cols='name yes vig'] .tr { grid-template-columns: minmax(0, 1fr) 84px 44px; }
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tb[data-cols='name yes books'] .tr { grid-template-columns: minmax(0, 1fr) 84px 28px; }
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tb[data-cols='name alts line yes'] .tr { grid-template-columns: minmax(0, 1fr) 36px var(--lw) 84px; }
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tb[data-cols='name alts yes no'] .tr { grid-template-columns: minmax(0, 1fr) 36px 84px 84px; }
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tb[data-cols='name alts yes vig'] .tr { grid-template-columns: minmax(0, 1fr) 36px 84px 44px; }
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tb[data-cols='name alts yes books'] .tr { grid-template-columns: minmax(0, 1fr) 36px 84px 28px; }
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tb[data-cols='name line yes no'] .tr { grid-template-columns: minmax(0, 1fr) var(--lw) 84px 84px; }
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tb[data-cols='name line yes vig'] .tr { grid-template-columns: minmax(0, 1fr) var(--lw) 84px 44px; }
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tb[data-cols='name line yes books'] .tr { grid-template-columns: minmax(0, 1fr) var(--lw) 84px 28px; }
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tb[data-cols='name yes no vig'] .tr { grid-template-columns: minmax(0, 1fr) 84px 84px 44px; }
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tb[data-cols='name yes no books'] .tr { grid-template-columns: minmax(0, 1fr) 84px 84px 28px; }
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tb[data-cols='name yes vig books'] .tr { grid-template-columns: minmax(0, 1fr) 84px 44px 28px; }
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tb[data-cols='name alts line yes no'] .tr { grid-template-columns: minmax(0, 1fr) 36px var(--lw) 84px 84px; }
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tb[data-cols='name alts line yes vig'] .tr { grid-template-columns: minmax(0, 1fr) 36px var(--lw) 84px 44px; }
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tb[data-cols='name alts line yes books'] .tr { grid-template-columns: minmax(0, 1fr) 36px var(--lw) 84px 28px; }
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tb[data-cols='name alts yes no vig'] .tr { grid-template-columns: minmax(0, 1fr) 36px 84px 84px 44px; }
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tb[data-cols='name alts yes no books'] .tr { grid-template-columns: minmax(0, 1fr) 36px 84px 84px 28px; }
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tb[data-cols='name alts yes vig books'] .tr { grid-template-columns: minmax(0, 1fr) 36px 84px 44px 28px; }
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tb[data-cols='name line yes no vig'] .tr { grid-template-columns: minmax(0, 1fr) var(--lw) 84px 84px 44px; }
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tb[data-cols='name line yes no books'] .tr { grid-template-columns: minmax(0, 1fr) var(--lw) 84px 84px 28px; }
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tb[data-cols='name line yes vig books'] .tr { grid-template-columns: minmax(0, 1fr) var(--lw) 84px 44px 28px; }
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tb[data-cols='name yes no vig books'] .tr { grid-template-columns: minmax(0, 1fr) 84px 84px 44px 28px; }
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tb[data-cols='name alts line yes no vig'] .tr { grid-template-columns: minmax(0, 1fr) 36px var(--lw) 84px 84px 44px; }
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tb[data-cols='name alts line yes no books'] .tr { grid-template-columns: minmax(0, 1fr) 36px var(--lw) 84px 84px 28px; }
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tb[data-cols='name alts line yes vig books'] .tr { grid-template-columns: minmax(0, 1fr) 36px var(--lw) 84px 44px 28px; }
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tb[data-cols='name alts yes no vig books'] .tr { grid-template-columns: minmax(0, 1fr) 36px 84px 84px 44px 28px; }
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tb[data-cols='name line yes no vig books'] .tr { grid-template-columns: minmax(0, 1fr) var(--lw) 84px 84px 44px 28px; }
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tb[data-cols='name alts line yes no vig books'] .tr { grid-template-columns: minmax(0, 1fr) 36px var(--lw) 84px 84px 44px 28px; }
/* a hairline before Line, before Over, before Under, after Under and before Books: the cell's edge, the row's full height */
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tr > .c-line,
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tr > .c-yes,
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tr > .c-no,
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tr > .c-books {
  border-left: 1px solid var(--line);
  margin-left: -8px;
  padding-left: 8px;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tr > .c-no {
  border-right: 1px solid var(--line);
  margin-right: -8px;
  padding-right: 8px;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tb[data-cols$='no'] .tr > .c-no,
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tb[data-cols*='no books'] .tr > .c-no {
  border-right: 0;
  margin-right: 0;
  padding-right: 0;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tn {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 500;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tn > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tn img,
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tn .fb,
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tn .ni {
  flex: none;
  width: 20px;
  height: 20px;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tn .fb {
  fill: var(--muted);
  stroke: none;
  padding: 1px;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tn .fb path + path {
  fill: none;
  stroke: var(--ground);
  stroke-width: 1.4;
  stroke-linecap: round;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tl {
  font: 500 15px/1 var(--num);
  color: var(--ink);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
:is(#v9main, .v9m) .tr > .c-line {
  justify-content: center;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tf,
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tk {
  font: 400 12px/1 var(--body);
  color: var(--muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tf.arb {
  color: var(--pos);
  font-weight: 600;
}
/* a price: an 18px logo, 5px, the price in 58px; Under mirrored so the two prices meet at the divider */
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .pc {
  display: grid;
  grid-template-columns: 18px 58px; /* two fixed slots: the logo at the outer edge, the price box at the divider; every logo lines up, every price is centred in the same box */
  column-gap: 5px;
  align-items: center;
  justify-content: end;
  height: 100%;
  padding: 0; /* the divider rule's inset outranks this on the divided sides, so a price starts where its head does */
  border: 0;
  background: none;
  font: 500 15px/1 var(--num);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
  cursor: pointer;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .pc > i {
  width: 18px;
  height: 18px;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .pc > i img {
  width: 18px;
  height: 18px;
  border-radius: 3px;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .pc b {
  font-weight: 500;
  text-align: center;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .pc:hover b {
  text-decoration: underline;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .pc.arb b,
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tk.arb {
  color: var(--pos);
  font-weight: 600;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .pc.beat b {
  color: var(--muted);
  font-weight: 400;
}
/* the panel's lines: a beaten price (an easier line costs the same or less) struck through, as the old board's (board.css
   .pc.dom), its book faded; Avi 11/05: a line stays when its other side still beats the ladder */
:is(#v9side, .v9p) .pc.beat b {
  color: var(--faint);
  opacity: 0.55; /* Avi 11/05: fainter still */
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}
:is(#v9side, .v9p) .pc.beat i {
  opacity: 0.45;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .pc.none {
  visibility: hidden;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .pc.c-no,
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .pr > .r .pc {
  grid-template-columns: 58px 18px; /* mirrored: the price box at the divider, the logo at the outer edge */
  justify-content: start;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .pc.c-no > i,
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .pr > .r .pc > i {
  order: 2;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tr > .c-no {
  justify-content: flex-start;
}
/* ---------- the panel: the third column; one spine down its centre ---------- */
:is(#v9side, .v9p) {
  position: sticky;
  top: 16px;
  min-width: 0;
  font: 400 14px/1.4 var(--body);
  color: var(--ink);
}
:is(#v9side, .v9p) .ptitle {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
:is(#v9side, .v9p) .ptitle h2 {
  margin: 0;
  min-width: 0;
  font: 600 18px/1 var(--body);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
:is(#v9side, .v9p) .ptitle .sel {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
  font-weight: 500;
  color: var(--ink);
}
:is(#v9side, .v9p) .ptitle .sel.tl {
  width: auto;
}
:is(#v9side, .v9p) .ptitle .sel img {
  width: 20px;
  height: 20px;
}
:is(#v9side, .v9p) .ptitle .x {
  display: none;
}
:is(#v9side, .v9p) .panel {
  max-height: calc(100vh - 16px - 48px - 16px);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  padding: 0 0 12px;
}
:is(#v9side, .v9p) .panel:empty {
  display: none;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .ps {
  padding-top: 16px;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .ps:first-child {
  padding-top: 0;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .pr {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 28px;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .pr > .l,
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .pr > .r {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .pr > .l {
  padding: 0 10px 0 12px;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .pr > .r {
  padding: 0 12px 0 10px;
  border-left: 1px solid var(--line);
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .pr.th {
  border-bottom: 1px solid var(--line-strong);
  font: 500 12px/1 var(--body);
  color: var(--muted);
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .pr.th > .l > b {
  font: 600 13px/1 var(--body);
  color: var(--ink);
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .pr.th > .l > em,
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .pr .l > .pc {
  margin-left: auto;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .pr em {
  font-style: normal;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .pr .k {
  display: flex;
  gap: 8px;
  margin-left: auto;
  font-style: normal;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .pr .k > * {
  width: 36px;
  text-align: right;
  justify-content: flex-end;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .pr .k > :last-child {
  width: 24px;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .pr .tl {
  width: 44px;
  text-align: right;
  white-space: nowrap;
}
/* an outcome ladder's labels (21-30, 27–24, 0 · 7) in the panel: 64 for 44, the half still fits (12 + 64 + 8 + 84 + 10 = 178 of 183) */
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .ps.lines.wl .pr .tl {
  width: 64px;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .ps .rows {
  border-bottom: 1px solid var(--line);
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .ps .rows .pr:nth-of-type(even) {
  background: var(--raised);
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .ps .rows .pr:hover {
  background: var(--line);
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .ps.lines.tall .rows {
  max-height: calc(12 * 28px);
  overflow-y: auto;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .ps.lines .pr .tl,
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .ps.lines .pr .pc b,
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .ps.lines .pr .tf,
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .ps.lines .pr .tk {
  color: var(--muted);
  font-weight: 400;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .ps.lines .pr.main .tl,
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .ps.lines .pr.main .pc b {
  color: var(--ink);
  font-weight: 500;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .ps.lines .pr .pc.arb b,
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .ps.lines .pr .tf.arb {
  color: var(--pos);
}
/* the open line (Avi 11/09: which alt was open read only from a 2px bar, the main line's ink louder than it): the
   ink bar, a ground of its own over the stripes, its line and prices in bold ink */
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .ps.lines .pr.on {
  box-shadow: inset 2px 0 0 var(--ink);
  background: var(--line);
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .ps.lines .pr.on .tl,
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .ps.lines .pr.on .pc b {
  color: var(--ink);
  font-weight: 600;
}
/* the books: logo · name · price at the spine, mirrored on the right */
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .bk {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  min-width: 0;
  font: 400 13px/1 var(--body);
  color: var(--muted);
  text-decoration: none;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .bk img {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 3px;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .bk .nm {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .bk b {
  flex: none;
  font: 400 14px/1 var(--num);
  font-variant-numeric: tabular-nums;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .bk b.b {
  color: var(--ink);
  font-weight: 600;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) a.bk:hover .nm {
  text-decoration: underline;
  color: var(--ink);
}
/* the history: its header's Over and Under in the lines' colours; the chart on the panel's inner width */
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .pr.th .a {
  color: var(--accent);
  font-style: normal;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .pr.th .b {
  color: var(--near);
}
/* price history: the head row is the readout (each side's best, the time), the chart the two bests as steps */
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .ps.hist .hh > .r {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font: 500 13px/1 var(--num);
  font-variant-numeric: tabular-nums;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .ps.hist .hh > .r .ht {
  min-width: 52px;
  text-align: right;
  font: 400 11px/1 var(--body);
  color: var(--muted);
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .ps.hist .hf {
  display: flex;
  margin: 4px 12px 0;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .ps.hist .seg {
  display: inline-flex;
  gap: 2px;
  margin-left: -6px;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .ps.hist .seg button {
  padding: 3px 6px;
  border: 0;
  border-radius: 3px;
  background: none;
  font: 500 11px/1 var(--body);
  color: var(--muted);
  cursor: pointer;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .ps.hist .seg button.on {
  background: var(--line);
  color: var(--ink);
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .ps.hist .ch {
  display: block;
  height: 132px;
  margin: 6px 12px 2px;
  width: calc(100% - 24px);
  touch-action: pan-y;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .ch path {
  fill: none;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .ch path.a {
  stroke: var(--accent);
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .ch path.b {
  stroke: var(--near);
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .ch .g line {
  stroke: var(--line);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .ch .arb rect {
  fill: var(--pos);
  opacity: 0.14;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .ch text {
  font: 400 10px var(--num);
  fill: var(--muted);
  font-variant-numeric: tabular-nums;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .ch line.sc {
  stroke: var(--ink);
  stroke-width: 1;
  stroke-dasharray: 2 3;
  vector-effect: non-scaling-stroke;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .ch line.sc[hidden] {
  display: none;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .ch image {
  border-radius: 3px;
}
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .he {
  margin: 8px 12px 0;
  font-size: 12px;
  color: var(--muted);
}
.v9scrim {
  display: none;
}
/* ---------- under 1240 the panel has no column: a sheet from the bottom (the phone's) ---------- */
@media (max-width: 1239px) {
  :is(#v9side, .v9p) {
    position: fixed;
    inset: auto 6px 0 6px; /* the tables' 6px inset and frame */
    z-index: 52; /* over the phone's tab bar (50) and the fade behind it (47): a modal sheet covers the bar, its scrim dims it */
    max-height: 88vh;
    display: none;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-bottom: 0;
    border-radius: 5px 5px 0 0;
    padding: 0 0 env(safe-area-inset-bottom);
  }
  body.sheet :is(#v9side, .v9p) {
    display: flex;
  }
  .v9scrim {
    position: fixed;
    inset: 0;
    z-index: 51;
    background: rgb(0 0 0 / 0.5);
  }
  body.sheet .v9scrim {
    display: block;
  }
  :is(#v9side, .v9p) .ptitle {
    flex: none;
    min-height: 44px; /* the market's name may take two lines beside a long open label (a player, a combination) */
    margin: 0;
    padding: 4px 12px 4px 16px;
    gap: 12px;
    border-bottom: 1px solid var(--line-strong);
  }
  :is(#v9side, .v9p) .ptitle h2 {
    font-size: 16px;
    line-height: 1.15;
    flex: 1 1 auto;
    white-space: normal;
  }
  :is(#v9side, .v9p) .ptitle .sel {
    white-space: nowrap;
  }
  :is(#v9side, .v9p) .ptitle .x {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 0;
    background: none;
    font-size: 20px;
    color: var(--muted);
  }
  :is(#v9side, .v9p) .panel {
    max-height: none;
    flex: 1 1 auto;
    overflow-y: auto;
    border: 0;
    border-radius: 0;
  }
}
/* ---------- the phone: Name · Line · Over · Under ---------- */
@media (max-width: 640px) {
  :is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tb { --lw: 48px; } /* 756.5 at 14px, past the 8px hairline inset (Avi 11/04: lines were cut) */
  :is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tb.wl { --lw: 64px; }
  body.v9on > .layout {
    padding-block: 0 24px; /* the grid stays: the market pills (.secnav, order -1) keep their place at the top */
  }
  /* tiny gutters for the tables (Avi 11/03): 6px from the screen's edge, the frame and its corners kept, 10px inside; the
     title line keeps its 16px inset */
  :is(#v9main, .v9m) .flow {
    margin-inline: calc(6px - var(--gutter));
  }

  body.v9on :is(#v9main, .v9m) {
    padding-bottom: 24px;
  }
  :is(#v9main, .v9m) .tool {
    display: none; /* the tab's name is in its pill; the period is the pills row's own control */
  }
  :is(#v9main, .v9m) {
    padding-top: 8px;
  }
  /* two heights: 44 for anything tapped (a row), 36 for anything read (a header); everything on one line (Avi 11/03): a
     name that doesn't fit is cut with an ellipsis, whole in the sheet's title */
  :is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tr {
    column-gap: 5px; /* the name's room: 358 less a 48 line, two 76 prices and three gaps leaves 143 for a 17-letter name at 13px (Olamide Zaccheaus: 115px of text after the logo) */
    padding: 0 10px;
  }
  :is(#v9main, .v9m) .tr.th {
    height: 36px;
  }
  :is(#v9main, .v9m) .tr[data-row] {
    height: 44px;
  }
  :is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tb[data-cols='name line yes no'] .tr { grid-template-columns: minmax(0, 1fr) var(--lw) 76px 76px; }
  :is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tb[data-cols='name yes no'] .tr { grid-template-columns: minmax(0, 1fr) 76px 76px; }
  :is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tb[data-cols='name line yes'] .tr { grid-template-columns: minmax(0, 1fr) var(--lw) 76px; }
  :is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tb[data-cols='name yes'] .tr { grid-template-columns: minmax(0, 1fr) 76px; }
  :is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tn {
    gap: 6px;
    font-size: 13px;
  }
  :is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tn img,
  :is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tn .fb,
  :is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tn .ni {
    width: 18px;
    height: 18px;
  }
  :is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tl {
    font-size: 14px;
  }
  :is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .pc {
    grid-template-columns: 16px 50px; /* a 16px logo, 4px, −10639 at 14px */
    column-gap: 4px;
    font-size: 14px;
  }
  :is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .pc.c-no,
  :is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .pr > .r .pc {
    grid-template-columns: 50px 16px;
  }
  :is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tr.th > .c-yes {
    grid-template-columns: 16px 50px;
    column-gap: 4px;
  }
  :is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tr.th > .c-no {
    grid-template-columns: 50px 16px;
    column-gap: 4px;
  }
  :is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .pc > i,
  :is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .pc > i img {
    width: 16px;
    height: 16px;
  }
  :is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tr > .c-yes,
  :is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tr > .c-no {
    margin-left: -4px;
    padding-left: 4px;
  }
  :is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .tr > .c-no {
    margin-right: 0;
    padding-right: 0;
    border-right: 0;
  }
  :is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .pr > .l {
    padding-left: 16px;
  }
  :is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .pr > .r {
    padding-right: 16px;
  }
  :is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .pr {
    height: 44px;
  }
  :is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .pr.th {
    height: 36px;
  }
  :is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .ps.lines.tall .rows {
    max-height: calc(6 * 44px);
  }
}

/* the panel is the board's: on any other view (Arbs, Outliers, DFS: body[data-view], dfs.js setView) it stays out, with its
   scrim (Avi 11/05: on Arbs it sat under the list, showing the market last opened); last, over the phone sheet's display */
body:not([data-view='board']) #v9side,
body:not([data-view='board']) .v9scrim {
  display: none;
}

/* a book's mark beside its name in the panel's list and the popup: a small pill (Novig's protected twin of a prop reads "protected"; Avi 11/05) */
:is(:is(#v9main, .v9m), :is(#v9side, .v9p)) .bk .nm .pm, .pop .bk .pm { display: inline-block; font: 500 9px/1 var(--mono, ui-monospace, monospace); color: var(--muted, #8a867e); border: 1px solid var(--rule, #3a3835); border-radius: 8px; padding: 2px 5px 1px; margin-left: 5px; vertical-align: 1px; letter-spacing: .02em; text-transform: lowercase; }
