/* Shared live-gap six-axis UI — import in Calibrate + Annotate (do not fork). */
.live-gap[hidden],
.live-gap__body[hidden] {
  display: none !important;
}
.live-gap {
  padding: 0.45rem 0.55rem 0.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius, 6px);
  background: var(--surface-2);
  font-size: 12px;
  color: var(--text-muted);
  max-height: min(42vh, 320px);
  overflow: auto;
}
.live-gap__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.live-gap__strips {
  margin: 0;
  padding: 0;
}
.live-gap__strips-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.55rem;
  margin-bottom: 0.35rem;
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface-2);
  padding-bottom: 0.1rem;
}
.live-gap__strips-title {
  font-size: 11px;
  color: var(--text);
  font-weight: 600;
}
.live-gap__strips-scope {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.live-gap__strips-legend {
  font-size: 10px;
  color: var(--text-muted);
  margin-left: auto;
}
.live-gap__help {
  flex-shrink: 0;
  margin-left: auto;
  width: 1.05rem;
  height: 1.05rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text-muted);
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  cursor: help;
}
.live-gap__help:hover {
  color: var(--text);
  border-color: var(--text-muted);
}
.thr-strip--dimmed {
  opacity: 0.28;
  filter: grayscale(0.55);
  pointer-events: none;
}
.thr-strip--dimmed .thr-strip__label,
.thr-strip--dimmed .thr-strip__val {
  color: var(--text-muted);
}
.thr-strip--dimmed .thr-strip__track {
  filter: grayscale(0.4);
}
.thr-strip--dimmed .thr-strip__cur,
.thr-strip--dimmed .thr-strip__probe,
.thr-strip--dimmed .thr-strip__issue {
  opacity: 0.4;
}
.thr-strip-list .thr-strip {
  transition: opacity 0.12s ease, filter 0.12s ease;
}
.thr-strip--issue-cur .thr-strip__cur {
  box-shadow:
    0 0 0 1px rgba(15, 17, 23, 0.55),
    0 0 10px 0 rgba(248, 250, 252, 0.55);
}
.thr-strip-list {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  margin-top: 0.2rem;
}
.thr-strip--focus .thr-strip__label {
  color: var(--accent-awb, #7eb6ff);
}
.thr-strip__head {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 0.12rem;
  font-size: 10px;
  line-height: 1.2;
}
.thr-strip__label {
  color: var(--text);
  font-weight: 600;
  flex: 1;
  min-width: 0;
}
.thr-strip__val {
  font-variant-numeric: tabular-nums;
  color: var(--text);
  font-weight: 600;
  min-width: 3.2em;
  text-align: right;
}
.thr-strip__track {
  position: relative;
  height: 16px;
  border-radius: 3px;
  background: #1e1e1e;
  border: 1px solid var(--border);
  overflow: visible;
}
.thr-strip__thr {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  margin-left: 0;
  border-left: 1.5px dashed rgba(201, 168, 120, 0.85);
  z-index: 2;
  pointer-events: none;
  background: none;
}
.thr-strip__thr--primary {
  border-left-width: 2px;
  border-left-color: rgba(201, 168, 120, 1);
  box-shadow: none;
}
.thr-strip__pt {
  position: absolute;
  top: 50%;
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  z-index: 3;
  opacity: 0.05;
  pointer-events: none;
}
.thr-strip__pt--keep {
  background: var(--accent-g);
}
.thr-strip__pt--drop {
  background: var(--accent-out);
}
/* Current group / issue ROI Δ — white glowing dot (same family as probe) */
.thr-strip__cur {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  margin-top: -5px;
  border-radius: 50%;
  background: rgba(248, 250, 252, 0.96);
  border: 2px solid rgba(255, 255, 255, 1);
  box-shadow:
    0 0 0 1px rgba(15, 17, 23, 0.55),
    0 0 8px 0 rgba(248, 250, 252, 0.35);
  z-index: 5;
  pointer-events: none;
}
.thr-strip__align-gate {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 8;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  color: rgba(248, 250, 252, 0.92);
  text-shadow: 0 0 6px rgba(15, 17, 23, 0.85);
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 0.2rem;
}
.thr-strip--align-gate .thr-strip__cur,
.thr-strip--align-gate .thr-strip__probe,
.thr-strip--align-gate .thr-strip__issue {
  display: none !important;
}
/* Per-issue Δ on axis strip (ISSUES row hover) */
.thr-strip__issue {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  margin-top: -5px;
  border-radius: 50%;
  background: rgba(248, 250, 252, 0.96);
  border: 2px solid rgba(255, 255, 255, 1);
  box-shadow:
    0 0 0 1px rgba(15, 17, 23, 0.55),
    0 0 8px 0 rgba(248, 250, 252, 0.35);
  z-index: 4;
  pointer-events: none;
  opacity: 0.88;
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}
.thr-strip__issue.is-hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(255, 255, 255, 1);
  box-shadow:
    0 0 0 2px rgba(248, 250, 252, 0.45),
    0 0 12px 1px rgba(248, 250, 252, 0.55);
  z-index: 7;
  opacity: 1;
  transform: scale(1.15);
}
.thr-strip--issue-hover .thr-strip__cur {
  opacity: 0.35;
}
.thr-strip__probe {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  margin-top: -5px;
  border-radius: 50%;
  background: rgba(248, 250, 252, 0.96);
  border: 2px solid rgba(255, 255, 255, 1);
  box-shadow:
    0 0 0 1px rgba(15, 17, 23, 0.55),
    0 0 8px 0 rgba(248, 250, 252, 0.35);
  z-index: 6;
  pointer-events: none;
}
.probe-hint {
  display: none;
  align-items: center;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  background: var(--surface-2);
}
.probe-hint.is-active,
body.is-hover-probe .probe-hint {
  display: inline-flex;
  color: #f8fafc;
  border-color: rgba(248, 250, 252, 0.45);
  background: rgba(248, 250, 252, 0.1);
}
body.is-hover-probe .compare-cell__photo {
  cursor: crosshair;
}
.hover-probe-cell {
  position: absolute;
  box-sizing: border-box;
  border: 2px solid rgba(248, 250, 252, 0.92);
  box-shadow:
    0 0 0 1px rgba(15, 17, 23, 0.55),
    inset 0 0 0 1px rgba(248, 250, 252, 0.2);
  pointer-events: none;
  z-index: 6;
}
.hover-probe-cell::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: rgba(248, 250, 252, 0.95);
  box-shadow: 0 0 0 1px rgba(15, 17, 23, 0.45);
}
.hover-probe-cell--ref {
  border-style: dashed;
  border-color: rgba(248, 250, 252, 0.78);
  box-shadow: 0 0 0 1px rgba(15, 17, 23, 0.4);
}
.hover-probe-cell--ref::after {
  display: none;
}
