.gym-quick-bar {
  position: sticky;
  top: 0;
  z-index: 10020;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 24px 12px 48px;
  background: #102d50;
  color: white;
  box-shadow: 0 2px 12px #102d5020;
  font: 14px system-ui;
}
.gym-quick-bar input {
  width: min(320px, 30vw);
  margin: 0;
  background: #fff;
  color: #102d50;
}
.gym-quick-bar button {
  background: transparent;
  color: white;
  border: 1px solid #ffffff50;
  padding: 9px 12px;
  white-space: nowrap;
  margin: 0;
}
.gym-quick-buttons {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.quick-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  max-height: 100dvh;
  height: 100dvh;
  margin: 0;
  width: min(540px, 100vw);
  max-width: 100vw;
  box-sizing: border-box;
  border: 0;
  border-left: 1px solid #dce3eb;
  background: #fff;
  color: #16314f;
  padding: 24px;
  overflow: auto;
  box-shadow: -12px 0 40px #102d5030;
}
.quick-drawer::backdrop {
  background: #081a3190;
}
.quick-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #dbe3ec;
  margin-bottom: 22px;
}
.quick-drawer-head h2 {
  font-size: 22px;
  margin: 0 0 18px;
}
.quick-drawer-head button {
  margin: 0 0 18px;
  background: transparent;
  color: #16314f;
  border: 0;
  font-size: 24px;
}
.quick-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.quick-drawer label {
  display: block;
  font-weight: 600;
  margin: 14px 0;
}
.quick-drawer input,
.quick-drawer select,
.quick-drawer textarea {
  width: 100%;
  box-sizing: border-box;
  margin-top: 7px;
}
.quick-drawer .quick-check,
.quick-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  margin: 18px 0;
}
.quick-check input,
.quick-drawer .quick-check input {
  width: auto;
  margin: 3px 0;
}
.quick-tabs {
  display: flex;
  gap: 10px;
  margin: 20px 0;
}
.quick-tabs button {
  flex: 1;
}
.quick-drawer footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
  border-top: 1px solid #dbe3ec;
  padding-top: 20px;
}
.quick-status {
  white-space: pre-wrap;
  margin: 16px 0;
}
.quick-results article {
  padding: 16px 0;
  border-bottom: 1px solid #dbe3ec;
}
.quick-results a {
  font-weight: 600;
}
.quick-drawer img.waiver-qr {
  display: block;
  width: 240px;
  max-width: 100%;
  margin: 24px auto;
}
.quick-drawer pre,
.public-waiver-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  line-height: 1.7;
}
.quick-drawer details {
  border-top: 1px solid #dbe3ec;
  margin-top: 20px;
  padding: 18px 0;
}
.quick-link {
  display: block;
  margin: 16px 0;
  overflow-wrap: anywhere;
}
body:has(.gym-quick-bar) > header {
  position: relative;
  top: auto;
}
.quick-drawer [hidden] {
  display: none !important;
}
@media (max-width: 620px) {
  .gym-quick-bar {
    flex-wrap: wrap;
    padding: 10px 12px 10px 42px;
    gap: 8px;
  }
  .gym-quick-bar input {
    width: 100%;
  }
  .gym-quick-buttons {
    width: 100%;
    margin: 0;
    gap: 6px;
  }
  .gym-quick-buttons button {
    flex: 1;
    font-size: 12px;
    padding: 9px 5px;
  }
  .quick-drawer {
    padding: 20px;
  }
  .quick-fields {
    grid-template-columns: 1fr;
  }
  .quick-drawer-head h2 {
    font-size: 20px;
  }
}
.gym-quick-bar,
.gym-quick-buttons {
  box-sizing: border-box;
  min-width: 0;
}
.gym-quick-buttons button {
  min-width: 0;
  flex: 1 1 0;
}
.gym-quick-bar input {
  min-width: 0;
}
@media (max-width: 620px) {
  .gym-quick-buttons button {
    width: 0;
    font-size: 11px;
    letter-spacing: 0;
  }
}

#role-mode-toggle {
  color: white;
  margin: 0;
  white-space: nowrap;
  font-size: 13px;
}
@media (max-width: 620px) {
  #role-mode-toggle {
    width: 100%;
    text-align: right;
  }
}
