/* 装饰画尺寸模拟工具：尺寸标注层（顶 / 左 / 右 / 离地 / 间距），单位 cm */
.wall-sim-measures {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
}

.wall-sim-measure {
  position: absolute;
  color: var(--sim-accent);
  pointer-events: none;
}

/* 水平标注线（左 / 右 / 间距）：两端带刻度 */
.wall-sim-measure-h {
  height: 0;
  border-top: 1px solid currentColor;
}

.wall-sim-measure-h::before,
.wall-sim-measure-h::after {
  position: absolute;
  top: -4px;
  width: 1px;
  height: 8px;
  background: currentColor;
  content: "";
}

.wall-sim-measure-h::before {
  left: 0;
}

.wall-sim-measure-h::after {
  right: 0;
}

/* 垂直标注线（顶 / 离地）：两端带刻度 */
.wall-sim-measure-v {
  width: 0;
  border-left: 1px solid currentColor;
}

.wall-sim-measure-v::before,
.wall-sim-measure-v::after {
  position: absolute;
  left: -4px;
  width: 8px;
  height: 1px;
  background: currentColor;
  content: "";
}

.wall-sim-measure-v::before {
  top: 0;
}

.wall-sim-measure-v::after {
  bottom: 0;
}

/* 标注值 pill：压住线身，保证数字可读 */
.wall-sim-measure span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: inline-block;
  padding: 0.14rem 0.36rem;
  color: var(--sim-ink);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(21, 24, 22, 0.10);
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(21, 24, 22, 0.10);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

body.dark-theme .wall-sim-measure span {
  color: #f1f2eb;
  background: rgba(24, 27, 23, 0.90);
}
