.camouflage-controls {
  grid-column: 1 / -1;
  min-width: 0;
}
.camouflage-controls .control-label { flex-wrap: wrap; }
.camouflage-form,
.camouflage-form label {
  display: grid;
  gap: 7px;
}
.camouflage-form { gap: 12px; }
.camouflage-form label { color: #284c38; font-size: 13px; font-weight: 600; }
.camouflage-form :is(input, select, textarea) {
  width: 100%;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #bccfbc;
  border-radius: 7px;
  background: #fafbf6;
  color: #264c39;
  font: inherit;
}
.camouflage-form textarea { resize: vertical; }
.camouflage-form .hint:empty { display: none; }
.camouflage-form .hint { margin: 0; color: #516853; line-height: 1.75; }
.camouflage-table { margin-top: 12px; overflow-x: auto; }
.camouflage-table table {
  width: 100%;
  border-collapse: collapse;
  color: #34503c;
  font-size: 12px;
  text-align: center;
}
.camouflage-table caption { text-align: left; padding-bottom: 6px; }
.camouflage-table th,
.camouflage-table td { border-bottom: 1px solid var(--line); padding: 6px 3px; }

.camouflage-controls .camouflage-guidance {
  margin: 0;
  padding: 9px 11px;
  border: 1px solid #cedecc;
  border-radius: 10px;
  background: #e6eee4;
  color: #294d39;
  font-size: 13px;
  line-height: 1.7;
}

.camouflage-controls .control-label output { color: var(--accent); }
.camouflage-table caption { color: #365a42; font-weight: 600; }
.camouflage-table tbody { font-variant-numeric: tabular-nums; }
.camouflage-table thead th { color: #4c7459; background: #e9efe6; font-weight: 600; }
.camouflage-table tbody tr:last-child { background: #edf3e9; }

.camouflage-camera {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 10px;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: calc(100% - 20px);
}
.camouflage-camera[hidden] { display: none; }
.camouflage-camera .btn {
  padding: 6px 9px;
  border-color: #b1c6b4;
  border-radius: 6px;
  background: #fffffa;
  color: #244a39;
  font-size: 11px;
}

.controls-panel:has(.camouflage-controls) .controls-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
}
.controls-panel:has(.camouflage-controls) .learning-entries {
  width: 100%;
  min-width: 0;
}
.controls-panel:has(.camouflage-controls) .learning-entry {
  min-width: 0;
  white-space: normal;
}

@media (min-width: 701px) and (max-width: 1100px) {
  body:not(.phone-lab) .lab-layout:has(.camouflage-controls) {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    min-height: 0;
  }
  body:not(.phone-lab) .lab-layout:has(.camouflage-controls) .stage-column {
    height: auto;
    border-radius: 9px 9px 0 0;
  }
  body:not(.phone-lab) .lab-layout:has(.camouflage-controls) .stage {
    flex: none;
    aspect-ratio: 1200 / 650;
    min-height: 0;
    height: auto;
  }
  body:not(.phone-lab) .lab-layout:has(.camouflage-controls) .controls-panel {
    border-left: 0;
    border-top: 1px solid var(--bench-rule);
    border-radius: 0 0 9px 9px;
    max-height: none;
  }
}
