.account-dialog {
  width: min(580px, calc(100% - 30px));
}

.account-dialog form {
  padding: 20px 28px 16px;
  gap: 12px;
}

.account-dialog .dialog-head {
  align-items: center;
}

.account-dialog .dialog-head h2 {
  font-size: 18px;
}

.account-tabs {
  display: flex;
  width: max-content;
  padding: 3px;
  margin: 10px 0 12px;
  border-radius: 10px;
  background: #f1f1f3;
}

.account-tabs button {
  height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  color: #687181;
  background: transparent;
}

.account-tabs button.active {
  color: #202832;
  background: #fff;
  box-shadow: 0 1px 4px rgba(20, 30, 45, .18);
}

.page-tabs {
  margin: 0 0 20px;
}

.account-fields {
  display: grid;
  gap: 9px;
}

.account-fields input,
.account-fields textarea,
.compact-region {
  min-height: 47px;
  padding: 12px;
  border: 0;
  border-radius: 7px;
  background: #f5f5f7;
}

.compact-region {
  color: #657181;
}

.account-options {
  display: grid;
  gap: 9px;
}

.account-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #28323f;
}

.account-options input {
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 0;
  accent-color: var(--blue);
}

.account-dialog .dialog-actions {
  padding-top: 20px;
  border: 0;
}

.plain-button {
  min-height: 38px;
  padding: 0 18px;
  border: 0;
  color: #27313d;
  background: transparent;
}

.instance-checker {
  padding-top: 16px;
  margin-top: 34px;
  border-top: 1px solid #dfe3e8;
}

.checker-head h2 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 500;
}

.checker-head p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
}

.checker-region {
  width: 100%;
  margin-bottom: 8px;
  border: 0;
  border-radius: 8px;
  background: #f3f3f5;
}

.checker-button {
  min-width: 80px;
  margin-bottom: 14px;
}

.checked-table {
  display: flex;
  flex-direction: column;
  min-height: 390px;
  padding: 16px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(22, 34, 50, .04);
}

.checked-table table {
  min-width: 1050px;
}

.checked-table th {
  padding: 12px;
  border: 0;
  background: #f4f4f6;
}

.checked-table td {
  padding: 13px 12px;
}

.checked-table input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 0;
}

.checker-empty {
  height: 170px;
  color: #9aa2ad;
  text-align: center !important;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
}

.status-dot.on {
  background: #31b460;
}

.status-dot.off {
  background: #e25559;
}

.install-agent-button {
  height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: var(--blue);
  white-space: nowrap;
}

.installed-label,
.agent-state {
  color: #778292;
  white-space: nowrap;
}

.installed-label,
.agent-state.on {
  color: #1f9d55;
}

.agent-state.off {
  color: #d94b52;
}

.batch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 18px;
  margin-top: auto;
}

.batch-actions button {
  height: 40px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  color: #687181;
  background: #ededf0;
}

.batch-actions .delete {
  color: #fff;
  background: #f47ba3;
}

button:disabled {
  cursor: not-allowed;
  opacity: .65;
}

#accountRows tr.account-active td {
  background: #eef6ff;
  border-bottom-color: #cfe3ff;
}

.current-account-mark {
  display: inline-block;
  margin-left: 9px;
  padding: 3px 7px;
  border-radius: 5px;
  color: #0878e8;
  background: #dceeff;
  font-size: 11px;
  font-weight: 600;
}

.row-actions .use-account.active {
  color: #fff;
  background: #1677ff;
  opacity: 1;
}
