#site-nav {
  background: #1e3559;
  color: #fff;
  box-shadow: inset 0 -1px #172e52;
}

.site-bar {
  display: flex;
  align-items: stretch;
  gap: 3px;
  min-height: 41px;
}

.site-bar a,.site-bar button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #e7f1ff;
  text-align: center;
  text-decoration: none;
  font-family: inherit;
  line-height: 1.3;
  font-size: 14px;
  font-weight: 650;
  padding: 10px 19px;
  min-width: 75px;
}

.site-bar [aria-current=page] {
  background: #344f7f;
  box-shadow: inset 0 -3px #9cc5ff;
  color: white;
}

.site-bar button {
  margin-left: auto;
  cursor: pointer;
}

.site-bar button span {
  margin-left: 6px;
}

dialog.site-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(294px,82vw);
  height: 100dvh;
  max-height: 100dvh;
  max-width: none;
  border: 0;
  border-radius: 16px 0 0 16px;
  padding: 0 14px;
  background: white;
  color: #192e4c;
  overflow: auto;
}

dialog.site-drawer::backdrop {
  background: #172c4b88;
}

.site-drawer header,.tool-title,.tool-flex,.tool-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.site-drawer header {
  padding: 14px 4px;
  border-bottom: 1px solid #dbe5f2;
}

.site-drawer header h2 {
  font-size: 18px;
  margin: 0;
}

.site-drawer header button {
  background: #eef4fd;
  border: 0;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  color: #30496a;
  font-size: 22px;
  cursor: pointer;
}

.site-drawer nav a {
  display: flex;
  text-decoration: none;
  align-items: center;
  gap: 12px;
  color: inherit;
  padding: 11px 4px;
  border-bottom: 1px solid #e1e9f3;
  font-weight: 600;
}

.site-drawer nav i {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #e5effc;
  color: #235aa6;
  text-align: center;
  line-height: 30px;
  font-style: normal;
}

.site-drawer nav a:nth-child(3n) i {
  background: #f3e9fb;
  color: #733fa2;
}

.site-drawer nav a:nth-child(3n + 1) i {
  background: #fceedd;
  color: #88552a;
}

.site-drawer nav a span {
  margin-left: auto;
  color: #7087a2;
}

.site-drawer a[aria-current] {
  color: #1756ae;
}

.tool-page {
  padding-bottom: 18px;
}

.tool-wrap {
  width: min(820px,100%);
  margin: 0 auto;
  padding: 14px 12px 4px;
  box-sizing: border-box;
  color: #192d49;
}

.tool-title {
  margin: 2px 0 15px;
}

.tool-title h1 {
  margin: 0;
  font-size: clamp(23px,4.3vw,32px);
  letter-spacing: -.03em;
}

.tool-wrap button,.tool-wrap select,.tool-wrap input {
  font: inherit;
}

.tool-wrap button,.tool-wrap select,.tool-wrap input:not([type=checkbox]) {
  border: 1px solid #cbd8e8;
  border-radius: 7px;
  background: #fff;
  color: #284769;
  padding: 6px 10px;
  min-height: 34px;
}

.tool-wrap button {
  cursor: pointer;
}

.tool-wrap button:disabled {
  opacity: .53;
  cursor: default;
}

.tool-wrap input[type=number] {
  width: 76px;
}

.tool-source,.tool-note,.tool-wrap small {
  font-size: 12px;
  color: #50647d;
}

.tool-source {
  min-height: 1.4em;
  margin: 9px 1px;
}

.tool-card,.tool-empty,.tool-summary {
  border: 1px solid #cddbeb;
  border-radius: 12px;
  background: white;
  padding: 12px;
  margin: 0 0 10px;
  box-shadow: 0 3px 12px #213a6008;
}

.tool-empty {
  color: #556c86;
  text-align: center;
  padding: 22px 12px;
}

.tool-tabs,.tool-controls,.tool-options,.tool-passes {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.tool-tabs {
  margin-bottom: 8px;
}

.tool-tabs button {
  background: #eaf1fb;
  color: #365372;
}

.tool-wrap [aria-pressed=true],.tool-wrap .tool-primary {
  background: #205bb1;
  border-color: #1a52a3;
  color: #fff;
}

.tool-wrap .tool-primary {
  font-weight: 650;
}

.tool-card h2,.tool-summary h2 {
  font-size: 16px;
  margin: 2px 0 12px;
}

.tool-row-head {
  gap: 6px;
  font-size: 12px;
  color: #536880;
}

.tool-teams {
  text-align: center;
  font-size: 16px;
  margin: 9px 0;
  color: #1b314d;
}

.tool-teams small {
  font-size: 10px;
  font-weight: 500;
  padding: 0 4px;
}

.tool-options {
  margin-top: 5px;
  gap: 5px;
}

.tool-options b {
  display: inline-block;
  font-size: 12px;
  color: #50657b;
  min-width: 42px;
}

.tool-options button {
  font-size: 13px;
  line-height: 1.4;
  padding: 4px 8px;
}

.tool-options em {
  font-style: normal;
  margin-left: 4px;
  font-variant-numeric: tabular-nums;
}

.tool-card summary,.saved-list summary {
  cursor: pointer;
  padding: 6px 0;
  font-weight: 650;
}

.tool-summary {
  border-color: #a8c5e9;
  background: #f7faff;
  margin: 12px 0;
}

.tool-summary p {
  margin: 10px 0;
}

.tool-summary .tool-primary {
  padding: 9px 15px;
}

.tool-passes input {
  accent-color: #215eb5;
}

.tool-passes label {
  border: 1px solid #bfd1e7;
  border-radius: 6px;
  background: #fff;
  padding: 6px 8px;
}

.tool-note {
  line-height: 1.55;
}

.tool-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.tool-outcomes {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.tool-outcomes span,.tool-chip {
  font-size: 12px;
  display: inline-block;
  background: #edf3fb;
  color: #244a78;
  padding: 3px 6px;
  border-radius: 5px;
}

.tool-score {
  color: #174d94;
  font-size: 19px;
  white-space: nowrap;
}

.tool-table-wrap {
  overflow: auto;
  max-width: 100%;
  background: #fff;
  border: 1px solid #d0dceb;
  border-radius: 9px;
}

.tool-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  color: #273d59;
  font-variant-numeric: tabular-nums;
}

.tool-table th,.tool-table td {
  text-align: center;
  white-space: nowrap;
  padding: 6px;
  border-bottom: 1px solid #e3ebf4;
}

.tool-table th {
  background: #eaf2fd;
}

.tool-table .hit {
  font-weight: 750;
  background: #d2e5ff;
  color: #164e97;
}

.tool-buttonbar {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 9px;
}

.tool-controls label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
}

