/* The signed-in person in the header (assets/v3/account.js): initials chip → a small menu card. Calm, light motion. */
.acct { position: relative; display: inline-flex; flex: none; }
.acct-slot { display: inline-flex; align-items: center; flex: none; }
.acct-slot:empty { display: none; }
.acct-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 10px 0 4px; border-radius: 999px; border: 1px solid var(--line, #ebebf0); background: #fff;
  font: inherit; font-size: 14.5px; font-weight: 600; color: var(--ink, #0b0b0f); cursor: pointer; transition: border-color .2s, box-shadow .2s, background .2s; animation: acctin .35s cubic-bezier(.2,.7,.2,1) both; }
.acct-btn:hover { border-color: #d6d6de; box-shadow: 0 8px 20px -14px rgba(11,11,15,.45); }
.acct-btn[aria-expanded="true"] { border-color: var(--ink, #0b0b0f); }
.acct-btn svg { width: 16px; height: 16px; color: var(--muted, #74747f); transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.acct-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.acct-nm { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-av { width: 34px; height: 34px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; letter-spacing: .03em; color: #fff;
  background: linear-gradient(145deg, #3a3a46 0%, #0b0b0f 100%); box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(11,11,15,.08); }
.acct-av.lg { width: 46px; height: 46px; font-size: 16px; }
@keyframes acctin { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.acct-menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 70; width: 300px; padding: 8px; border-radius: 22px; background: #fff; color: var(--ink, #0b0b0f);
  box-shadow: 0 0 0 1px rgba(11,11,15,.06), 0 30px 60px -24px rgba(11,11,15,.45); transform-origin: top right; transform: translateY(-6px) scale(.97); opacity: 0;
  transition: transform .2s cubic-bezier(.2,.7,.2,1), opacity .16s; }
.acct-menu.on { transform: none; opacity: 1; }
.acct-head { display: flex; gap: 12px; align-items: center; padding: 12px 10px 14px; border-bottom: 1px solid var(--line, #ebebf0); margin-bottom: 6px; }
.acct-head b { display: block; font-size: 15.5px; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; }
.acct-head small { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-top: 3px; font-size: 12.5px; color: var(--muted, #74747f); font-variant-numeric: tabular-nums; }
.acct-st { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; color: #b7791f; }
.acct-st.ok { color: #12a150; }
.acct-st svg { width: 13px; height: 13px; }
.acct-list { display: grid; gap: 2px; }
.acct-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; font-size: 14.5px; font-weight: 500; color: var(--ink, #0b0b0f); text-decoration: none; transition: background .15s; outline: none; }
.acct-item svg { width: 19px; height: 19px; color: var(--ink-2, #3b3b45); flex: none; }
.acct-item:hover, .acct-item:focus-visible { background: var(--soft, #f6f6f8); }
.acct-item.warn { color: #8a5a00; background: #fff8e6; margin: 4px 0; }
.acct-item.warn svg { color: #b7791f; }
.acct-item.warn:hover { background: #fff1cc; }
.acct-item.out { color: #b4232f; }
.acct-item.out svg { color: #b4232f; }
.acct-item.out:hover { background: #fff1f2; }
.acct-foot { margin-top: 6px; padding: 10px 12px 6px; border-top: 1px solid var(--line, #ebebf0); font-size: 12px; color: var(--muted, #74747f); }
/* inside the mobile menu sheet: an open card, no dropdown */
.acct-sheet { display: block; width: 100%; margin-top: 14px; padding: 6px; border-radius: 20px; background: var(--soft, #f6f6f8); animation: acctin .3s both; }
.acct-sheet .acct-head { border-bottom-color: #e6e6ec; }
.acct-sheet .acct-item:hover { background: #fff; }
.sheet .acct-slot { display: flex; width: 100%; margin: 4px 0 10px; }
.sheet .acct-login { width: 100%; }
@media (max-width: 860px) {
  .hdr .acct, .hdr .acct-slot { margin-left: auto; }
  .hdr .acct + .menu-btn, .hdr .acct-slot + .btn + .menu-btn, .hdr .acct-slot + .menu-btn { margin-left: 8px; }
  .hdr .acct-nm, .hdr .acct-btn > svg { display: none; }
  .hdr .acct-btn { padding: 0 3px; height: 42px; width: 42px; justify-content: center; }
  .acct-menu { position: fixed; left: 12px; right: 12px; top: 74px; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .acct-btn, .acct-sheet { animation: none; }
  .acct-menu, .acct-btn svg { transition: none; }
}
