.aca { max-width: 640px; }
.aca-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.aca-tab {
  padding: 8px 12px; font-size: 13px; font-weight: 700; border: 1px solid #d9e0d4; border-radius: 6px;
  background: #fff; cursor: pointer; color: #27331f;
}
.aca-tab-active { background: #19616a; border-color: #19616a; color: #fff; }
.aca-panel { display: flex; flex-direction: column; gap: 12px; }
.aca-panel label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; color: #27331f; }
.aca-panel input, .aca-panel select { padding: 9px 11px; font-size: 14.5px; border: 1px solid #d9e0d4; border-radius: 6px; }
.aca-panel input:focus, .aca-panel select:focus { outline: 2px solid #19616a; outline-offset: 1px; }
.aca-row2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.aca-row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.aca-check-row { display: flex; flex-wrap: wrap; gap: 14px; }
.aca-check {
  flex-direction: row !important; align-items: center; gap: 6px !important; font-weight: 700;
}
.aca-check input[type="checkbox"] { width: auto; padding: 0; }
.aca-check-inline { justify-content: flex-end; }
.aca-out { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.aca-cmd {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 12px; background: #f3f4f8; border: 1px solid #d9e0d4; border-radius: 6px;
}
.aca-cmd code { font-family: ui-monospace, monospace; font-size: 13.5px; color: #19616a; font-weight: 700; word-break: break-all; }
.aca-cmd span { font-size: 12.5px; color: #5b6b56; }
.aca-hint { font-size: 12.5px; color: #5b6b56; margin: 4px 0 0; }
.aca-note { margin-top: 16px; font-size: 13px; color: #5b6b56; }

.aca-rows { display: flex; flex-direction: column; gap: 10px; }
.aca-row-item {
  display: flex; flex-direction: column; gap: 8px; padding: 10px; background: #f3f4f8;
  border: 1px solid #d9e0d4; border-radius: 6px; position: relative;
}
.aca-row-item-head { display: flex; gap: 8px; align-items: flex-end; }
.aca-row-item-head label { flex: 1; }
.aca-row-remove {
  padding: 9px 11px; font-size: 13px; font-weight: 700; border: 1px solid #d9e0d4; border-radius: 6px;
  background: #fff; color: #27331f; cursor: pointer; white-space: nowrap;
}
.aca-row-remove:hover { border-color: #19616a; color: #19616a; }
.aca-row-arg label { margin: 0; }
.aca-add-row {
  align-self: flex-start; padding: 9px 14px; font-size: 13px; font-weight: 700; border: 1px solid #19616a;
  border-radius: 6px; background: #fff; color: #19616a; cursor: pointer;
}
.aca-add-row:hover { background: #19616a; color: #fff; }

@media (max-width: 480px) {
  .aca-row2 { grid-template-columns: 1fr; }
  .aca-row3 { grid-template-columns: 1fr; }
  .aca-row-item-head { flex-direction: column; align-items: stretch; }
}
