@import url("https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;600;700&family=Noto+Sans+Thai:wght@400;500;600;700&display=swap");
/* Shared defaults and menu feedback across user pages. */
:root { --f-display:"Google Sans","Noto Sans Thai",system-ui,sans-serif; --f-body:"Google Sans","Noto Sans Thai",system-ui,sans-serif; }
:is(.user-more-panel,.wallet-menu-panel,.near-panel,#cnPanel):not([hidden]) {
  animation: user-menu-enter .22s cubic-bezier(.2,.8,.2,1);
  transform-origin: top right;
}
@keyframes user-menu-enter {
  from { opacity:0; transform:translateY(-8px) scale(.98); }
  to { opacity:1; transform:none; }
}
:is(.user-more-panel,.wallet-menu-panel,.near-panel) :is(a,button) {
  transition:background-color .18s,transform .18s;
}
:is(.user-more-panel,.wallet-menu-panel,.near-panel) :is(a,button):active { transform:scale(.98); }
:is(.user-more-trigger,.wallet-menu-button,.near-menu-button,#cnMenu):focus-visible,
:is(.user-more-panel,.wallet-menu-panel,.near-panel,#cnPanel) :is(a,button):focus-visible {
  outline:3px solid #0080c7; outline-offset:2px;
}
#cnMenu { position:relative; width:44px!important; height:44px!important; min-height:44px!important; padding:0!important; border:0!important; border-radius:50%!important; background:var(--surface,#fff)!important; box-shadow:none!important; }
#cnMenu svg,#cnMenu span { display:none!important; }
#cnMenu::before,#cnMenu::after { content:""; position:absolute; left:12px; right:12px; top:21px; height:2px; border-radius:2px; background:currentColor; transition:transform .18s,box-shadow .18s; }
#cnMenu::before { box-shadow:0 -6px currentColor,0 6px currentColor; }
#cnMenu::after { opacity:0; }
#cnMenu[aria-expanded="true"]::before { box-shadow:none; transform:rotate(45deg); }
#cnMenu[aria-expanded="true"]::after { opacity:1; transform:rotate(-45deg); }
.cn-hdr .beta { display:none!important; }
html body #cnPanel :is(.mgb a,.mgb button)>svg,html body #cnPanel>a>svg { display:none!important; }
html body #cnPanel .mgb>[data-cur] { box-shadow:none!important; border-radius:12px; }
html body #cnPanel #cnLangItem { border-top:1px solid var(--line,#ddd)!important; padding:8px 12px!important; }
html body #cnPanel #cnThemeItem { display:flex; gap:0; padding:3px; border:1px solid #bbb; border-radius:999px; background:var(--surface,#fff); box-shadow:none!important; }
html body #cnPanel #cnThemeItem button { display:grid; place-items:center; width:32px; height:32px; min-height:32px; padding:0; border:0; border-radius:50%; box-shadow:none; background:transparent; color:var(--ink,#191919); }
html body #cnPanel #cnThemeItem button[aria-pressed="true"] { background:var(--ink,#191919); color:var(--surface,#fff); }
html body #cnPanel #cnThemeItem svg { width:16px; height:16px; }
html body #cnPanel .lgd-b { min-width:68px; min-height:40px; padding:4px 10px; border:1px solid #bbb; border-radius:999px; box-shadow:none; background:var(--surface,#fff); color:var(--ink,#191919); }
html body #cnPanel .lgd-l { border-radius:14px; overflow:hidden; box-shadow:0 8px 22px #0003; }
.wallet-menu-button .menu-icon,.wallet-menu-button .close-icon {
  grid-area:1 / 1; transition:opacity .18s,transform .18s;
}
.wallet-menu-button .close-icon { display:block!important; opacity:0; transform:rotate(-45deg) scale(.7); }
.wallet-menu-button[aria-expanded="true"] .menu-icon { display:block!important; opacity:0; transform:rotate(45deg) scale(.7); }
.wallet-menu-button[aria-expanded="true"] .close-icon { opacity:1; transform:none; }
@media (max-width:720px) {
  html body #cnPanel:not([hidden]) {
    inset:72px 16px auto!important; width:auto!important; max-height:calc(100dvh - 88px)!important;
    border:0!important; border-radius:24px!important; box-shadow:0 14px 42px #0003!important;
    padding:12px!important; background:var(--surface,#fff)!important;
  }
  html body #cnPanel #cnMenuTop { display:none!important; }
  html body #cnPanel details.mgrp { border-top:1px solid var(--line,#ddd)!important; }
  html body #cnPanel details.mgrp:first-of-type { border-top:0!important; }
  html body #cnPanel details.mgrp>summary { min-height:44px!important; padding:10px 12px!important; font-size:15px!important; }
  html body #cnPanel details.mgrp .mgb>a,html body #cnPanel details.mgrp .mgb>button { min-height:44px!important; padding:10px 12px 10px 24px!important; font-size:14px!important; }
}
@media (prefers-reduced-motion:reduce) {
  :is(.user-more-panel,.wallet-menu-panel,.near-panel,#cnPanel):not([hidden]) { animation:none; }
  :is(.wallet-menu-button .menu-icon,.wallet-menu-button .close-icon),:is(.user-more-panel,.wallet-menu-panel,.near-panel) :is(a,button) { transition:none; }
}
