.primary:disabled,
.secondary:disabled {
  cursor: not-allowed;
  opacity: .42;
}

.empty-description {
  max-width: 560px;
  margin: 0 24px 8px;
  color: var(--muted);
  text-align: center;
  line-height: 1.65;
}

tbody tr.selected {
  background: #f0f6f3;
  box-shadow: inset 3px 0 var(--ok);
}

tbody tr:focus {
  outline: 2px solid #111;
  outline-offset: -2px;
}

.controlled-form {
  display: grid;
  gap: 16px;
  max-height: calc(92vh - 88px);
  padding: 22px 24px;
  overflow: auto;
}

.target-confirmation {
  padding: 16px;
  border: 1px solid #b9d8c9;
  background: #f3faf6;
}

.target-confirmation strong {
  display: block;
  margin-bottom: 7px;
}

.target-confirmation small {
  display: block;
  color: #557266;
  line-height: 1.55;
}

.target-summary {
  margin: 0 0 8px;
  overflow-wrap: anywhere;
  font: 600 12px/1.6 ui-monospace, SFMono-Regular, monospace;
}

.controlled-form .action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-height: none;
  padding: 0;
  overflow: visible;
}

.action-grid.locked {
  opacity: .7;
}

.toggle-field {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #d9d9d5;
  border-radius: 6px;
}

.toggle-label {
  display: flex;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.toggle-label input,
.confirm-check input,
.role-options input {
  width: auto;
}

.role-options {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
  padding: 13px;
  border: 1px solid #d9d9d5;
  border-radius: 6px;
}

.role-options legend {
  padding: 0 6px;
  color: #555;
  font-size: 12px;
  font-weight: 650;
}

.role-options label {
  display: flex;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
}

.confirm-check {
  display: flex;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  padding: 14px;
  border: 1px solid #e0c47b;
  background: #fff9e9;
  color: #5b4712;
  line-height: 1.5;
}

.lock-notice {
  margin: 0;
  border: 1px solid #b9d8c9;
  background: #edf8f2;
  color: #176141;
}

@media (max-width: 600px) {
  .controlled-form .action-grid,
  .role-options {
    grid-template-columns: 1fr;
  }
}
