#family-bowl-preview {
  --pool-surface: light-dark(#ffffff, #121b2e);
  --pool-field: light-dark(#f5f7fc, #1b2840);
  --pool-text: light-dark(#0b1943, #e9efff);
  --pool-secondary: light-dark(#5a6a87, #b4c0dc);
  --pool-line: light-dark(#dce3ef, #394965);
  --pool-control-line: light-dark(#b8c6df, #526788);
  --pool-selected: light-dark(#eaf1ff, #22395f);
  --pool-blue: light-dark(#0755ff, #99bdff);
  --pool-green: light-dark(#087943, #a1dfbd);
  --pool-green-tint: light-dark(#e8f5ed, #203d33);
  --pool-red: light-dark(#b62536, #ffb2be);
  max-width: 1024px;
  margin-inline: auto;
  overflow: clip;
  border: 1px solid var(--pool-line);
  border-radius: 6px;
  background: var(--pool-surface);
  color: var(--pool-text);
  font: 400 14px/1.45 Arial, Helvetica, sans-serif;
}
#family-bowl-preview *, #family-bowl-preview *::before, #family-bowl-preview *::after { box-sizing: border-box; }
#family-bowl-preview [hidden] { display: none !important; }
#family-bowl-preview :is(h1, h2, h3, p) { margin: 0; }
#family-bowl-preview :is(button, select) { color: inherit; font: inherit; }
#family-bowl-preview :is(button, a, select):focus-visible { outline: 2px solid var(--pool-blue); outline-offset: 2px; }
#family-bowl-preview .pool-masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 59px;
  gap: 8px;
  padding: 0 27px;
  border-bottom: 1px solid var(--pool-line);
}
#family-bowl-preview .pool-brand {
  color: var(--pool-text);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
}
#family-bowl-preview .pool-brand span { color: var(--pool-blue); }
#family-bowl-preview .pool-private { color: var(--pool-secondary); font-size: 12px; }
#family-bowl-preview .pool-header {
  padding: 19px 27px 16px;
}
#family-bowl-preview .pool-season {
  color: var(--pool-secondary);
  font-size: 12px;
  font-weight: 700;
}
#family-bowl-preview .pool-season span { margin-inline: 3px; color: var(--pool-blue); }
#family-bowl-preview h1 {
  margin-top: 4px;
  color: inherit;
  font: 750 clamp(27px, 4.3vw, 36px)/1.12 Arial, Helvetica, sans-serif;
  letter-spacing: -.032em;
}
#family-bowl-preview .pool-nav { position: sticky; top: 0; z-index: 4; display: flex; gap: 4px; padding-inline: 22px; border-bottom: 1px solid var(--pool-line); background: var(--pool-surface); }
#family-bowl-preview .pool-nav button { min-height: 46px; padding: 0 12px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--pool-secondary); font-weight: 650; white-space: nowrap; }
#family-bowl-preview .pool-nav [aria-pressed="true"] { border-bottom-color: var(--pool-blue); color: var(--pool-blue); }
#family-bowl-preview .pool-content { min-height: 255px; padding: 20px 27px 23px; }
#family-bowl-preview .pool-section-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; margin-bottom: 13px; }
#family-bowl-preview h2 { color: inherit; font: 700 23px/1.25 Arial, Helvetica, sans-serif; letter-spacing: -.02em; }
#family-bowl-preview .pool-section-title p, #family-bowl-preview .pool-detail { color: var(--pool-secondary); font-size: 12px; }
#family-bowl-preview .pool-pick-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; margin: 0 0 7px; }
#family-bowl-preview .pool-pick-tools label { font-weight: 700; }
#family-bowl-preview .pool-pick-tools #progress { margin-inline-start: auto; color: var(--pool-secondary); font-size: 12px; }
#family-bowl-preview select { min-height: 44px; padding: 4px 7px; border: 1px solid var(--pool-control-line); border-radius: 4px; background: var(--pool-surface); }
#family-bowl-preview #player { min-width: 104px; font-size: 16px; font-weight: 700; }
#family-bowl-preview .pool-game { margin-top: 9px; padding: 12px; border: 1px solid var(--pool-line); border-radius: 11px; background: var(--pool-surface); }
#family-bowl-preview [data-panel="picks"] { --schedule-cols: minmax(155px, .95fr) minmax(245px, 1.55fr) minmax(83px, .44fr); }
#family-bowl-preview .pool-schedule-head,
#family-bowl-preview .pool-schedule-row { display: grid; grid-template-columns: var(--schedule-cols); align-items: center; gap: 11px; border-bottom: 1px solid var(--pool-line); }
#family-bowl-preview .pool-schedule-head { padding: 6px 0 8px; color: var(--pool-secondary); font-size: 12px; font-weight: 650; }
#family-bowl-preview .pool-schedule-row { min-height: 53px; padding: 5px 0; }
#family-bowl-preview .pool-schedule-row .pool-choices { margin-top: 0; }
#family-bowl-preview .pool-schedule-meta { align-self: center; }
#family-bowl-preview .pool-schedule-state { justify-self: start; display: flex; align-items: flex-start; flex-direction: column; gap: 2px; }
#family-bowl-preview .pool-schedule-state .pool-detail { white-space: nowrap; }
#family-bowl-preview .pool-team-result { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 5px; padding: 5px 8px; font-size: 13px; }
#family-bowl-preview .pool-team-result span { overflow-wrap: anywhere; }
#family-bowl-preview .pool-team-result strong { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
#family-bowl-preview .pool-team-result[data-winner="true"] { color: var(--pool-green); font-weight: 700; }
#family-bowl-preview .pool-schedule-row .pool-choice { justify-content: space-between; min-height: 44px; padding: 5px 8px; }
#family-bowl-preview .pool-choice .pool-check { flex: 0 0 12px; text-align: center; }
#family-bowl-preview .pool-team-label { display: flex; align-items: center; gap: 6px; min-width: 0; }
#family-bowl-preview .pool-team-logo { flex: 0 0 auto; width: 23px; height: 23px; object-fit: contain; }
#family-bowl-preview .pool-pending { color: var(--pool-secondary); font-size: 12px; }
#family-bowl-preview .pool-game-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px 12px; }
#family-bowl-preview h3 { color: inherit; font: 700 14px/1.4 Arial, Helvetica, sans-serif; }
#family-bowl-preview .pool-game h3 + p { margin-top: 2px; }
#family-bowl-preview .pool-game-status { flex: 0 0 auto; border-radius: 40px; padding: 2px 8px; background: var(--pool-field); color: var(--pool-secondary); font-size: 11px; font-weight: 650; }
#family-bowl-preview .pool-game-status[data-status="open"] { background: var(--pool-green-tint); color: var(--pool-green); }
#family-bowl-preview .pool-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 9px; }
#family-bowl-preview .pool-choice { display: flex; align-items: center; gap: 8px; padding: 7px 9px; min-height: 45px; border: 1px solid var(--pool-control-line); border-radius: 4px; background: var(--pool-surface); text-align: left; line-height: 1.24; overflow-wrap: anywhere; font-weight: 650; }
#family-bowl-preview .pool-choice[aria-pressed="true"] { border-color: var(--pool-blue); background: var(--pool-selected); color: var(--pool-blue); }
#family-bowl-preview .pool-board { width: 100%; border-collapse: collapse; text-align: left; font-variant-numeric: tabular-nums; }
#family-bowl-preview .pool-board :is(th, td) { padding: 9px 7px; border-bottom: 1px solid var(--pool-line); }
#family-bowl-preview .pool-board thead th { color: var(--pool-secondary); font-size: 12px; }
#family-bowl-preview [data-panel="standings"] .pool-board :is(th, td):nth-child(n+3) { text-align: right; }
#family-bowl-preview .pool-title-status { display: block; margin-top: 2px; color: var(--pool-secondary); font-size: 12px; font-weight: 400; }
#family-bowl-preview .pool-title-status[data-title-status="eliminated"] { color: var(--pool-red); }
#family-bowl-preview .pool-title-status:is([data-title-status="champion"], [data-title-status="co-champion"]) { color: var(--pool-green); font-weight: 700; }
#family-bowl-preview .pool-title-rule { margin-top: 10px; }
#family-bowl-preview .pool-family-scroll { max-block-size: min(34rem, 65dvh); overflow: auto; scrollbar-color: var(--pool-secondary) var(--pool-field); }
#family-bowl-preview .pool-family { width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
#family-bowl-preview .pool-family :is(th, td) { width: 130px; padding: 5px 7px; overflow-wrap: anywhere; }
#family-bowl-preview .pool-family :is(th, td):first-child { position: sticky; z-index: 1; inset-inline-start: 0; width: 176px; border-inline-end: 1px solid var(--pool-line); background: var(--pool-surface); }
#family-bowl-preview .pool-family thead th { position: sticky; z-index: 2; top: 0; background: var(--pool-field); }
#family-bowl-preview .pool-family thead th:first-child { z-index: 3; background: var(--pool-field); }
#family-bowl-preview .pool-family [data-grade="correct"] { color: var(--pool-green); font-weight: 700; }
#family-bowl-preview .pool-family [data-grade="incorrect"] { color: var(--pool-red); }
#family-bowl-preview .pool-family select { width: 100%; font-size: 13px; text-overflow: ellipsis; }
#family-bowl-preview .pool-family select[data-chosen] { background: var(--pool-selected); color: var(--pool-text); }
@media (pointer: coarse) {
  #family-bowl-preview .pool-family select { font-size: 16px; }
}
#family-bowl-preview .pool-feed-control { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 11px; border: 1px solid var(--pool-line); border-radius: 8px; }
#family-bowl-preview .pool-feed-control .pool-action { margin-top: 0; }
#family-bowl-preview .pool-feed-control .pool-action:disabled { border-color: var(--pool-line); color: var(--pool-secondary); }
#family-bowl-preview .pool-action { margin-top: 9px; min-height: 44px; padding: 5px 10px; border: 1px solid var(--pool-control-line); border-radius: 4px; color: var(--pool-blue); background: var(--pool-surface); font-weight: 650; }
#family-bowl-preview .pool-visually-hidden { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
@media (max-width: 620px) {
  #family-bowl-preview .pool-masthead { min-height: 50px; padding-inline: 15px; }
  #family-bowl-preview .pool-brand { font-size: 22px; }
  #family-bowl-preview .pool-header { padding: 15px 15px 11px; }
  #family-bowl-preview .pool-content { padding: 15px; }
  #family-bowl-preview .pool-nav { display: flex; gap: 0; padding-inline: 4px; }
  #family-bowl-preview .pool-nav button { flex: 1; }
  #family-bowl-preview .pool-nav button { padding-inline: 2px; font-size: 12px; }
  #family-bowl-preview .pool-schedule-head { display: none; }
  #family-bowl-preview .pool-schedule-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 7px; padding: 7px 0; }
  #family-bowl-preview .pool-schedule-row .pool-choices { grid-column: 1 / -1; grid-row: 2; }
  #family-bowl-preview .pool-pending { display: none; }
  #family-bowl-preview .pool-schedule-state { grid-column: 2; grid-row: 1; justify-self: end; align-items: flex-end; }
  #family-bowl-preview .pool-family :is(th, td):first-child { width: 128px; }
}

html { color-scheme: light dark; }
body { margin: 0; padding: 14px; background: light-dark(#f5f7fc, #0b1322); }
#family-bowl-preview .pool-notice { padding: 8px 27px; color: var(--pool-secondary); background: var(--pool-field); font-size: 13px; }
#family-bowl-preview .pool-notice[data-error] { color: var(--pool-red); }
#family-bowl-preview .pool-form { display: grid; gap: 10px; max-width: 600px; padding: 15px 0; border-bottom: 1px solid var(--pool-line); }
#family-bowl-preview .pool-form-fields { display: grid; gap: 10px; }
#family-bowl-preview .pool-field { display: grid; gap: 4px; }
#family-bowl-preview .pool-form label { display: grid; gap: 4px; font-weight: 700; }
#family-bowl-preview .pool-form input { width: 100%; min-width: 0; min-height: 44px; padding: 6px 8px; border: 1px solid var(--pool-control-line); border-radius: 4px; background: var(--pool-surface); color: var(--pool-text); font: 400 16px/1.25 Arial, sans-serif; }
#family-bowl-preview .pool-form select { width: 100%; font-size: 16px; text-overflow: ellipsis; }
#family-bowl-preview .pool-form input:focus-visible { outline: 2px solid var(--pool-blue); outline-offset: 2px; }
#family-bowl-preview .pool-primary { justify-self: start; min-height: 44px; padding: 6px 12px; border: 0; border-radius: 4px; color: light-dark(#fff, #0b1943); background: light-dark(#19215b, #99bdff); font-weight: 700; }
#family-bowl-preview .pool-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
#family-bowl-preview .pool-form-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#family-bowl-preview .pool-form-actions button { margin-top: 0; }
#family-bowl-preview .pool-host-import { display: flex; flex-wrap: wrap; align-items: center; column-gap: 10px; padding-top: 6px; }
#family-bowl-preview .pool-host-import button { min-height: 44px; padding: 0 4px; border: 0; background: transparent; color: var(--pool-secondary); font-size: 13px; }
#family-bowl-preview .pool-host-import button:not(:disabled):is(:hover, :focus-visible) { text-decoration: underline; }
#family-bowl-preview .pool-host-import [data-error] { color: var(--pool-red); }
#family-bowl-preview .pool-footer { display: flex; justify-content: flex-end; padding: 1px 27px; border-top: 1px solid var(--pool-line); }
#family-bowl-preview .pool-footer button { min-height: 44px; padding: 0 5px; border: 0; background: var(--pool-surface); color: var(--pool-blue); }
@media (max-width: 620px) {
  body { padding: 0; }
  #family-bowl-preview { border-width: 0; border-radius: 0; }
  #family-bowl-preview .pool-notice { padding-inline: 15px; }
}
