.rf-account-sheet {
  position: fixed;
  inset: 0;
  z-index: 2147483200;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.62);
  padding: 0;
}

.rf-account-sheet.on {
  display: flex;
}

.rf-account-sheet-card {
  width: min(100%, 420px);
  max-height: min(78dvh, 520px);
  background: linear-gradient(180deg, #16121c, #0a0a10);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px 20px 0 0;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rf-account-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.rf-account-sheet-head h3 {
  font-size: 1rem;
  font-weight: 900;
  margin: 0;
}

.rf-account-sheet-close {
  border: 0;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
}

.rf-account-sheet-hint {
  font-size: 0.78rem;
  color: #a8a8b8;
  line-height: 1.35;
  margin: 0;
}

.rf-account-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  min-height: 0;
}

.rf-account-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
  cursor: pointer;
  color: #fff;
  width: 100%;
}

.rf-account-item.is-active {
  border-color: rgba(255, 23, 77, 0.45);
  background: rgba(255, 23, 77, 0.12);
}

.rf-account-item img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.rf-account-item-fallback {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.rf-account-item-text {
  flex: 1;
  min-width: 0;
}

.rf-account-item-text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.2;
}

.rf-account-item-text small {
  display: block;
  font-size: 0.72rem;
  color: #b0b0be;
  margin-top: 2px;
}

.rf-account-item-check {
  color: #ff4081;
  font-size: 1rem;
  flex-shrink: 0;
}

.rf-account-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #ffd4de;
  font-weight: 900;
  font-size: 0.86rem;
  cursor: pointer;
  text-decoration: none;
  width: 100%;
  font-family: inherit;
}

.rf-account-panel-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #d8d8e4;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

@media (min-width: 1100px) {
  .rf-account-sheet {
    align-items: center;
    padding: 20px;
  }

  .rf-account-sheet-card {
    border-radius: 20px;
    max-height: min(70dvh, 480px);
  }
}
