* {
  box-sizing: border-box
}
body {
  margin: 0;
  background: #e9edf3;
  font-family: Arial,Helvetica,sans-serif;
  color: #111
}
.toolbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  background: #1f2937;
  color: #fff;
  padding: 10px;
  text-align: center
}
.toolbar-row {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%
}
.toolbar-promotion {
  font-size: 13px
}
.toolbar-promotion input {
  vertical-align: middle;
  margin-right: 5px
}
.toolbar-version {
  font-size: 12px;
  color: #cbd5e1;
  font-weight: 700
}
.toolbar label {
  font-weight: 700
}
.toolbar select,.toolbar input {
  padding: 7px;
  border-radius: 6px;
  border: 1px solid #94a3b8
}
.toolbar button {
  border: 0;
  border-radius: 7px;
  padding: 9px 13px;
  font-weight: 700;
  cursor: pointer
}
.primary {
  background: #0b5cab;
  color: #fff
}
.red {
  background: #b91c1c;
  color: #fff
}
.green {
  background: #047857;
  color: #fff
}
.hint {
  font-size: 12px;
  color: #cbd5e1
}
.promotionBox {
  position: absolute;
  left: 38.7097%;
  top: 15.38%;
  width: 38.7097%;
  height: 1.35%;
  font-size: 11px;
  line-height: 1.1;
  background: rgba(255,255,255,.96);
  padding: 2px 4px;
  color: #111;
  z-index: 100
}
.promotionBox input {
  vertical-align: middle;
  margin: 0 4px 0 0
}
.bestPass {
  position: absolute;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: Arial,Helvetica,sans-serif;
  font-size: 10px
}
.bestFixed {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial,Helvetica,sans-serif;
  font-size: 10px
}
.bestFixed {
  font-weight: 700
}
.bestField.bestPlayer {
  font-size: 9px
}
.bestField.bestPerf {
  font-size: 10px;
  text-align: center
}
.page-wrap {
  width: min(96vw,930px);
  margin: 16px auto
}
.page {
  position: relative;
  width: 100%;
  aspect-ratio: 1240/1753;
  background: white center/100% 100% no-repeat;
  box-shadow: 0 2px 12px #0003;
  overflow: hidden
}
.templateImg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  user-select: none
}
.page>*:not(.templateImg) {
  z-index: 2
}
.field {
  position: absolute;
  border: 0;
  background: rgba(255,255,255,.78);
  z-index: 10;
  font-family: Arial,Helvetica,sans-serif;
  padding: 0 3px;
  color: #000
}
.field.transparent {
  background: transparent
}
.field-static {
  display: flex;
  align-items: center;
  background: transparent
}
.teamSelectionButton {
  overflow: hidden;
  border: 0;
  background: transparent;
  color: #000;
  cursor: pointer;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap
}
.teamPickerDialog {
  width: min(92vw, 520px);
  border: 1px solid #64748b;
  border-radius: 8px;
  padding: 18px
}
.teamPickerDialog::backdrop {
  background: rgba(0, 0, 0, .45)
}
.teamPickerDialog h2,
.teamPickerDialog p {
  margin: 0 0 12px
}
.teamPickerOptions {
  display: grid;
  gap: 6px;
  max-height: 50vh;
  overflow-y: auto
}
.teamPickerOptions label {
  display: block
}
.teamPickerStatus {
  font-weight: 700
}
.teamPickerDialog menu {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0
}
input.field, textarea.field {
  background: transparent!important;
  border: none!important
}
select.field,select.bestField {
  overflow: hidden;
  text-overflow: ellipsis;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: none!important;
  background: transparent!important;
  border: none!important
}
select#homeTeam.field,select#guestTeam.field {
  font-size: 14px
}
.player {
  font-size: 12px
}
.pass,.scoreAuto,.stand {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial,Helvetica,sans-serif;
  overflow: hidden;
  white-space: nowrap
}
.pass {
  font-size: 13px
}
.scoreAuto,.stand {
  font-weight: 700;
  font-size: 14px
}
.legs {
  font-size: 14px;
  text-align: center
}
.bestField {
  position: absolute;
  border: 0;
  background: transparent!important;
  font-size: 12px
}
.sigPad {
  position: absolute;
  border: 1px dashed rgba(0,0,0,.35);
  background: rgba(255,255,255,.10);
  z-index: 20;
  touch-action: none
}
.sigPad canvas {
  width: 100%;
  height: 100%;
  display: block
}
.sigPad button {
  position: absolute;
  right: clamp(1px,.215vw,2px);
  bottom: clamp(1px,.215vw,2px);
  font-size: clamp(4px,1.075vw,10px);
  padding: clamp(1px,.215vw,2px) clamp(2px,.54vw,5px);
  background: #ffffffdd;
  border: 1px solid #999;
  color: #222
}
.complaintToggleWrap {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30
}
.complaintToggleLabel {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer
}
.complaintToggle {
  position: absolute;
  opacity: 0;
  pointer-events: none
}
.complaintToggleBox {
  position: relative;
  width: 100%;
  height: 100%;
  background: transparent;
  border: 2px solid rgba(0,0,0,0);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  line-height: 1
}
.complaintToggleBox::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  font-size: 20px;
  font-weight: 700;
  color: #111;
  line-height: 1;
  opacity: 0;
  transform: scale(.5);
  transition: opacity .1s ease,transform .1s ease;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center
}
.complaintToggle:checked + .complaintToggleBox::before {
  content: 'X';
  opacity: 1;
  transform: scale(1)
}
#complaints {
  position: absolute;
  border: 0;
  background: rgba(255,255,255,.82);
  font-size: 12px;
  resize: none
}
.complaintPage {
  display: none;
  position: relative;
  margin-top: 24px
}
.complaintPage .complaintHeaderOverlay {
  position: absolute;
  inset: 0;
  pointer-events: none
}
.complaintPage .complaintHeaderValue {
  position: absolute;
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  color: #000;
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
  letter-spacing: 0
}
.complaintPage .complaintTextArea {
  position: absolute;
  left: 6%;
  top: 42%;
  width: 88%;
  height: 27%;
  resize: none;
  border: 2px solid #000;
  border-radius: 0;
  background: rgba(255,255,255,.85);
  padding: 12px;
  font-size: 16px;
  font-family: Arial,Helvetica,sans-serif
}
.complaintPage .modeBadge {
  position: absolute;
  right: 1%;
  top: 1%;
  font-size: 10px;
  background: #fff9;
  border: 1px solid #888;
  border-radius: 4px;
  padding: 2px 4px
}
.modeBadge {
  position: absolute;
  right: 1%;
  top: 1%;
  font-size: 10px;
  background: #fff9;
  border: 1px solid #888;
  border-radius: 4px;
  padding: 2px 4px
}
.hidden {
  display: none!important
}
.bestField {
  box-sizing: border-box;
  margin: 0;
  padding: 0 1px 0 2px;
  line-height: 1.05;
}
.bestHighscorePlayer {
  padding-left: 2px;
  padding-right: 0;
  line-height: 1;
  vertical-align: top;
}
.bestPass {
  padding-left: 2px;
  line-height: 1;
}
.bestPerfDouble {
  font-size: 10px;
}
.data-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(96vw,930px);
  margin: 0 auto 16px;
  color: #475569;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}
