[data-layout] { min-width: 0; }
[data-layout] .layout-field {
  display: grid;
  gap: 4px;
  margin: 7px 0;
  color: #4b5e51;
  font-size: 12px;
}
[data-layout] select {
  min-width: 0;
  width: 100%;
  text-overflow: ellipsis;
  border: 1px solid #cfd8ce;
  border-radius: 5px;
  background: white;
  padding: 5px 6px;
  color: var(--ink);
}
.alignment-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
}
.alignment-buttons button {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  min-height: 31px;
  padding: 4px;
  border: 1px solid #d9e1d7;
  border-radius: 4px;
  text-align: left;
  font-size: 11px;
  line-height: 1.2;
}
.alignment-buttons svg {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  stroke: #325b45;
  stroke-width: 1.7;
  fill: none;
}
.distribute-buttons { margin-top: 5px; }
.manual-position { margin-top: 9px; }
.manual-position summary { cursor: pointer; color: #38634c; font-size: 12px; }
.spacing-panel { margin-bottom: 13px; }
.spacing-panel h4 { margin: 0 0 5px; font-size: 13px; }
.pair-measurements { max-height: 12.5rem; overflow-y: auto; }
.measurement-row { padding-block: 4px; border-top: 1px solid #e1e7df; }
.pair-name { display: block; font-size: 11px; overflow-wrap: anywhere; margin-bottom: 3px; }
.dim-edit { display: flex; gap: 6px; align-items: center; }
.dim-edit .num { flex: 1; min-width: 0; }
.dim-edit input { min-width: 0; width: 100%; }
.dim-edit input[readonly] { color: #5d6d64; background: #f1f3ee; }
.dim-edit button {
  font-size: 11px;
  padding: 4px 6px;
  border: 1px solid #c4d5c2;
  border-radius: 4px;
  color: #235e3c;
}
.dim-anchor { margin-top: 6px; }
.wall-select-row {
  display: flex;
  align-items: center;
  gap: 3px;
}
.wall-select-row input {
  accent-color: #477a60;
}
.wall-select-row .listwall {
  min-width: 0;
}
