/* v1.1 public overrides */

/* Chain value + copy button: keep the copy affordance aligned with its label row. */
.chain-value-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  vertical-align: middle;
}

.chain-value-cell .chain-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chain-copy-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 6px;
  background: #fff;
  color: #64748b;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}

.chain-copy-btn:hover {
  color: #2563eb;
  border-color: #bfdbfe;
  background: #eff6ff;
}

/* Account bar in the top navigation. */
.nav-account {
  position: relative;
}

.nav-account-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  font-size: 13px;
  cursor: pointer;
}

.nav-account-trigger:hover {
  border-color: #bfdbfe;
  background: #f8fafc;
}

.nav-account-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.nav-account-name {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-account-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  min-width: 280px;
  padding: 12px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .14);
}

.nav-account-menu[hidden] {
  display: none;
}

.nav-account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  font-size: 12px;
}

.nav-account-row + .nav-account-row {
  border-top: 1px solid #f1f5f9;
}

.nav-account-key {
  flex: none;
  color: #64748b;
}

.nav-account-val {
  min-width: 0;
  color: #0f172a;
  text-align: right;
}

.nav-account-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.nav-account-actions .btn {
  flex: 1;
}