.tool-wrap .ball-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(35px,1fr));
  gap: 5px;
  margin: 8px 0 12px;
}

.tool-wrap .ball-grid button {
  padding: 3px;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}

.ball-grid .bank[aria-pressed=true] {
  background: #7846a4;
  border-color: #704298;
}

.number-line {
  line-height: 1.8;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.number-line strong {
  color: #2259a1;
}

.number-line i {
  color: #813c83;
  font-style: normal;
}

.saved-list details {
  border-top: 1px solid #dae6f2;
  padding: 3px 0;
}

.saved-list p {
  font-size: 13px;
  line-height: 1.6;
}

.tool-match details {
  margin-top: 5px;
}

.tool-league {
  font-size: 12px;
  padding: 2px 7px;
  border-radius: 5px;
  background: #eaf2ff;
}

.tool-alert {
  color: #885425;
}

.tool-form-wide {
  margin-top: 9px;
}

.tool-output {
  margin: 12px 0 0;
  font-weight: 650;
  color: #17497e;
}

.tool-page .footer {
  width: min(820px,100%);
  margin: auto;
  padding: 15px 12px;
}

.tool-card fieldset {
  min-width: 0;
  border: 0;
  padding: 0;
  margin: 10px 0;
}

.tool-card legend {
  font-size: 13px;
  color: #445e7a;
  font-weight: 650;
}

.num-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.num-list li {
  padding: 7px 0;
  border-bottom: 1px solid #e5ecf6;
}

.num-list li button {
  float: right;
  font-size: 12px;
}

@media(max-width:420px) {
  .tool-wrap {
    padding: 12px 7px 3px;
  }
  .tool-card,.tool-summary {
    padding: 10px 8px;
  }
  .tool-tabs {
    gap: 5px;
  }
  .tool-tabs button {
    padding: 5px 9px;
    font-size: 13px;
  }
  .site-bar a,.site-bar button {
    min-width: 66px;
    padding: 10px 12px;
  }
  .tool-options button {
    padding: 4px 6px;
  }
  .tool-wrap input[type=number] {
    width: 63px;
  }
  .tool-table td,.tool-table th {
    padding: 5px;
  }
  .tool-page .footer {
    padding: 12px 8px;
  }
}

.fixture-tools,.plan-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

.fixture-tools {
  margin: 0 0 9px;
}

.fixture-tools .tool-tabs {
  margin: 0;
}

.fixture-tools label,.plan-actions {
  font-size: 12px;
  color: #3b5676;
}

.fixture-tools button,.fixture-tools select,.plan-actions button,.plan-actions a,.banker-pick {
  font: inherit;
  color: #274d7e;
  background: #f3f7fd;
  border: 1px solid #ccd9e9;
  border-radius: 6px;
  padding: 5px 8px;
  cursor: pointer;
  text-decoration: none;
}

.fixture-tools .tool-tabs button {
  font-size: 12px;
}

.fixture-tools select {
  max-width: 105px;
}

.fixture-tools button[aria-pressed=true],.banker-pick[aria-pressed=true],.fixture-quick button[aria-pressed=true] {
  color: white;
  background: #205bb1;
  border-color: #1950a1;
}

.banker-pick {
  font-size: 11px;
  line-height: 1;
  min-width: 26px;
  padding: 5px;
}

.banker-pick:disabled,.plan-actions button:disabled {
  opacity: .54;
}

.fixture-quick {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(65px,1fr));
  gap: 4px;
}

.fixture-quick button {
  background: #f1f6ff;
  border: 1px solid #c8d9ed;
  border-radius: 5px;
  color: #294b74;
  padding: 5px 2px;
  font-size: 12px;
  cursor: pointer;
}

.fixture-quick button:disabled {
  opacity: .55;
}

.fixture-quick b {
  font-variant-numeric: tabular-nums;
}

.plan-actions {
  justify-content: center;
  margin: 9px 0;
}

.tool-summary .amount-step button {
  padding: 2px 8px;
}

.opt-lines {
  list-style: none;
  margin: 0;
  padding: 0;
}

.opt-lines li {
  border-bottom: 1px solid #dae5f2;
  padding: 8px 0;
}

.opt-lines li:last-child {
  border: 0;
}

.opt-lines .tool-flex strong {
  color: #164e91;
}

.opt-lines p {
  font-size: 13px;
  margin: 3px 0;
}

.opt-lines small {
  font-size: 12px;
}