.data-summary-link {
  color: #0b5cab;
  text-decoration: underline;
}
.data-summary-button {
  margin-left: 8px;
  border: 1px solid #94a3b8;
  border-radius: 5px;
  background: #f8fafc;
  color: #1e293b;
  padding: 4px 8px;
  cursor: pointer;
  font-weight: 700;
}
.toolbar .data-summary-button {
  margin-left: 0;
  border: 0;
  border-radius: 7px;
  padding: 9px 13px;
}
.data-summary-dialog {
  border: 0;
  border-radius: 10px;
  box-shadow: 0 12px 32px #0005;
  padding: 20px;
  min-width: 250px;
  color: #1e293b;
}
.data-summary-dialog::backdrop {
  background: rgba(15,23,42,.45);
}
.data-summary-dialog h2 {
  margin: 0 0 14px;
  font-size: 18px;
}
.data-summary-dialog dl {
  margin: 0 0 18px;
}
.data-summary-dialog dl div {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 5px 0;
  border-bottom: 1px solid #e2e8f0;
}
.data-summary-dialog dt,.data-summary-dialog dd {
  margin: 0;
}
.data-summary-dialog dd {
  font-weight: 700;
}
.data-summary-dialog form {
  text-align: right;
}
.data-summary-dialog button {
  border: 0;
  border-radius: 5px;
  background: #0b5cab;
  color: #fff;
  padding: 7px 11px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.settings-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 18px;
}
.settings-options label {
  cursor: pointer;
}
@media(max-width:600px) {
  .toolbar {
    gap: 3px;
    padding: 4px
  }
  .toolbar-row {
    gap: 3px
  }
  .toolbar button,.toolbar .data-summary-button {
    border-radius: 4px;
    padding: 4px 6px;
    font-size: 9px;
    min-height: 0
  }
  .toolbar select,.toolbar input {
    border-radius: 4px;
    padding: 4px 5px;
    font-size: 9px;
    min-height: 0
  }
}
select.bestField {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath fill='%23111' d='M0 0h10L5 6z'/%3E%3C/svg%3E")!important;
  background-repeat: no-repeat!important;
  background-position: calc(100% - clamp(1px,.215vw,2px)) center!important;
  background-size: clamp(3px,.75vw,7px)!important;
  padding-right: clamp(4px,1vw,9px)!important;
}
