/* Fern Golf — course editor chrome. Dark tool skin, light map. */

/* Lexend, the latin subset of the Google variable font. One file covers the
   whole weight axis, so every 400–800 rule shares it. */
@font-face {
  font-family: "Lexend";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/lexend.woff2") format("woff2");
}

:root {
  --bar: #1d2634;
  --bar-2: #26313f;
  --panel: #222c3a;
  --panel-2: #2b3747;
  --ink: #e8eef6;
  --dim: #9aabc0;
  --line: rgba(255, 255, 255, 0.09);
  --accent: #5ec27a;
  --accent-deep: #3f9a5b;
  --danger: #e0675c;
  --bar-h: 50px;
  --panel-w: 296px;
  font-family: "Lexend", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #10161f;
  color: var(--ink);
  font-size: 14px;
}

#editor { position: fixed; inset: 0; }

/* ---- top bar ---- */
#bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: var(--bar-h);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: var(--bar);
  border-bottom: 1px solid #0d1219;
  /* On a tablet the toolbar is wider than the screen, so let it scroll
     sideways rather than clipping the buttons off the right edge. */
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
#bar::-webkit-scrollbar { height: 0; }

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex: 0 0 auto;
}
.brand em { font-style: normal; font-weight: 600; color: var(--dim); }
.brand .dot {
  width: 12px; height: 12px; border-radius: 4px;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(94, 194, 122, 0.18);
}

.spacer { flex: 1; }
.group { display: flex; gap: 4px; align-items: center; flex: 0 0 auto; }
.group + .group { padding-left: 10px; border-left: 1px solid var(--line); }

button { font: inherit; cursor: pointer; white-space: nowrap; }

.tool, .view {
  border: 1px solid transparent;
  background: transparent;
  color: var(--dim);
  border-radius: 9px;
  padding: 7px 11px;
  font-weight: 700;
}
.tool:hover, .view:hover { background: var(--bar-2); color: var(--ink); }
.tool.is-active, .view.is-active {
  background: var(--accent);
  color: #10251a;
  border-color: var(--accent);
}

.ghost {
  border: 1px solid var(--line);
  background: var(--bar-2);
  color: var(--ink);
  border-radius: 9px;
  padding: 7px 11px;
  font-weight: 700;
  text-decoration: none;
}
.ghost:hover { border-color: rgba(255, 255, 255, 0.22); }
.ghost.danger { color: #ffc7c1; border-color: rgba(224, 103, 92, 0.5); }
.ghost.danger:hover { background: rgba(224, 103, 92, 0.16); }

.primary {
  border: 0;
  background: var(--accent);
  color: #10251a;
  border-radius: 9px;
  padding: 7px 13px;
  font-weight: 800;
}
.primary:hover { background: var(--accent-deep); color: white; }

button.sm { padding: 6px 10px; font-size: 13px; }

button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* ---- right panel ---- */
#panel {
  position: absolute;
  top: var(--bar-h);
  right: 0;
  bottom: 26px;
  width: var(--panel-w);
  z-index: 3;
  overflow-y: auto;
  background: var(--panel);
  border-left: 1px solid #0d1219;
  display: flex;
  flex-direction: column;
}

.pane { padding: 14px 14px 16px; border-bottom: 1px solid var(--line); }
.pane[hidden] { display: none; }

.pane h2 {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--dim);
  display: flex;
  align-items: center;
  gap: 8px;
}
.count { color: #6f8299; font-weight: 700; letter-spacing: 0; }

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--dim);
  flex: 1;
}
.field .lab { text-transform: uppercase; }
.field .val {
  text-transform: none;
  letter-spacing: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  padding-top: 2px;
}

