/* Shared account UI. */
#menu-dialog{margin:0 auto 0 0;width:min(380px,92vw);height:100dvh;max-height:100dvh;border-radius:0;max-width:92vw}
#menu-dialog .menu-account{padding:24px;background:var(--soft);border-bottom:1px solid var(--line)}
.menu-account .primary{margin-top:14px;width:100%;border-radius:4px}.menu-account p{font-size:14px;color:var(--muted)}
/* One calm, grouped drawer, using the same artwork and routes as Home. */
#menu-dialog{--muted:#5c6861;margin:0 auto 0 0;width:min(420px,100vw);max-width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:0;padding:0 0 max(20px,env(safe-area-inset-bottom));overflow-y:auto;overflow-x:hidden;background:#fff;color:var(--text);font-family:var(--sans);box-shadow:8px 0 32px #13251d18}
#menu-dialog::backdrop{background:#13251d70}
#menu-dialog .menu-head{display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:1;min-height:76px;padding:8px 20px;gap:16px;border-bottom:1px solid var(--line);background:#fff}
.menu-brand{display:block;flex:0 1 158px;min-width:100px;text-decoration:none}
.menu-brand img{width:158px;height:auto}
#menu-dialog .menu-close{width:44px;height:44px;min-height:44px;border:1px solid #d8e2da;border-radius:50%;background:#f5f7f3;color:var(--green)}
#menu-dialog .menu-close svg{width:22px;height:22px}
#menu-dialog .menu-account{margin:16px;padding:16px;background:#f1f5ef;border:1px solid #dce6da;border-radius:14px}
.menu-identity{display:flex;align-items:center;gap:12px;min-width:0}
.menu-identity>div{min-width:0}
.menu-avatar{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border:1px solid #d0ddcd;border-radius:50%;background:#fff;color:var(--green)}
.menu-avatar svg{width:23px;height:23px}
#menu-dialog .menu-account h3{margin:0;font-size:18px;line-height:1.4;font-weight:var(--type-heading,600);overflow-wrap:anywhere}
#menu-dialog .menu-account p{font-size:14px;line-height:1.45;color:var(--muted);margin:3px 0 0}
#menu-dialog .menu-account .primary{display:flex;align-items:center;justify-content:center;background:var(--green);color:#fff;width:100%;min-height:44px;margin-top:14px;padding:10px 14px;border-radius:8px;text-decoration:none;font-size:15px;line-height:1.4}
.menu-language{display:flex;align-items:center;gap:10px;margin:0 16px;padding:0 0 14px;border-bottom:1px solid var(--line);font-size:15px;font-weight:var(--type-medium,600)}
.menu-language>[data-menu-language-slot]{margin-left:auto;min-width:0}
.menu-language .menu-row-icon{width:36px;height:36px;flex-basis:36px;background:transparent}
.menu-language-switcher{margin:0}
.menu-language-switcher button{flex-basis:46px;width:46px;font-size:13px}
#menu-dialog .menu-links{padding:8px 16px 12px}
.menu-section{margin-top:18px;padding:0}
#menu-dialog .menu-section>h3{margin:0 0 4px;padding:0 6px;font-size:14px;line-height:1.5;font-weight:var(--type-medium,600);color:var(--green)}
#menu-dialog .menu-row{display:flex;align-items:center;gap:12px;min-height:64px;width:100%;padding:10px 6px;border:0;border-radius:10px;text-align:left;color:var(--text);text-decoration:none}
#menu-dialog .menu-row:hover{background:#f6f8f4}
.menu-row-icon{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:12px;background:#f1f5ef;color:var(--green)}
.menu-row-icon>img{width:40px;height:40px;object-fit:contain}
.menu-row-icon>svg{width:22px;height:22px}
.menu-row-copy{display:block;min-width:0;flex:1}
.menu-row-copy>strong{display:block;font-size:16px;line-height:1.4;font-weight:var(--type-heading,600)}
.menu-row-copy>small{display:block;margin-top:3px;font-size:14px;line-height:1.45;color:var(--muted);overflow-wrap:anywhere}
#menu-dialog .menu-row>svg{flex:0 0 16px;width:16px;height:16px;color:var(--green)}
#menu-dialog :is(a,button):focus-visible{outline:2px solid var(--green);outline-offset:2px}
@media(max-width:359px){
 #menu-dialog .menu-head{padding-inline:16px}
 #menu-dialog .menu-account{margin:12px;padding:14px}
 .menu-language{margin-inline:12px;flex-wrap:wrap}
 .menu-language>[data-menu-language-slot]{margin-left:auto}
 .menu-language .menu-row-icon{display:none}
 #menu-dialog .menu-links{padding-inline:12px}
}
/* The localized artwork is tight: keep the full lockup at its visible height. */
.menu-brand img[data-brand-logo]{width:auto;height:36px;max-width:100%;object-fit:contain;aspect-ratio:var(--brand-logo-ratio)}
.menu-brand:has(img[data-brand-logo]){flex:0 1 auto;min-width:0}
