/* Settings › Account (js/account.js): signing in, and sync between computers. */

.account-body { display: flex; flex-direction: column; gap: 12px; }
.account-line { display: flex; align-items: center; gap: 8px; color: var(--text2); font-size: 13px; }
.account-line .icon { width: 15px; height: 15px; flex: none; color: var(--accent); }
.account-line.danger { color: var(--danger); }
.account-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.account-who { display: flex; flex-direction: column; gap: 8px; }
.account-who b { font-weight: 600; font-size: 14px; }
.account-unlock { display: flex; gap: 8px; }
.account-unlock .field { flex: 1; font-family: var(--mono, ui-monospace, monospace); letter-spacing: 0.04em; }
.account-code, .account-request {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-md, 10px);
  background: var(--accent-wash);
}
.account-request { border-color: var(--border-strong); background: var(--surface); }
.account-code-text, .account-digits {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text);
  user-select: all;
}
.account-digits { font-size: 22px; letter-spacing: 0.16em; margin-top: 4px; }
.account-join { display: flex; flex-direction: column; gap: 6px; }

/* The one row at the bottom of the sidebar: your account and its menu. */
.account-side {
  display: flex;
  align-items: center;
  gap: 4px;
  /* Margins, not padding: only the account and the theme button are the row. */
  margin: 8px 10px 10px;
  cursor: default;
  outline: none;
}
.account-who-side {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 7px 8px;
  border-radius: var(--radius-sm, 8px);
  color: var(--text2);
  transition: background var(--dur-fast) var(--ease);
}
/* Lit only under the pointer itself: not for the theme button beside it, nor
   the row's own margins. */
.account-who-side:hover,
.account-side.open .account-who-side,
.account-side:focus-visible .account-who-side { background: var(--surface-hover); }
.account-side:focus-visible .account-who-side { box-shadow: 0 0 0 2px var(--focus, var(--accent)); }
.account-side .theme-toggle { flex: none; }
.account-chev { flex: none; width: 14px; height: 14px; margin-left: auto; color: var(--text3); }
.account-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent-wash);
  color: var(--accent-ink);
}
.account-glyph .icon { width: 16px; height: 16px; }
.account-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.account-text b {
  overflow: hidden;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.account-text span {
  overflow: hidden;
  color: var(--text3);
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.account-text span.alert { color: var(--accent-ink); }
.account-pic { position: relative; display: inline-flex; flex: none; }
.account-avatar { display: inline-flex; width: 30px; height: 30px; overflow: hidden; border-radius: 8px; }
.account-avatar svg { width: 100%; height: 100%; }
.account-pic.alert::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--sidebar);
  border-radius: 50%;
  background: var(--accent);
}
.account-rail .account-avatar { width: 24px; height: 24px; border-radius: 6px; }
.account-rail .account-glyph { width: 26px; height: 26px; border-radius: 8px; }
.account-rail .account-glyph .icon { width: 15px; height: 15px; }