input[type="text"], input[type="number"], input[type="search"], select {
  width: 100%;
  border: 1px solid var(--line);
  background: #1a2431;
  color: var(--ink);
  border-radius: 8px;
  padding: 7px 9px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
input[type="range"] { width: 100%; accent-color: var(--accent); }
select { cursor: pointer; }
button:disabled { opacity: 0.45; cursor: not-allowed; }

.row { display: flex; gap: 8px; align-items: flex-end; margin-top: 10px; }
.row + .row { margin-top: 8px; }
.pane .row .field { margin: 0; }
.course-name-field { margin-top: 10px; }
.save-state { color: var(--dim); font-size: 11px; line-height: 1.2; margin-left: auto; text-align: right; }
.publish-check { line-height: 1.35; }

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}
.check input { accent-color: var(--accent); width: 15px; height: 15px; }

.hint { margin: 8px 0 0; font-size: 12px; line-height: 1.4; color: var(--dim); }

#sprite-lib { display: flex; flex-direction: column; gap: 6px; max-height: 280px; overflow: auto; }
#sprite-lib button {
  display: flex; align-items: center; gap: 8px; text-align: left;
  border: 1px solid var(--line); background: var(--bar-2); color: var(--ink);
  border-radius: 8px; padding: 6px 8px; font-weight: 700;
}
#sprite-lib button.is-active { border-color: var(--accent); }
#sprite-lib img { width: 36px; height: 36px; object-fit: contain; background: #c9d4c4; border-radius: 4px; }
.layer-stack {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  color: var(--dim);
  font-size: 11px;
  line-height: 1.25;
}
.layer-stack .stack-title { flex: 0 0 100%; color: var(--ink); font-weight: 700; }
.layer-stack .stack-layer { display: inline-flex; align-items: center; gap: 4px; }
.layer-stack .stack-chip { width: 9px; height: 9px; border-radius: 3px; border: 1px solid rgba(0,0,0,0.25); }
.layer-stack .stack-arrow { opacity: 0.55; }

