/* shared by the tool pages */

.priorities .muted { margin-top: 4px; }
.sliders { display: grid; gap: 10px; margin-top: 16px; max-width: 520px; }
.slider { display: grid; grid-template-columns: 110px minmax(0, 1fr) 24px; align-items: center; gap: 14px; }
.slider.off { opacity: 0.45; }
.slider-label { font-size: 13px; }
.slider-value { font-family: var(--mono); font-size: 13px; text-align: right; color: var(--accent); white-space: nowrap; }
input[type="range"] { width: 100%; accent-color: var(--accent); cursor: pointer; }
input[type="range"]:disabled { cursor: not-allowed; }
.progress { width: 160px; height: 6px; background: var(--surface-2); border: 1px solid var(--rule); }
.progress-fill { height: 100%; background: var(--accent); }
.result-note { margin-top: 12px; }
.board-toggle { margin-bottom: 12px; gap: 0; }
.board-toggle button { border-radius: 0; font-family: var(--mono); font-size: 12px; }
.board-toggle button:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.board-toggle button + button { margin-left: -1px; border-radius: 0 var(--radius) var(--radius) 0; }
.board-toggle button.active { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); position: relative; }
.board-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
  max-width: 820px;
}
.cell {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  min-width: 0;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
  font-family: var(--mono);
  line-height: 1.1;
  overflow: hidden;
}
.cell-sprite { width: 74%; image-rendering: pixelated; pointer-events: none; }
.cell.locked { background: repeating-linear-gradient(135deg, var(--bg) 0 4px, var(--surface-2) 4px 5px); }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 12px; font-size: 12px; }
.key { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 10px; height: 10px; }
.step-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: var(--surface-2);
  border-left: 2px solid var(--accent);
}
.step-bar button { padding: 2px 10px; font-family: var(--mono); }
.step-count { font-size: 12px; color: var(--muted); min-width: 44px; text-align: center; }
.swatch.locked { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--rule); }
.swatch.planned { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.input-summary { margin-top: 14px; font-family: var(--mono); font-size: 11px; color: var(--faint); }
.notes { margin: 14px 0 0; padding-left: 18px; font-size: 13px; }
.notes li { margin-top: 4px; }
.cell-sprite.inline { width: 18px; height: 18px; margin-right: 8px; vertical-align: -4px; }
@media (max-width: 820px) {
  .slider { grid-template-columns: 84px minmax(0, 1fr) 20px; gap: 10px; }
}
.switch-row { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 13px; cursor: pointer; }
.switch {
  appearance: none;
  position: relative;
  flex: none;
  width: 32px;
  height: 18px;
  margin: 0;
  background: var(--field);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.switch::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  background: var(--faint);
  border-radius: 2px;
  transition: transform 0.12s, background 0.12s;
}
.switch:checked { background: var(--accent-soft); border-color: var(--accent); }
.switch:checked::before { transform: translateX(14px); background: var(--accent); }