#bosbury-divider {
  position: absolute;
  z-index: 1001;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 0 0 1px rgba(27, 43, 65, .45), 0 0 8px rgba(0, 0, 0, .28);
  pointer-events: none;
  transform: translateX(-1px);
}

#bosbury-divider > span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #203a5b;
  box-shadow: 0 1px 7px rgba(0, 0, 0, .35);
  color: #fff;
  font: 12px/1 Arial, sans-serif;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: ew-resize;
  touch-action: none;
}

#bosbury-credits {
  position: absolute;
  z-index: 1200;
  top: 12px;
  left: 12px;
  display: grid;
  gap: 3px;
  max-width: min(410px, calc(100vw - 24px));
  box-sizing: border-box;
  padding: 8px 10px;
  border-left: 3px solid #203a5b;
  background: rgba(255, 255, 255, .93);
  box-shadow: 0 1px 6px rgba(16, 32, 52, .15);
  color: #465365;
  font: 10px/1.3 Arial, sans-serif;
}

.bos-credit-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#bosbury-credits strong {
  color: #203a5b;
  font-size: 11px;
}

#bos-hide-credits {
  padding: 2px 5px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: #536275;
  font: 10px Arial, sans-serif;
  cursor: pointer;
}

#bos-hide-credits:hover,
#bos-hide-credits:focus-visible {
  border-color: #c7d0dc;
  background: #f3f6f9;
}

#bos-show-credits {
  position: fixed;
  z-index: 2100;
  top: 12px;
  left: 12px;
  display: none;
  padding: 8px 10px;
  border: 1px solid #c7d0dc;
  border-radius: 4px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 2px 8px rgba(16, 32, 52, .2);
  color: #203a5b;
  font: 12px Arial, sans-serif;
  cursor: pointer;
}

#bos-show-credits:hover,
#bos-show-credits:focus-visible {
  background: #f3f6f9;
  border-color: #203a5b;
}

body.bos-credits-hidden #bosbury-credits {
  display: none;
}

body.bos-credits-hidden #bos-show-credits {
  display: block;
}

#bosbury-panel {
  position: fixed;
  z-index: 2100;
  left: 50%;
  bottom: 18px;
  width: min(460px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 14px 17px 12px;
  border: 1px solid #d6dce5;
  border-top: 3px solid #203a5b;
  border-radius: 5px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 3px 15px rgba(16, 32, 52, .2);
  color: #202a36;
  font-family: Arial, sans-serif;
  transform: translateX(-50%);
}

.bos-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.bos-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
}

.bos-title {
  color: #203a5b;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.bos-subtitle {
  margin-top: 3px;
  color: #586474;
  font-size: 12px;
  line-height: 1.35;
}

#bos-reset {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid #c7d0dc;
  border-radius: 3px;
  background: #fff;
  color: #203a5b;
  font: 12px Arial, sans-serif;
  cursor: pointer;
}

#bos-reset:hover,
#bos-reset:focus-visible {
  border-color: #203a5b;
  background: #f3f6f9;
}

#bos-hide-controls {
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: #536275;
  font: 12px Arial, sans-serif;
  cursor: pointer;
}

#bos-hide-controls:hover,
#bos-hide-controls:focus-visible {
  border-color: #c7d0dc;
  background: #f3f6f9;
}

#bos-show-controls {
  position: fixed;
  z-index: 2100;
  top: 12px;
  right: 12px;
  display: none;
  padding: 9px 12px;
  border: 1px solid #c7d0dc;
  border-radius: 4px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 2px 8px rgba(16, 32, 52, .2);
  color: #203a5b;
  font: 13px Arial, sans-serif;
  cursor: pointer;
}

#bos-show-controls:hover,
#bos-show-controls:focus-visible {
  background: #f3f6f9;
  border-color: #203a5b;
}

body.bos-controls-hidden #bosbury-panel {
  display: none;
}

body.bos-controls-hidden #bos-show-controls {
  display: block;
}

.bos-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  color: #465365;
  font-size: 12px;
  font-weight: 600;
}

#bos-range {
  display: block;
  width: 100%;
  height: 18px;
  margin: 0;
  accent-color: #203a5b;
  cursor: ew-resize;
}

#bos-range:focus-visible,
#bos-reset:focus-visible {
  outline: 2px solid #4a79ad;
  outline-offset: 2px;
}

.bos-hint {
  margin-top: 6px;
  color: #687383;
  font-size: 11px;
  line-height: 1.3;
  text-align: center;
}

@media (max-width: 520px) {
  #bosbury-panel {
    bottom: 10px;
    width: calc(100vw - 20px);
    padding: 11px 12px 10px;
  }

  .bos-subtitle {
    max-width: 240px;
  }

  .bos-hint {
    font-size: 10px;
  }

  #bosbury-divider > span {
    width: 36px;
    height: 36px;
  }
}
