.survey-wall-canvas {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.survey-wall-canvas-tools, .survey-wall-canvas-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
#library-surveys-panel .survey-wall-canvas-tools .button[aria-pressed=true] {
  color: white;
  background: var(--green);
  border-color: var(--green);
}
.survey-wall-canvas-hint {
  min-height: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.survey-wall-canvas-stage {
  position: relative;
  isolation: isolate;
  min-width: 0;
  height: clamp(330px, 51svh, 560px);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--soft);
}
.survey-wall-canvas-stage[data-picking=true] {
  cursor: crosshair;
}
.survey-wall-canvas-stage:focus-visible {
  outline: 2px solid #538571;
  outline-offset: 2px;
}
.survey-wall-canvas-stage > svg, .survey-wall-canvas-labels {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.survey-wall-canvas-labels {
  z-index: 1;
}
.survey-wall-canvas-surface {
  fill: var(--surface);
  stroke: none;
}
.survey-wall-canvas-photo {
  opacity: .75;
}
.survey-wall-canvas-outline {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.4;
  stroke-linejoin: round;
}
.survey-wall-canvas-width { --survey-dim-color: #275544; }
.survey-wall-canvas-height { --survey-dim-color: #284d69; }
.survey-wall-canvas-mark { --survey-dim-color: #78470f; }
.survey-wall-canvas-line {
  stroke: var(--survey-dim-color, var(--green));
  stroke-width: 1.2;
  pointer-events: none;
}
.survey-wall-canvas-line.survey-wall-canvas-empty {
  opacity: .5;
}
.survey-wall-canvas-leader {
  opacity: .72;
  stroke-dasharray: 3 3;
}
.survey-wall-canvas-guide {
  stroke: #154d39;
  stroke-width: 2;
  stroke-dasharray: 6 3;
}
.survey-wall-canvas-dot {
  fill: var(--survey-dim-color);
  stroke: white;
  stroke-width: 1;
}
.survey-wall-canvas-chip {
  position: absolute;
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  pointer-events: auto;
  cursor: pointer;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--survey-dim-color, var(--green));
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  isolation: isolate;
}
.survey-wall-canvas-chip::before {
  content: "";
  position: absolute;
  inset: 9px 1px;
  z-index: -1;
  border: 1px solid color-mix(in srgb, var(--survey-dim-color) 49%, white);
  border-radius: 6px;
  background: var(--surface);
}
.survey-wall-canvas-chip[data-empty=true]::before {
  border-style: dashed;
}
.survey-wall-canvas-chip:hover::before, .survey-wall-canvas-chip:focus-visible::before {
  border-color: var(--survey-dim-color);
}
.survey-wall-canvas-popup {
  position: absolute;
  z-index: 2;
  width: min(260px, calc(100% - 12px));
  max-height: calc(100% - 12px);
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  box-shadow: 0 6px 18px #1f392428;
}
.survey-wall-canvas-popup[hidden] {
  display: none;
}
.survey-wall-canvas-form, .survey-wall-canvas-field {
  display: grid;
  gap: 7px;
}
.survey-wall-canvas-field {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.survey-wall-canvas-field :is(input, select) {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.survey-wall-canvas-field input[aria-invalid=true] {
  border-color: #ad4837;
}
.survey-wall-canvas-error {
  color: #9b3628;
  font-size: 13px;
}
.survey-wall-canvas-error:empty {
  display: none;
}
.survey-wall-canvas-actions .button {
  flex: 1 1 auto;
}
.survey-wall-canvas-remove {
  color: #9b3628;
}
