/*
 * قائمة الحساب في السبّورة على الهاتف (مواصفات ٢٠٢٦-١٠-٠١ §٤.٤): زر الحرف الأول، والستارة،
 * والورقة الصاعدة من أسفل الشاشة. تُخفى على الحاسوب في shell.css.
 * كل القيم من tokens.css عبر var(--...).
 */

.account__button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--color-board-muted);
  border-radius: var(--radius-full);
  color: var(--color-board-text);
  font-weight: var(--weight-semibold);
  list-style: none;
  cursor: pointer;
}

.account__button::-webkit-details-marker {
  display: none;
}

.account[open]::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: var(--color-scrim);
}

.account__sheet {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: var(--z-modal);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: var(--container-sm);
  max-height: 85vh;
  margin-inline: auto;
  overflow-y: auto;
  padding: var(--space-5) var(--space-5) var(--space-6);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--glass-shadow);
}

.account__who {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.account__avatar {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--color-tag-bg);
  color: var(--color-tag-text);
  font-weight: var(--weight-semibold);
}

.account__name {
  font-weight: var(--weight-semibold);
}

.account__hint {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

.account__group {
  display: flex;
  flex-direction: column;
}

.account__label {
  margin: 0;
  padding-bottom: var(--space-1);
  border-bottom: 1px solid var(--color-rule);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
}

.account__link {
  display: flex;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid var(--color-rule);
  color: var(--color-text);
  text-decoration: none;
}


/* بيانات «حسابي» (/account/، المراجعة ١٥٨): التسمية فوق القيمة، وسطر فاصل بين البنود. */
.account-facts {
  display: grid;
  margin: 0 0 var(--space-5);
  border-top: 1px solid var(--color-rule);
}

.account-facts > div {
  display: grid;
  grid-template-columns: minmax(7rem, auto) minmax(0, 1fr);
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-rule);
}

.account-facts dt {
  color: var(--color-text-secondary);
}

.account-facts dd {
  margin: 0;
  font-weight: var(--weight-medium);
}
