/* EnergyBelt 3.1 — field measurement wall photo reference, no changes to form values. */
[data-eb-ui="3.1"] .page[data-eb31-inspection="compact"] .eb31-side-measures .eb31-wall-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 41%);
  align-items: start;
  gap: clamp(18px, 2vw, 30px);
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
[data-eb-ui="3.1"] .eb31-wall-workbench__fields { min-width: 0; }
[data-eb-ui="3.1"] .eb31-wall-workbench__fields > :first-child { margin-top: 0; }
[data-eb-ui="3.1"] .eb31-wall-workbench__fields .field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
}
[data-eb-ui="3.1"] .eb31-wall-workbench__fields .field,
[data-eb-ui="3.1"] .eb31-wall-workbench__fields input,
[data-eb-ui="3.1"] .eb31-wall-workbench__fields select,
[data-eb-ui="3.1"] .eb31-wall-workbench__fields textarea { min-width: 0; max-width: 100%; }
[data-eb-ui="3.1"] .eb31-wall-reference {
  position: sticky;
  top: 76px;
  align-self: start;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid #d2e3e8;
  border-radius: 16px;
  background: #f8fbfc;
  padding: 14px;
  box-shadow: 0 6px 24px #1b50640b;
}
[data-eb-ui="3.1"] .eb31-wall-reference__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 10px;
  color: #193f50;
}
[data-eb-ui="3.1"] .eb31-wall-reference__head strong { font-size: 15px; font-weight: 750; }
[data-eb-ui="3.1"] .eb31-wall-reference__head small {
  flex: 0 0 auto; color: #608190; font-size: 12px; font-variant-numeric: tabular-nums;
}
[data-eb-ui="3.1"] .eb31-wall-reference__viewport {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: clamp(310px, 51vh, 540px);
  overflow: hidden;
  background: #0b1c28;
  border-radius: 11px;
  touch-action: pan-y;
}
[data-eb-ui="3.1"] .eb31-wall-reference__image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform-origin: center center;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
}
[data-eb-ui="3.1"] .eb31-wall-reference__image.is-zoomed {
  cursor: grab;
  touch-action: none;
}
[data-eb-ui="3.1"] .eb31-wall-reference__image.is-zoomed:active { cursor: grabbing; }
[data-eb-ui="3.1"] .eb31-wall-reference__error {
  color: #e0edf2;
  text-align: center;
  line-height: 1.5;
  font-size: 13px;
  max-width: 290px;
  padding: 20px;
}
[data-eb-ui="3.1"] .eb31-wall-reference__nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 36px;
  height: 43px;
  border: 1px solid #dcebf188;
  border-radius: 10px;
  padding: 0 0 3px;
  background: #173747cf;
  color: #fff;
  font: 600 31px/1 Arial, sans-serif;
  cursor: pointer;
}
[data-eb-ui="3.1"] .eb31-wall-reference__prev { left: 8px; }
[data-eb-ui="3.1"] .eb31-wall-reference__next { right: 8px; }
[data-eb-ui="3.1"] .eb31-wall-reference__nav:hover { background: #087f8c; }
[data-eb-ui="3.1"] .eb31-wall-reference__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 11px;
  min-width: 0;
}
[data-eb-ui="3.1"] .eb31-wall-reference__controls button {
  min-width: 36px;
  min-height: 36px;
  padding: 6px 9px;
  border: 1px solid #b9d8de;
  border-radius: 8px;
  color: #096a7a;
  background: #fff;
  cursor: pointer;
  font: 700 14px/1.2 system-ui,sans-serif;
}
[data-eb-ui="3.1"] .eb31-wall-reference__controls button:hover:not(:disabled) {
  border-color: #0c8996; background: #e7f5f6;
}
[data-eb-ui="3.1"] .eb31-wall-reference__controls button:disabled { cursor: default; opacity: .43; }
[data-eb-ui="3.1"] .eb31-wall-reference__controls output {
  min-width: 44px;
  text-align: center;
  font: 750 16px/1.2 system-ui,sans-serif;
  font-variant-numeric: tabular-nums;
  color: #194858;
}
[data-eb-ui="3.1"] .eb31-wall-reference__controls .eb31-wall-reference__max {
  background: #087f8c;
  color: #fff;
  border-color: #087f8c;
}
[data-eb-ui="3.1"] .eb31-wall-reference__hint {
  font-size: 11px; line-height: 1.45; color: #66828e;
  margin: 10px 2px 0; text-align: center;
}
[data-eb-ui="3.1"] .eb31-wall-reference button:focus-visible {
  outline: 3px solid #0d94a2; outline-offset: 3px;
}
@media(max-width: 1100px) {
 [data-eb-ui="3.1"] .page[data-eb31-inspection="compact"] .eb31-side-measures .eb31-wall-workbench {
   grid-template-columns: minmax(0, 1fr) minmax(270px, 41%);
   gap: 15px;
 }
 [data-eb-ui="3.1"] .eb31-wall-workbench__fields .field-grid {
   grid-template-columns: 1fr;
 }
}
@media(max-width: 850px) {
 [data-eb-ui="3.1"] .page[data-eb31-inspection="compact"] .eb31-side-measures .eb31-wall-workbench {
   grid-template-columns: minmax(0, 1fr);
   gap: 12px;
 }
 [data-eb-ui="3.1"] .eb31-wall-reference {
   position: static; grid-row: 1;
   width: 100%; padding: 11px;
 }
 [data-eb-ui="3.1"] .eb31-wall-reference__viewport { height: clamp(240px, 42vh, 410px); }
 [data-eb-ui="3.1"] .eb31-wall-workbench__fields .field-grid {
   grid-template-columns: repeat(2, minmax(0, 1fr));
 }
}
@media(max-width: 530px) {
 [data-eb-ui="3.1"] .eb31-wall-workbench__fields .field-grid {
   grid-template-columns: minmax(0, 1fr);
 }
 [data-eb-ui="3.1"] .eb31-wall-reference__viewport { height: clamp(220px, 35vh, 310px); }
 [data-eb-ui="3.1"] .eb31-wall-reference__controls { flex-wrap: wrap; }
}

[data-eb-ui="3.1"] .eb31-wall-reference__image[hidden],
[data-eb-ui="3.1"] .eb31-wall-reference__error[hidden],
[data-eb-ui="3.1"] .eb31-wall-reference__nav[hidden] { display: none !important; }
