.account-hub {
  --hub-ink: #171717;
  --hub-accent: #171717;
  --hub-border: #e9e5d8;
  margin: 0;
  color: var(--hub-ink);
  background: #fffdf6;
  font-family: "Yekan Bakh", YekanBakh, Tahoma, sans-serif;
  line-height: 1.65;
}
.account-hub *, .account-hub *::before, .account-hub *::after { box-sizing: border-box; }
.account-hub [hidden] { display: none !important; }
.account-hub main {
  max-width: 720px;
  margin-inline: auto;
  padding: 12px clamp(14px, 4vw, 32px) calc(108px + env(safe-area-inset-bottom));
}
.account-hub h1 { font-size: 1.65rem; margin-block: 20px 10px; }
.account-hub h2 { font-size: 1.1rem; margin: 0; }
.account-hub a { color: inherit; text-decoration: none; }
.account-hub a:focus-visible, .account-hub button:focus-visible,
.account-hub input:focus-visible, .account-hub summary:focus-visible {
  outline: 3px solid #9f7200;
  outline-offset: 3px;
}
.account-hub svg { width: 24px; height: 24px; flex: none; }
.hub-profile, .hub-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.account-hub .hub-profile {
  padding: 17px;
  border-radius: 22px;
  color: #171717;
  background: linear-gradient(115deg, #ffcf25, #ffe170);
}
.hub-profile strong { font-size: 1.2rem; overflow-wrap: anywhere; }
.hub-profile small, .hub-row small { display: block; margin-top: 2px; }
.hub-profile small { color: #292311; }
.hub-avatar, .hub-icon {
  display: grid;
  place-items: center;
  border-radius: 13px;
  width: 42px;
  height: 42px;
}
.hub-avatar { width: 52px; height: 52px; background: #fff5cf; font-size: 1.4rem; }
.hub-icon { color: var(--hub-accent); background: #fff0ac; }
.hub-arrow { display: flex; }
.hub-arrow svg { width: 17px; height: 17px; }
.hub-group { margin-top: 22px; }
.hub-group h2 { border-inline-start: 4px solid #f9c623; padding-inline-start: 9px; margin-bottom: 8px; }
.hub-list, .hub-settings {
  border: 1px solid var(--hub-border);
  border-radius: 17px;
  background: white;
}
.hub-row { min-height: 64px; padding: 10px 13px; }
.hub-row + .hub-row { border-top: 1px solid var(--hub-border); }
.hub-row small, .hub-settings small { color: #535353; }
.hub-row:hover { background: #fff9e2; border-radius: 16px; }
.hub-settings { margin-top: 12px; scroll-margin-top: 12px; }
.hub-settings summary { cursor: pointer; padding: 14px; font-weight: 700; }
.hub-settings section { padding: 12px 16px 16px; border-top: 1px solid var(--hub-border); }
.hub-settings label, .hub-settings small { display: block; }
.account-hub main input, .account-hub main button {
  font: inherit;
  min-height: 44px;
  border-radius: 10px;
  padding: 8px 14px;
  margin-block: 6px;
}
.account-hub main input { width: 100%; border: 1px solid #b9b2a2; }
.account-hub main button { color: white; background: #171717; border: 0; cursor: pointer; }
.account-hub main button:disabled { opacity: .5; }
.account-hub #logout { background: #171717; }
.account-hub #status:not(:empty) { padding: 9px 12px; border-radius: 10px; background: #fff4d7; }
.account-hub #session-confirm { max-width: min(420px, 94vw); border: 1px solid var(--hub-border); border-radius: 17px; padding: 20px; color: var(--hub-ink); }
.account-hub #session-confirm::backdrop { background: #171717a0; }

.hub-search-box { margin-block: 10px; }

.hub-avatar { overflow: hidden; }
.hub-avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-hub #profile-settings {
  box-sizing: border-box;
  width: min(100% - 24px, 480px);
  max-height: 88dvh;
  border: 1px solid #ece8db;
  border-radius: 22px;
  padding: 16px;
  overflow: auto;
  background: #fff;
  color: #171717;
}
.account-hub #profile-settings::backdrop { background: #0008; }
.profile-editor-head, .profile-photo, .profile-phone {
  display: flex;
  align-items: center;
  gap: 12px;
}
.profile-editor-head, .profile-phone { justify-content: space-between; }
.profile-photo { background: #fff9e3; padding: 12px; border-radius: 15px; }
.profile-photo .hub-avatar { width: 64px; height: 64px; flex: none; border-radius: 50%; }
.profile-photo > div { min-width: 0; }
.profile-photo label { font-weight: 750; }
.profile-photo input { font-size: 12px; max-width: 100%; }
.profile-name-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.account-hub #profile { display: grid; gap: 10px; }
.account-hub #profile small { color: #5e5e5e; }
.profile-phone { border: 1px solid #ece8db; border-radius: 12px; padding: 10px; flex-wrap: wrap; }
.profile-phone small { display: block; }
.account-hub #profile-close, .account-hub #remove-avatar {
  background: #fff1b5;
  color: #171717;
}
