/* Compact user account cards; shared components keep their existing appearance. */
.xuran-account-page .account-tile {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: none;
  transition: none;
}
.xuran-account-page .account-tile-content { padding: 17px; }
.xuran-account-page .account-identity { gap: 11px; align-items: center; }
.xuran-account-page .account-identity img { width: 48px; height: 48px; border-radius: 12px; }
.xuran-account-page .account-name { font-size: 15px; line-height: 23px; font-weight: 600; }
.xuran-account-page .account-level {
  height: 19px;
  padding-inline: 6px;
  border-radius: 5px;
  background: var(--muted);
  color: var(--muted-foreground);
  font-size: 10px;
}
.xuran-account-page .account-meta { flex-wrap: wrap; gap: 6px; margin-top: 4px; font-size: 11px; }
.xuran-account-page .account-meta > span[aria-hidden="true"] { display: none; }
.xuran-account-page .account-state { gap: 4px; font-size: 10px; font-weight: 500; }
.xuran-account-page .account-state:has(.text-emerald-500) { color: #059669; }
.xuran-account-page .account-remove { align-self: flex-start; opacity: .65; }
.xuran-account-page .account-remove:hover { opacity: 1; }
.xuran-account-page .account-details-grid {
  gap: 12px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--border);
}
.xuran-account-page .account-detail {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.xuran-account-page .account-detail > div:first-child { flex-shrink: 0; gap: 4px; font-size: 10px; }
.xuran-account-page .account-detail > div:first-child svg { width: 12px; height: 12px; }
.xuran-account-page .account-detail-value { min-width: 0; margin-top: 0; font-size: 12px; font-weight: 500; }
.xuran-account-page .account-subscription {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}
.xuran-account-page .account-subscription > div:first-child { flex-shrink: 0; gap: 4px; font-size: 10px; }
.xuran-account-page .account-subscription > div:first-child svg { width: 12px; height: 12px; }
.xuran-account-page .account-subscription > div:last-child:not(:first-child) { min-width: 0; margin-top: 0; gap: 5px; }
.xuran-account-page .account-subscription [data-slot="badge"] { max-width: 100%; border-radius: 5px; padding-inline: 6px; font-size: 10px; }
.xuran-account-page .account-actions { gap: 7px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.xuran-account-page .account-tile:not(.account-tile-recycled) .account-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.xuran-account-page .account-actions > button {
  min-width: 0;
  height: 34px;
  grid-column: auto;
  gap: 4px;
  padding-inline: 6px;
  border-radius: 7px;
  font-size: 11px;
  white-space: nowrap;
}
.xuran-account-page .account-actions > button svg { width: 13px; height: 13px; }
.xuran-account-page .account-actions > button[class~="bg-amber-400"] {
  background: transparent;
  border-color: var(--border);
  color: var(--foreground);
}
.xuran-account-page .account-actions > button[class~="bg-amber-400"]:enabled:hover { background: var(--muted); }
.xuran-account-page .account-actions > .account-action {
  height: 38px;
  gap: 4px;
  padding-inline: 4px;
  border-color: color-mix(in srgb, var(--foreground) 22%, var(--border));
  border-radius: 8px;
  background: color-mix(in srgb, var(--foreground) 4%, var(--muted));
  color: var(--foreground);
  font-size: 12px;
  font-weight: 500;
}
.xuran-account-page .account-actions > .account-action:enabled:hover { background: color-mix(in srgb, var(--foreground) 9%, var(--muted)); }
.xuran-account-page .account-next-step { grid-column: 1 / -1; margin: 0; padding-top: 4px; color: var(--foreground); font-size: 12px; line-height: 1.6; white-space: normal; }
.dark .xuran-account-page .account-state:has(.text-emerald-500) { color: #34d399; }
@media (max-width: 360px) {
  .xuran-account-page .account-tile-content { padding: 14px; }
  .xuran-account-page .account-details-grid { gap: 8px; }
  .xuran-account-page .account-detail { gap: 5px; }
}

.xuran-account-page .account-actions > button:not(:focus-visible) { box-shadow: none; }
.xuran-account-page .account-subscription [data-slot="badge"][style] {
  background: var(--muted) !important;
  border-color: var(--border) !important;
  color: var(--foreground) !important;
}

@media (min-width: 1024px) {
  .xuran-account-page .account-list { grid-template-columns: minmax(0, 1fr); gap: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
  .xuran-account-page .account-list > .account-tile { border: 0; border-radius: 0; background: transparent; }
  .xuran-account-page .account-list > .account-tile:not(:last-child) { border-bottom: 1px solid var(--border); }
  .xuran-account-page .account-tile-content { display: grid; grid-template-columns: minmax(244px, 1.4fr) minmax(170px, 1fr) minmax(150px, 1fr) 240px; align-items: center; gap: 16px; padding: 16px 18px; }
  .xuran-account-page .account-tile:not(.account-tile-recycled) .account-tile-content { grid-template-columns: minmax(244px, 1.4fr) minmax(170px, 1fr) minmax(150px, 1fr) 264px; }
  .xuran-account-page .account-identity { min-width: 0; gap: 10px; }
  .xuran-account-page .account-identity img { width: 40px; height: 40px; border-radius: 8px; }
  .xuran-account-page .account-name { font-size: 14px; line-height: 21px; }
  .xuran-account-page .account-meta { gap: 5px; font-size: 11px; }
  .xuran-account-page .account-remove { align-self: center; }
  .xuran-account-page .account-details-grid { grid-template-columns: minmax(0, 1fr); gap: 6px; margin: 0; padding: 0; border: 0; }
  .xuran-account-page .account-detail { gap: 8px; }
  .xuran-account-page .account-detail > div:first-child { min-width: 39px; }
  .xuran-account-page .account-subscription { display: grid; align-content: center; gap: 5px; margin: 0; padding: 0; }
  .xuran-account-page .account-subscription > [data-slot="badge"] { margin-top: 0; justify-self: start; }
  .xuran-account-page .account-actions { align-items: center; gap: 6px; margin: 0; padding: 0; border: 0; }
  .xuran-account-page .account-actions > button { height: 32px; padding-inline: 8px; }
  .xuran-account-page .account-actions > .account-action { height: 34px; padding-inline: 4px; }
}
