/* locator 专用，依赖 /home.css 变量与 /tool.css */
.bar .field.grow { flex: 1 1 320px; min-width: 0; }
.kv td { font-variant-numeric: tabular-nums; }
.kv td.bad { color: var(--accent); font-weight: 500; }
.chip {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border: 1px solid var(--ink);
  vertical-align: -2px;
}
.note { margin: 12px 0 0; font: 12px/1.6 var(--sans); color: var(--ink-2); }
.note code { font: 11.5px var(--mono); word-break: break-all; }

/* 定位栏预览：模拟经验条位置的细长槽 */
.hud { padding: 26px 16px; border: 1px solid var(--rule); background: var(--hover); }
.track { position: relative; height: 6px; border: 1px solid var(--ink-2); background: var(--paper); }
.dot {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--ink);
  background: var(--paper);
}
.dot.ci { border-radius: 50%; }
.dot.sm { width: 12px; height: 12px; }
.track .dot { position: absolute; top: 50%; transform: translate(-50%, -50%); }
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 10px;
  font: 12px/1 var(--mono);
  color: var(--ink-2);
}
.legend > span { display: inline-flex; align-items: center; gap: 6px; }
.legend .dot { width: 12px; height: 12px; border-width: 1px; }
.legend .dot.sm { width: 8px; height: 8px; }

.pane-head.sub { margin-top: 28px; }
.form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px 14px;
  align-items: center;
}
.form > label { font: 500 12px/1 var(--mono); color: var(--ink-2); }
.form .field { width: 100%; min-width: 0; }
.form .inline { display: flex; gap: 8px; min-width: 0; }
.swatch-in {
  flex: none;
  width: 44px;
  height: 34px;
  padding: 2px;
  border: 1px solid var(--rule);
  background: var(--paper);
  cursor: pointer;
}
.named { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 6px; }
.named button {
  display: inline-flex;
  padding: 4px;
  border: 1px solid transparent;
  background: none;
  cursor: pointer;
  transition: border-color .15s var(--ease);
}
.named button:hover { border-color: var(--rule); }
.named button.on { border-color: var(--ink); }
.named button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.named .chip { width: 20px; height: 20px; margin: 0; }
