.account-manager-btn {
  margin-left: auto;
}

.account-subtitle {
  margin: 3px 0 0;
  font-size: 12px;
  font-weight: 400;
}

.account-list {
  display: grid;
  gap: 10px;
}

.account-row {
  width: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  color: var(--text);
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #0d141f;
  transition: .18s ease;
}

.account-row:hover {
  border-color: #496078;
  background: #111b29;
  transform: translateY(-1px);
}

.account-row > span:nth-child(2) {
  min-width: 0;
  display: grid;
}

.account-row b,
.account-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-row small {
  color: var(--muted);
  font-size: 11px;
}

.account-state {
  padding: 5px 8px;
  color: #ff9aaa;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  border: 1px solid #fb718542;
  border-radius: 999px;
  background: #fb718510;
}

.account-state.active {
  color: #65e8c2;
  border-color: #18c08f42;
  background: #18c08f12;
}

.account-row em {
  margin-left: 6px;
  padding: 2px 6px;
  color: var(--green);
  font-size: 9px;
  font-style: normal;
  border: 1px solid #18c08f45;
  border-radius: 999px;
}

.account-loading {
  display: grid;
  gap: 10px;
}

.account-loading i {
  height: 74px;
  border-radius: 14px;
  background: linear-gradient(90deg, #111a28 25%, #1a2739 50%, #111a28 75%);
  background-size: 200% 100%;
  animation: account-shimmer 1.1s linear infinite;
}

.account-error,
.transfer-warning {
  padding: 12px;
  border-radius: 10px;
}

.account-error {
  color: #ff9aaa;
  text-align: center;
  border: 1px solid #fb718544;
  background: #fb71850d;
}

.transfer-warning {
  color: #f8d472;
  font-size: 12px;
  border: 1px solid #f59e0b45;
  background: #f59e0b0e;
}

.transfer-admin[hidden] {
  display: none;
}

.linked-staff-card,
.linked-staff-preview {
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #18c08f45;
  border-radius: 14px;
  background: linear-gradient(145deg, #18c08f16, #101923);
}

.linked-staff-card,
.linked-staff-preview:not([hidden]) {
  display: grid;
}

.linked-staff-preview[hidden] {
  display: none;
}

.linked-staff-card > span:last-child,
.linked-staff-preview > span:last-child {
  min-width: 0;
  display: grid;
}

.linked-staff-card small,
.linked-staff-preview small {
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
}

.linked-staff-card b,
.linked-staff-preview b {
  font-size: 15px;
}

.linked-staff-card span span,
.linked-staff-preview span span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-empty {
  padding: 22px;
  text-align: center;
  border: 1px dashed #40516a;
  border-radius: 15px;
  background: #0d141f;
}

.account-empty p {
  max-width: 410px;
  margin: 6px auto 16px;
  color: var(--muted);
  font-size: 13px;
}

.modal-spacer {
  flex: 1;
}

.account-delete-btn {
  margin-right: auto;
}

@keyframes account-shimmer {
  to { background-position: -200% 0; }
}

@media (max-width: 720px) {
  .account-manager-btn {
    width: 100%;
    margin-top: 0;
  }

  .account-row {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .account-state {
    grid-column: 2;
    justify-self: start;
  }

  .modal-foot:has(.account-delete-btn) {
    flex-wrap: wrap;
  }

  .account-delete-btn {
    width: 100%;
    order: 3;
  }

  .modal-spacer {
    display: none;
  }
}