/* holes tabs */
.holes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.holes button {
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--dim);
  border-radius: 8px;
  min-width: 34px;
  padding: 6px 9px;
  font-weight: 800;
}
.holes button.is-active { background: var(--accent); color: #10251a; border-color: var(--accent); }
.holes button.is-published:not(.is-active) { color: #a7e5b5; border-color: rgba(94, 194, 122, 0.5); }
/* Eagle Hunter holes carry a small gold dot in the corner. */
.holes button { position: relative; }
.holes button.is-eagle::after {
  content: "";
  position: absolute;
  top: -3px;
  right: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e0a82e;
  box-shadow: 0 0 0 2px var(--panel, #1b2620);
}
.eagle-check input:disabled { cursor: not-allowed; }
.eagle-check:has(input:disabled) { color: var(--dim); cursor: not-allowed; }
.eagle-count-note { font-weight: 400; color: var(--dim); }

/* surface swatches */
.swatches { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.swatches button {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--ink);
  border-radius: 9px;
  padding: 7px 9px;
  font-weight: 700;
  font-size: 13px;
  text-align: left;
}
.swatches button:hover { border-color: rgba(255, 255, 255, 0.22); }
.swatches button.is-active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.swatches .chip { width: 14px; height: 14px; border-radius: 4px; flex: 0 0 auto; border: 1px solid rgba(0,0,0,0.25); }
.swatches .ob-chip { background-image: repeating-linear-gradient(45deg, #e0675c 0 4px, #7a2f2a 4px 8px); }

/* anchor segments */
.segs { display: flex; gap: 6px; }
.segs button {
  flex: 1;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--dim);
  border-radius: 9px;
  padding: 8px 4px;
  font-weight: 700;
  font-size: 12px;
}
.segs button.is-active { background: var(--accent); color: #10251a; border-color: var(--accent); }
#brush-sizes {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
#brush-sizes button {
  min-width: 0;
  min-height: 44px;
  padding: 8px 2px;
  font-size: 11px;
}
.brush-label {
  margin: 10px 0 6px;
  color: var(--dim);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* sprite palette */
.palette {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 2px;
}
.palette button {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  background: #182230;
  border-radius: 9px;
  padding: 3px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.palette button:hover { border-color: rgba(255, 255, 255, 0.25); }
.palette button.is-active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.palette img { max-width: 100%; max-height: 100%; image-rendering: auto; }
.palette span {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  font-size: 8px;
  line-height: 1.1;
  padding: 2px 1px;
  text-align: center;
  color: var(--dim);
  background: rgba(0, 0, 0, 0.55);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* layer list */
.list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.list li {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  border-radius: 9px;
  padding: 6px 8px;
  font-size: 12.5px;
}
.list li.is-active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.list li.is-hidden { opacity: 0.45; }
.list .chip { width: 12px; height: 12px; border-radius: 3px; flex: 0 0 auto; border: 1px solid rgba(0,0,0,0.3); }
.list .ob-chip { background-image: repeating-linear-gradient(45deg, #e0675c 0 3px, #7a2f2a 3px 6px); }
.list .label { flex: 1; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .meta { color: var(--dim); font-variant-numeric: tabular-nums; }
.list button.icon {
  border: 0;
  background: transparent;
  color: var(--dim);
  padding: 3px 5px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}
.list button.icon:hover { background: rgba(255, 255, 255, 0.08); color: var(--ink); }
.list button.icon.on { color: var(--accent); }

/* ---- layer drag ---- */
.list li[draggable="true"] { cursor: grab; }
.list li.dragging { opacity: 0.4; }
.list li.drop-before { box-shadow: 0 -2px 0 0 var(--accent) inset; }
.list li.drop-after { box-shadow: 0 2px 0 0 var(--accent) inset; }
.list .grip { color: #6f8299; cursor: grab; font-size: 13px; padding: 0 2px; user-select: none; }

/* ---- admin screen ---- */
#admin {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  padding-bottom: 26px;
  background: radial-gradient(120% 90% at 50% 0%, #1b2b22 0%, #10161f 62%);
}
#admin[hidden] { display: none; }

/* In admin the designer chrome steps aside; the status bar keeps sign-out. */
body.view-admin #bar,
body.view-admin #panel,
body.view-admin #board { display: none; }

.admin-top {
  height: var(--bar-h);
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  background: var(--bar);
  border-bottom: 1px solid #0d1219;
}

.admin-split {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 300px 1fr;
}

.admin-side {
  border-right: 1px solid var(--line);
  padding: 16px 14px;
  overflow-y: auto;
}
.admin-side h2,
.admin-main h2 {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--dim);
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-courses { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.admin-courses li {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
}
.admin-courses li:hover { border-color: rgba(255, 255, 255, 0.22); }
.admin-courses li.is-active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; background: var(--panel-2); }
.admin-courses .title { font-weight: 800; }
.admin-courses .meta { margin-top: 3px; font-size: 12px; color: var(--dim); }

.admin-main { padding: 18px 22px; overflow-y: auto; }
.admin-course-head { max-width: 720px; }
.admin-course-head .field { max-width: 420px; }
.admin-course-head .row { align-items: center; }
.admin-course-head .row + .row { margin-top: 6px; }
.admin-course-head .save-state { margin-left: 0; }
.admin-course-head .hint { max-width: 560px; }

.admin-holes-head { margin: 22px 0 12px; display: flex; align-items: center; gap: 14px; }
.admin-holes-head h2 { margin: 0; }

.admin-holes { display: flex; flex-direction: column; gap: 6px; }
.hole-row {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.hole-row:hover { border-color: rgba(255, 255, 255, 0.24); }
.hole-row.is-live { border-color: rgba(94, 194, 122, 0.5); }
.hole-row .no {
  width: 26px; height: 26px;
  border-radius: 7px;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 13px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.hole-row .left { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.15; }
.hole-row .name { font-weight: 800; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hole-row .meta { font-size: 11px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hole-row.is-live .meta { color: #a7e5b5; }
.hole-row .actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.hole-row .actions .ghost.sm { padding: 5px 8px; font-size: 12px; }
.hole-row .icon {
  width: 30px; height: 30px;
  padding: 0;
  display: grid; place-items: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
}
.hole-row .icon:hover { border-color: rgba(255, 255, 255, 0.3); background: var(--line); }
.hole-row .icon.danger:hover { color: #ff9a8a; border-color: rgba(255, 120, 100, 0.5); }
.hole-row .icon:disabled { opacity: 0.3; cursor: default; }
.hole-row.add-row {
  justify-content: center;
  gap: 8px;
  color: var(--dim);
  font-weight: 800;
  border-style: dashed;
  padding: 10px;
}
.hole-row.add-row:hover { color: var(--ink); }
.hole-row.add-row svg { color: currentColor; }

/* ---- canvas ---- */
#board {
  position: absolute;
  top: var(--bar-h);
  left: 0;
  right: var(--panel-w);
  bottom: 26px;
  width: auto;
  height: auto;
  display: block;
  cursor: crosshair;
  touch-action: none;
}
body.panning #board { cursor: grabbing; }

/* ---- status bar + toast ---- */
#statusbar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 26px;
  z-index: 11;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 14px;
  background: var(--bar);
  border-top: 1px solid #0d1219;
  font-size: 12px;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}
#statusbar .note { margin-left: auto; color: var(--accent); font-weight: 700; }
#statusbar .keys { color: var(--dim); opacity: 0.7; }

#toast {
  position: absolute;
  left: 50%;
  bottom: 46px;
  transform: translateX(-50%);
  z-index: 20;
  background: #10251a;
  color: #d7f5e1;
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
#toast[hidden] { display: none; }

@media (max-width: 1120px) {
  :root { --panel-w: 250px; }
  .brand em { display: none; }
  .admin-split { grid-template-columns: 220px 1fr; }
}
.sprite-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* Eagle Hunter tick on each hole row, and the running count by the heading. */
.hole-row .eagle-tick {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-right: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--dim);
  cursor: pointer;
  white-space: nowrap;
}
.hole-row .eagle-tick input { accent-color: #e0a82e; width: 14px; height: 14px; margin: 0; }
.hole-row .eagle-tick:has(input:checked) { color: #f0c96a; }
.hole-row .eagle-tick:has(input:disabled) { opacity: 0.45; cursor: not-allowed; }
.eagle-total { margin-left: 10px; font-size: 11px; font-weight: 600; color: var(--dim); letter-spacing: 0; text-transform: none; }

/* Move tool: a hand over the map, a closed hand while sliding the hole. */
body.tool-move #board { cursor: grab; }
body.moving-hole, body.moving-hole #board { cursor: grabbing; }

#move-mode { margin-bottom: 8px; }
#move-clear { margin-top: 4px; }
/* Select area: a crosshair to draw the outline with. */
body.tool-move.move-select #board { cursor: crosshair; }
body.tool-move.move-select.over-selection #board { cursor: grab; }

/* green slope */
.slope-box { margin-top: 10px; }
.slope-row { display: flex; gap: 10px; align-items: center; }
.slope-dial { width: 52px; height: 52px; flex: 0 0 auto; color: var(--accent); }
.slope-fields { flex: 1 1 auto; display: grid; gap: 6px; }
.slope-out { float: right; opacity: 0.8; font-variant-numeric: tabular-nums; }

/* icon buttons in the top bar */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 34px;
  padding: 0;
  border-radius: 9px;
  text-decoration: none;
}
.icon-btn .ico {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-btn[hidden] { display: none; }
a.tool.icon-btn { color: var(--dim); }
a.tool.icon-btn:hover { background: var(--bar-2); color: var(--ink); }
.admin-top .icon-btn { margin-right: 8px; }

/* sidebar tabs */
.panel-tabs {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 8px 10px;
  background: #121a22;
  border-bottom: 1px solid var(--line);
}
.panel-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--dim);
  border-radius: 8px;
  padding: 7px 8px;
  font-weight: 700;
}
.panel-tabs button:hover { background: var(--bar-2); color: var(--ink); }
.panel-tabs button.is-active { background: var(--bar-2); color: var(--ink); border-color: var(--line); }
.panel-tabs .ico {
  width: 17px; height: 17px; fill: none; stroke: currentColor;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
#panel[data-tab="tools"] .pane[data-tab="hole"],
#panel[data-tab="hole"] .pane[data-tab="tools"] { display: none; }

/* ---- course screen: compact ---- */
.admin-main .admin-course-head {
  max-width: none;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.admin-main .admin-course-head input {
  flex: 1 1 260px;
  min-width: 160px;
  max-width: 480px;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  background: var(--bar-2);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 7px 10px;
}
.admin-holes { display: block; }
.holes-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.holes-table th {
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 0 8px 6px;
  border-bottom: 1px solid var(--line);
}
.holes-table td {
  padding: 3px 8px;
  height: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  white-space: nowrap;
}
.holes-table tbody tr { cursor: pointer; }
.holes-table tbody tr:hover { background: rgba(255, 255, 255, 0.035); }
.holes-table .c-no { width: 34px; color: var(--dim); font-weight: 700; font-variant-numeric: tabular-nums; }
.holes-table .c-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; max-width: 0; width: 100%; }
.holes-table .c-par { width: 44px; text-align: center; font-variant-numeric: tabular-nums; }
.holes-table .c-status { width: 96px; }
.holes-table .c-eagle { width: 96px; text-align: center; }
.holes-table th.c-par, .holes-table th.c-eagle { text-align: center; }
.holes-table .c-eagle input { accent-color: #e0a82e; width: 15px; height: 15px; margin: 0; vertical-align: middle; cursor: pointer; }
.holes-table .c-eagle input:disabled { opacity: 0.35; cursor: not-allowed; }
.holes-table .c-act { width: 64px; text-align: right; }
.holes-table .c-act .icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; padding: 0; margin-left: 2px;
  border: 1px solid transparent; border-radius: 7px;
  background: transparent; color: var(--dim);
}
.holes-table .c-act .icon:hover { color: var(--ink); background: var(--line); }
.holes-table .c-act .icon.danger:hover { color: #ff9a8a; }
.holes-table .c-act .icon:disabled { opacity: 0.3; cursor: default; }
.holes-table .c-act svg { width: 15px; height: 15px; }
.pill {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--dim);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 700;
}
.pill:hover { color: var(--ink); border-color: rgba(255, 255, 255, 0.3); }
.pill.is-live { color: #a7e5b5; border-color: rgba(94, 194, 122, 0.55); background: rgba(94, 194, 122, 0.12); }
.add-hole-line {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 8px;
  border: 0; background: transparent; color: var(--dim);
  font-weight: 700; font-size: 13px; padding: 6px 8px; border-radius: 8px;
}
.add-hole-line:hover { color: var(--ink); background: var(--bar-2); }
.add-hole-line:disabled { opacity: 0.4; cursor: default; }
.add-hole-line svg { width: 15px; height: 15px; }
.holes-table th { white-space: nowrap; }
.holes-table .c-eagle { width: 110px; }

.admin-course-head .icon-btn:disabled { opacity: 0.35; cursor: default; }
.admin-course-head .icon-btn:disabled:hover { background: transparent; color: var(--dim); }
.admin-course-head .danger-icon:hover { color: #ff9a8a; }

/* Range sign colour picker, shown under the swatches when Range sign is picked. */
.sign-colors { margin-top: 8px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.sign-colors[hidden] { display: none; }
.sign-colors button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; font-size: 11px; }
.sign-colors .chip { width: 10px; height: 10px; border-radius: 3px; border: 1px solid; display: inline-block; }
