/* Parche account: header chip and menu, login dialog (assets/cuenta.js). */
.acct { position: relative; display: flex; align-items: center; flex: none; }
.acct-login { height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font: 700 14px/1 var(--sans); cursor: pointer; white-space: nowrap; }
.acct-login:hover { background: var(--ink); color: var(--paper); }
.acct-chip { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 10px 0 4px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.acct-chip:hover, .acct-chip[aria-expanded="true"] { border-color: var(--amber, #FFB32C); }
.acct-chip svg { width: 14px; height: 14px; }
.acct-av { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; color: #fff; font: 700 13px/1 var(--sans); flex: none; }
.acct-av-lg { width: 46px; height: 46px; font-size: 16px; }
.acct-txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; text-align: left; }
.acct-txt b { font: 700 13px/1.1 var(--sans); }
.acct-txt small { font-size: 11px; color: var(--muted); }

.acct-menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 70; width: 300px; padding: 14px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); }
.acct-menu[hidden] { display: none; }
.acct-who { display: flex; gap: 12px; align-items: center; padding-bottom: 6px; }
.acct-who b { display: block; font: 700 15px/1.2 var(--sans); }
.acct-role { display: inline-block; margin-top: 5px; padding: 4px 8px; border-radius: 999px; color: #fff; font: 700 10px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.acct-k { margin: 12px 4px 4px; font: 700 10.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.acct-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 10px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: 600 14px/1.2 var(--sans); text-decoration: none; cursor: pointer; text-align: left; }
.acct-item svg { width: 19px; height: 19px; flex: none; color: var(--red); }
.acct-item:hover { background: var(--surface); color: var(--ink); }
.acct-out { margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; color: var(--muted); }
.acct-out svg { color: var(--muted); }

/* dialog */
.acct-dlg { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; }
.acct-dlg[hidden] { display: none; }
.acct-backdrop { position: absolute; inset: 0; background: rgba(8,6,5,.66); backdrop-filter: blur(3px); }
.acct-box { position: relative; width: min(420px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 26px 24px 20px; border-radius: 20px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 30px 70px -20px rgba(0,0,0,.6); }
.acct-box h2 { margin: 0; font: 700 26px/1 var(--display); text-transform: uppercase; }
.acct-lead { margin: 8px 0 16px; color: var(--muted); font-size: 14px; }
.acct-x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.acct-box form { display: grid; gap: 12px; }
.acct-box label { display: grid; gap: 6px; font: 600 12.5px/1.2 var(--sans); color: var(--muted); }
.acct-box label small { font-weight: 400; }
.acct-box input[type="email"], .acct-box input[type="password"], .acct-box input[type="text"] { height: 46px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 400 15px var(--sans); }
.acct-box input:focus { outline: 2px solid var(--amber, #FFB32C); outline-offset: 1px; }
.acct-check { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 8px; font-weight: 400 !important; color: var(--ink) !important; }
.acct-check input { margin-top: 2px; }
.acct-check a { color: var(--red); }
.acct-err { margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(226,52,42,.12); color: var(--red); font-size: 13.5px; }
.acct-err[hidden] { display: none; }
.acct-submit { width: 100%; min-height: 48px; margin-top: 4px; }
.acct-link { display: block; margin: 12px auto 0; border: 0; background: none; color: var(--muted); font: 600 13px var(--sans); cursor: pointer; text-decoration: underline; }
.acct-alt { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); text-align: center; font-size: 14px; }
.acct-alt .acct-link { display: inline; margin: 0; }
.acct-strong { color: var(--red) !important; text-decoration: none !important; font-weight: 700 !important; }
.acct-alt small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
html.acct-lock { overflow: hidden; }

/* phones: the chip shows only the avatar; the menu opens as a bottom sheet */
@media (max-width: 1023px) {
  .acct-txt, .acct-chip > svg { display: none; }
  .acct-chip { padding: 0 4px; height: 44px; }
  .acct-login { height: 40px; padding: 0 12px; font-size: 13px; }
}
@media (max-width: 767px) {
  .acct-menu { position: fixed; left: 8px; right: 8px; top: auto; bottom: calc(72px + env(safe-area-inset-bottom)); width: auto; max-height: 70vh; overflow-y: auto; }
}

/* The signed-in chip is just the avatar (same size as the theme button), so
   it never squeezes the menu or the logos; name and type are in its menu. */
.acct-chip { gap: 0; width: 44px; height: 44px; padding: 0; justify-content: center; border-width: 2px; }
.acct-chip .acct-txt, .acct-chip > svg { display: none; }
.acct-chip .acct-av { width: 36px; height: 36px; font-size: 13px; }
.acct-login { height: 40px; padding: 0 14px; font-size: 13px; }
