.account-block {
  margin-bottom: 12px;
}

.account-block__header {
  display: flex;
  align-items: center;
  width: 100%;
  font: inherit;
  cursor: pointer;
}

.account-block__toggle-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-left: 12px;
}

.account-block__body {
  display: none;
  padding: 16px 20px;
  margin-top: 8px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
}

.account-block--expanded .account-block__body {
  display: block;
}

.account-block__edit-button {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  margin-bottom: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f9fafb;
  color: #374151;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.account-block__edit-button:hover {
  background: #f3f4f6;
}

.account-block__actions {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.account-block__actions .account-block__edit-button {
  margin-bottom: 0;
}

.account-block__delete-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid #fecaca;
  border-radius: 10px;
  background: #fef2f2;
  color: #dc2626;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.account-block__delete-button:hover {
  background: #fee2e2;
}

.account-block__delete-button img {
  width: 16px;
  height: 16px;
}

.account-block__section-title {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  margin: 16px 0 10px;
}

.account-block__section-title:first-of-type {
  margin-top: 0;
}

.account-block__empty {
  color: #9ca3af;
  font-size: 14px;
  margin: 0 0 8px;
}

.history-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 13px;
}

.history-row:last-child {
  border-bottom: none;
}

.history-row__label {
  font-weight: 600;
  flex-shrink: 0;
  min-width: 108px;
}

.history-row__label--up {
  color: #16a34a;
}

.history-row__label--down {
  color: #dc2626;
}

.history-row__note {
  flex: 1;
  color: #6b7280;
}

.history-row__time {
  color: #9ca3af;
  white-space: nowrap;
}
