.header-actions { display: inline-flex; justify-self: end; align-items: center; gap: var(--space-2); }
.account-trigger { min-height: 38px; max-width: 9rem; overflow: hidden; padding: 0 var(--space-3); border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); font-size: .78rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.account-trigger:hover, .account-trigger.is-authenticated { border-color: var(--system-green-strong); color: var(--system-green-strong); }
.account-dialog { width: min(100% - 2rem, 28rem); max-height: calc(100dvh - 2rem); overflow: auto; padding: 0; border: 1px solid var(--ink); border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); box-shadow: 0 1.5rem 4rem rgba(0,0,0,.25); }
.account-dialog::backdrop { background: rgba(8, 12, 9, .55); backdrop-filter: blur(3px); }
.account-dialog-inner { padding: var(--space-6); }
.account-dialog .dialog-header { padding: 0 0 var(--space-5); }
.account-dialog .icon-button { font-size: 1.5rem; line-height: 1; }
.account-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: var(--radius-md); background: var(--paper); }
.account-tabs[hidden] { display: none; }
.account-tabs button { min-height: 40px; border: 0; border-radius: 6px; background: transparent; font-weight: 800; }
.account-tabs button.is-active { background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.14); }
.account-guest form { display: grid; gap: var(--space-4); padding-top: var(--space-5); }
.account-guest label, .account-field { display: grid; gap: var(--space-2); font-size: .78rem; font-weight: 800; }
.account-guest input { width: 100%; min-height: 44px; padding: 0 var(--space-3); border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--paper); font-size: 1rem; }
.account-label-row { display:flex; min-height:44px; align-items:center; justify-content:space-between; gap:var(--space-3); margin-bottom:calc(var(--space-2) * -1); }
.account-label-row label { display:block; }
.account-reset-link, .account-back-button { min-height:44px; border:0; background:transparent; color:var(--system-green-strong); font-size:.74rem; font-weight:800; }
.account-reset-link { padding:0 var(--space-1); }
.account-reset-link:hover, .account-back-button:hover { text-decoration:underline; text-underline-offset:3px; }
.account-reset-link:focus-visible, .account-back-button:focus-visible { outline:2px solid var(--system-green-strong); outline-offset:2px; }
.password-field { position: relative; display: block; }.password-field input { padding-right: 4rem; }.password-field button { position:absolute; top: 4px; right: 4px; min-height:36px; border:0; border-radius:6px; background:transparent; color:var(--system-green-strong); font-size:.72rem; font-weight:800; }
.account-reset-heading { display:grid; gap:var(--space-2); }
.account-back-button { width:max-content; padding:0; }
.account-reset-heading h3 { margin:0; font-family:var(--font-display); font-size:1.65rem; letter-spacing:-.045em; }
.account-reset-intro { margin: 0; padding: var(--space-3); border-left: 3px solid var(--system-green); border-radius: var(--radius-xs); background: var(--system-green-surface); color: var(--ink-soft); font-size: .76rem; line-height: 1.55; }
.account-field-help { color:var(--ink-soft); font-size:.68rem; font-weight:500; }
.account-password-status { min-height:1.3rem; margin:calc(var(--space-2) * -1) 0 0; color:var(--ink-soft); font-size:.72rem; }
.account-password-status[data-state="error"] { color:#b42318; }
.account-password-status[data-state="success"] { color:var(--system-green-strong); }
.account-message { min-height: 1.3rem; margin: 0; color: #b42318; font-size: .8rem; line-height:1.45; }.account-message.is-success { color: var(--system-green-strong); }.account-submit, .account-logout { min-height: 44px; border: 1px solid #15882c; border-radius: var(--radius-md); background: var(--system-green); color: var(--system-green-ink); font-weight: 800; }.account-submit:disabled { opacity:.65; }
.account-profile { text-align:center; }.account-avatar { display:grid; width:4rem; height:4rem; place-items:center; margin:var(--space-4) auto; border-radius:50%; background:var(--system-green); color:var(--system-green-ink); font-family:var(--font-display); font-size:1.5rem; }.account-profile h3 { margin:0; }.account-profile > p { margin:var(--space-2) 0; color:var(--ink-soft); }.account-profile .account-joined { margin-top:var(--space-5); font-size:.78rem; }.account-logout { width:100%; margin-top:var(--space-4); border-color:var(--line-strong); background:var(--surface); color:var(--ink); }
.account-admin-link { display:flex; min-height:44px; align-items:center; justify-content:center; margin-top:var(--space-4); border:1px solid #15882c; border-radius:var(--radius-md); background:var(--system-green); color:var(--system-green-ink); font-size:.78rem; font-weight:800; text-decoration:none; }
@media (max-width: 560px) { .header-actions { gap: 0; }.account-trigger { min-height:36px; padding:0 var(--space-2); }.bag-button { padding-right:0; }.account-dialog-inner { padding:var(--space-5); } }
