/* Account sheet: native dialog in the top layer, independent of sticky headers. */
html[data-header-account-open] body { overflow: hidden !important; }
.haccount-sheet:not([open]) { display: none; }
.haccount-sheet[open] { display: flex; flex-direction: column; }
.haccount-sheet {
    position: fixed; inset: 0 0 0 auto; box-sizing: border-box;
    width: min(460px, 100%); max-width: 100%; height: 100%; height: 100dvh;
    max-height: none; margin: 0; padding: 0; border: 0; border-radius: 20px 0 0 20px;
    background: #fff; color: #171717; font-family: inherit; font-size: 15px;
    line-height: 1.5; box-shadow: -12px 0 48px #0002; overflow: hidden; overflow: clip;
    animation: haccount-enter 240ms cubic-bezier(.22,1,.36,1);
}
.haccount-sheet::backdrop { background: #0006; }
.haccount-head { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 16px; padding: max(20px,env(safe-area-inset-top)) 24px 20px; }
.haccount-title { margin: 0; font-size: 24px; font-weight: 600; line-height: 1.25; text-transform: none; color: inherit; }
.haccount-sheet button { border: 0; outline: 0; box-shadow: none; font: inherit; cursor: pointer; }
.haccount-close { display: inline-flex; flex: 0 0 44px; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; background: #f5f5f5; color: #171717; }
.haccount-icon { flex: 0 0 22px; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.haccount-body { flex: 1; min-height: 0; padding: 0 24px 24px; overflow-y: auto; overscroll-behavior: contain; }
.haccount-intro { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; padding: 18px; border-radius: 20px; background: #f5f5f5; }
.haccount-avatar { display: inline-flex; flex: 0 0 44px; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; }
.haccount-intro p { margin: 0; font-size: 14px; line-height: 1.5; color: #666; overflow-wrap: anywhere; }
.haccount-intro strong { display: block; margin-bottom: 4px; font-size: 17px; font-weight: 600; color: #171717; overflow-wrap: anywhere; }
.haccount-options { padding: 0; margin: 0; list-style: none; }
.haccount-options li { margin: 0; padding: 0; }
.haccount-link { display: flex; align-items: center; gap: 14px; min-height: 56px; box-sizing: border-box; padding: 14px 12px; border-radius: 12px; color: #171717; text-decoration: none; overflow-wrap: anywhere; }
.haccount-link span { flex: 1; min-width: 0; }
.haccount-link .haccount-chevron { flex-basis: 16px; width: 16px; height: 16px; color: #666; }
.haccount-group > summary { list-style: none; cursor: pointer; }
.haccount-group > summary::-webkit-details-marker { display: none; }
.haccount-group > summary:focus-visible { outline: 0; text-decoration: underline; text-underline-offset: 4px; }
.haccount-group[open] > summary .haccount-chevron { transform: rotate(90deg); }
.haccount-suboptions { list-style: none; margin: 0 0 8px 22px; padding: 0 0 0 12px; border-left: 1px solid #e5e5e5; }
.haccount-suboptions .haccount-link { gap: 10px; font-size: 14px; }
.haccount-footer:empty { display: none; }
.haccount-footer { flex-shrink: 0; display: grid; gap: 12px; padding: 20px 24px max(24px,env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -8px 24px #00000006; }
.haccount-cta { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 20px; box-sizing: border-box; border: 0; border-radius: 999px; background: #000; color: #fff; text-decoration: none; font-weight: 600; text-align: center; overflow-wrap: anywhere; }
.haccount-secondary { background: #f5f5f5; color: #171717; font-weight: 500; }
.haccount-auth [hidden] { display: none !important; }
.haccount-auth { --haccount-field-edge: #8a8a8a; }
.haccount-form { display: grid; gap: 8px; }
.haccount-form > label { margin: 12px 0 0; font-size: 14px; font-weight: 500; color: #171717; }
.haccount-form > :is(input,select) { width: 100%; min-width: 0; min-height: 48px; padding: 10px 12px; border: 1px solid #d4d4d4; border-radius: 12px; box-sizing: border-box; font: inherit; font-size: 16px; background: #fff; color: #171717; box-shadow: none; }
.haccount-form > :is(input,select):focus { border-color: #171717; outline: 0; }
.haccount-form small { color: #666; font-size: 13px; }
.haccount-forgot { justify-self: start; padding: 10px 0; min-height: 44px; box-sizing: border-box; color: #171717; text-decoration: underline; text-underline-offset: 3px; }
.haccount-form > .haccount-check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 8px 0; margin: 8px 0 0; font-weight: 400; cursor: pointer; }
.haccount-check input { flex-shrink: 0; width: 20px; height: 20px; margin: 1px 0 0; accent-color: #171717; }
.haccount-check a { color: #171717; text-decoration: underline; }
.haccount-check input:focus-visible { outline: 2px solid #171717; outline-offset: 2px; }
.haccount-privacy-info { margin-top: 12px; color: #666; font-size: 13px; }
.haccount-privacy-info summary { padding: 12px 0; min-height: 44px; box-sizing: border-box; cursor: pointer; color: #171717; }
.haccount-privacy-info p { margin: 8px 0; }
.haccount-errors { padding: 14px; margin-bottom: 16px; border-radius: 12px; background: #fff0f0; color: #8c2020; font-size: 14px; }
.haccount-errors ul { padding-left: 18px; margin: 0; }
.haccount-cta:disabled { opacity: .55; cursor: wait; }
.haccount-guest .haccount-intro { display: none; }
.haccount-guest .haccount-title { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.haccount-guest .haccount-head { justify-content: flex-end; }
.haccount-guest .haccount-body { padding: 0 24px max(24px,env(safe-area-inset-bottom)); }
.haccount-auth-heading { text-align: center; margin: 8px 0 28px; }
.haccount-auth-logo { display: block; width: 148px; max-width: 100%; height: 40px; object-fit: contain; margin: 0 auto 24px; }
.haccount-auth-heading h3 { margin: 0 0 8px; font-size: 28px; line-height: 1.25; font-weight: 600; text-transform: none; color: #171717; overflow-wrap: anywhere; }
.haccount-auth-heading p { margin: 0; font-size: 14px; line-height: 1.5; color: #666; }
.haccount-social-buttons { display: grid; gap: 12px; }
.haccount-sheet .haccount-social { display: flex; align-items: center; justify-content: center; position: relative; width: 100%; min-height: 52px; padding: 14px 48px; border: 0; border-radius: var(--hmenu-radius-pill,999px); background: var(--hmenu-soft,#f5f5f5); color: var(--hmenu-ink,#171717); font-size: 14px; font-weight: 500; line-height: 1.5; }
.haccount-social img,.haccount-social i { position: absolute; left: 20px; width: 20px; height: 20px; }
.haccount-social:is(:hover,:focus-visible) { background: #e9e9e9; text-decoration: underline; }
.haccount-auth-email { display: flex; align-items: center; gap: 12px; margin: 24px 0; text-align: center; font-size: 12px; line-height: 1.5; color: #666; }
.haccount-auth-email::before,.haccount-auth-email::after { content: ''; flex: 1 0 12px; height: 1px; background: #e5e5e5; }
.haccount-form { display: block; }
.haccount-form .textfield { margin: 20px 0; }
.haccount-form .textfield input { font-size: 16px; }
.haccount-auth .textfield-left { border-color: var(--haccount-field-edge); border-radius: var(--hmenu-radius-control,12px) 0 0 var(--hmenu-radius-control,12px); }
.haccount-auth .textfield-center { border-color: var(--haccount-field-edge); }
.haccount-auth .textfield-right { border-color: var(--haccount-field-edge); border-radius: 0 var(--hmenu-radius-control,12px) var(--hmenu-radius-control,12px) 0; }
.haccount-auth .textfield :is(input,select):not(:focus) ~ .textfield-center { border-color: var(--haccount-field-edge); }
.haccount-auth .textfield :is(.textfield-left,.textfield-right) .icon { color: #666; }
.haccount-auth .textfield .help_text { top: 60px; font-size: 12px; line-height: 1.5; color: #666; }
.haccount-form .textfield.with_help_text { margin-bottom: 44px; }
.haccount-password-toggle { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0; color: #666; background: transparent; }
.haccount-password-toggle .material-icons { font-size: 21px; }
.haccount-password-toggle:focus-visible { background: #f5f5f5; }
.haccount-forgot { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; line-height: 1.5; text-decoration: underline; text-underline-offset: 4px; padding: 0; }
.haccount-password-help { display: flex; justify-content: flex-end; margin-top: -8px; }
.haccount-password-help + .textfield { margin-top: 0; }
.haccount-password-help .haccount-forgot { text-align: right; }
.haccount-guest .haccount-footer [hidden] { display: none !important; }
.haccount-guest .haccount-footer.haccount-recovered { grid-template-columns: minmax(0,1fr); }
.haccount-recovery-success { margin: 0; padding: 20px; border-radius: var(--hmenu-radius-control,12px); background: var(--hmenu-soft,#f5f5f5); color: var(--hmenu-ink,#171717); font-size: 14px; line-height: 1.6; }
.haccount-recovery-success:focus { outline: 0; }
.haccount-birthdate > p { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 500; }
.haccount-birthdate > div { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.haccount-birthdate .textfield :is(input,select) { padding-left: 12px; padding-right: 28px; font-size: 14px; }
.haccount-birthdate .textfield-left { width: 8px; }
.haccount-birthdate .textfield-right { max-width: 20px; }
.haccount-birthdate .textfield-center { padding: 0 4px; }
.haccount-birthdate .textfield-center label { font-size: 13px; }
.haccount-birthdate .textfield-right .icon { width: 20px; }
.haccount-guest .haccount-footer { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.2fr); align-items: stretch; gap: 12px; padding: 0; margin-top: 24px; box-shadow: none; }
.haccount-guest .haccount-footer .haccount-cta { width: 100%; min-height: 52px; padding: 12px 16px; border-radius: var(--hmenu-radius-pill,999px); font-size: 14px; font-weight: 600; line-height: 1.5; }
.haccount-guest .haccount-footer .haccount-secondary { background: #f5f5f5; color: #171717; font-weight: 500; }
.haccount-auth .haccount-check { font-size: 13px; line-height: 1.6; }
.haccount-auth .haccount-privacy-info { padding: 4px 16px 12px; margin-top: 16px; background: var(--hmenu-soft,#f5f5f5); border-radius: var(--hmenu-radius-control,12px); line-height: 1.6; }
.haccount-auth .haccount-privacy-info summary { font-weight: 500; }
.haccount-auth .haccount-privacy-info summary:focus-visible { outline: 0; text-decoration: underline; text-underline-offset: 4px; }
.haccount-guest .haccount-errors { background: #fff0f0; border-left: 3px solid #8c2020; line-height: 1.6; }
.haccount-sheet :is(a,button):focus-visible { outline: 0; text-decoration: underline; text-underline-offset: 4px; }
.haccount-sheet :is(.haccount-link,.haccount-close,.haccount-secondary):is(:hover,:focus-visible) { background: #e9e9e9; color: #171717; }
.haccount-sheet .haccount-cta:not(.haccount-secondary):is(:hover,:focus-visible) { background: #333; color: #fff; }
.haccount-close:focus-visible .haccount-icon { stroke-width: 2.6; transform: scale(1.1); }
@keyframes haccount-enter { from { opacity: 0; transform: translateX(100%); } to { opacity: 1; transform: translateX(0); } }
@media (max-width: 359px) {
    .haccount-head,.haccount-body,.haccount-footer { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) { .haccount-sheet { animation: none; } }
@media (prefers-reduced-motion: reduce) { .haccount-auth .textfield * { transition: none; } }
