.cfg-tools #board-locate { border-color: #8b9a80; background: var(--fern); }
#board-hole-marker {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px dashed #fffdf0;
  background: #fcf8ec2b;
  box-shadow: 0 0 0 1px #3445368c;
  transform: translate(-50%, -50%);
  cursor: grab;
  touch-action: none;
}
#board-hole-marker[data-dragging] { cursor: grabbing; }
#board-hole-marker::before, #board-hole-marker::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 12px;
  height: 2px;
  border-radius: 1px;
  background: #fffdf0;
  box-shadow: 0 0 1px 1px #344536a0;
  transform: translate(-50%, -50%);
}
#board-hole-marker::after { transform: translate(-50%, -50%) rotate(90deg); }
.board-options fieldset { min-width: 0; border: 0; margin: 0 0 19px; padding: 0; }
.board-options fieldset:last-child { margin-bottom: 0; }
.board-options legend { font-weight: 740; padding: 0; margin-bottom: 7px; }
.board-options p { margin-top: 8px; font-size: .76rem; color: var(--muted); }
.board-dimensions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.board-coordinates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.board-dimensions label { font-size: .78rem; font-weight: 640; }
.board-dimensions span { color: var(--muted); font-size: .7rem; font-weight: 500; }
.board-dimensions input {
  display: block;
  width: 100%;
  min-height: 37px;
  margin-top: 4px;
  border: 1px solid #bcb2a2;
  border-radius: 6px;
  background: #fff;
  padding: 4px 6px;
  font-size: .88rem;
}
.board-dimensions input:invalid { border-color: #9b3424; }
.board-choices { display: flex; flex-wrap: wrap; gap: 6px; }
.board-choices label { position: relative; min-width: 64px; flex: 1; cursor: pointer; }
.board-choices input { position: absolute; opacity: 0; }
.board-choices span {
  display: grid;
  place-items: center;
  min-height: 38px;
  padding: 4px 8px;
  border: 1px solid #cfc6b7;
  border-radius: 7px;
  background: #fcf7ed;
  color: var(--moss);
  font-size: .82rem;
  text-align: center;
}
.board-choices input:checked + span { border-color: var(--moss); background: var(--fern); font-weight: 700; }
.board-choices input:focus-visible + span { outline: 2px solid var(--rust); outline-offset: 3px; }
.board-gradient {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 10px;
  margin-top: 12px;
  color: var(--moss);
  font-size: .8rem;
}
.board-gradient label { font-weight: 650; }
.board-gradient output { font-variant-numeric: tabular-nums; font-weight: 700; }
.board-gradient input { grid-column: 1 / -1; width: 100%; margin: 0; accent-color: var(--moss); }
.board-gradient span { color: var(--muted); font-size: .7rem; }
#board-hole-reset {
  padding: 3px 0;
  color: var(--moss);
  border: 0;
  background: none;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: .8rem;
  font-weight: 650;
}
.board-photos { margin-top: 30px; }
.board-photos h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 10px; }
.board-photos > div { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.board-photos img { aspect-ratio: 1.58; height: auto; object-fit: cover; border-radius: 10px; }
.board-photos figcaption { color: var(--muted); font-size: .8rem; margin-top: 4px; }

@media (max-width: 700px) {
  .board-photos > div { grid-template-columns: minmax(0, 1fr); }
}
