.lbMemberDrawer, .lbMemberPage {
  color-scheme: dark;
  color: #f7f5fa;
  font: 450 15px/1.45 "Segoe UI Variable", "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}
.lbMemberDrawer *, .lbMemberDrawer *::before, .lbMemberDrawer *::after,
.lbMemberPage *, .lbMemberPage *::before, .lbMemberPage *::after { box-sizing: border-box; }
.lbMemberDrawer [hidden], .lbMemberMain [hidden] { display: none !important; }
html:has(.lbMemberDrawer[open]), html:has(.lbMemberDrawer[open]) body { overflow: hidden !important; }
.lbMemberDrawer {
  --lb-member-edge: 18px;
  --lb-member-top: max(var(--lb-member-edge), env(safe-area-inset-top));
  --lb-member-right: max(var(--lb-member-edge), env(safe-area-inset-right));
  --lb-member-bottom: max(var(--lb-member-edge), env(safe-area-inset-bottom));
  --lb-member-left: max(var(--lb-member-edge), env(safe-area-inset-left));
  --lb-rim-surface: linear-gradient(155deg, #19181d 0%, #100f13 27%, #101014 100%);
  box-sizing: border-box;
  position: fixed; inset: var(--lb-member-top) var(--lb-member-right) auto auto;
  margin: 0; padding: 0;
  width: min(398px, calc(100% - var(--lb-member-right) - var(--lb-member-left)));
  max-width: none; max-height: calc(100% - var(--lb-member-top) - var(--lb-member-bottom));
  max-height: calc(100dvh - var(--lb-member-top) - var(--lb-member-bottom));
  overflow: clip; overscroll-behavior: contain;
  border: 1px solid #37323e; border-radius: 17px;
  background: var(--lb-rim-surface);
  box-shadow: 0 20px 82px #000b;
}
.lbMemberDrawer[open] { display: flex; flex-direction: column; }
.lbMemberDrawer::backdrop { background: #050408a8; }
.lbMemberDrawer > .lbModalRim { opacity: .6; }
@media (prefers-reduced-motion: no-preference) and (forced-colors: none) {
  /* The drawer already has a non-scrolling, positioned shell. Anchor-positioned
     fixed rims can lose their reference during this sheet's entrance transform. */
  .lbMemberDrawer[data-lb-modal-rim="member"]:modal > .lbModalRim {
    display: block; position: absolute; position-anchor: auto; inset: 0;
    z-index: 4; border-radius: inherit; overflow: clip;
  }
}
.lbMemberHead {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 66px; padding: 7px 16px 7px 20px;
}
.lbMemberHead h2 { margin: 0; }
.lbMemberHead .lbDockBrand span { font-size: 20px; }
.lbMemberScroll {
  min-height: 0; padding: 0 16px 19px; overflow: auto;
  overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #4f475c transparent;
  scroll-padding-block: 5px 18px;
}
.lbMemberDrawer [data-lb-member-view="overview"] { display: grid; gap: 12px; }
.lbMemberDrawer :is(button, a), .lbMemberMain :is(button, a, summary, textarea) {
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.lbMemberDrawer button, .lbMemberMain button { font: inherit; cursor: pointer; }
.lbMemberDrawer button:disabled, .lbMemberMain button:disabled { cursor: wait; opacity: .62; }
.lbMemberDrawer :is(button, a):focus-visible, .lbMemberMain :is(button, a, summary, textarea):focus-visible {
  outline: 2px solid #e1c5ff; outline-offset: 2px;
}
.lbMemberDrawer :is(button, a):active:not(:disabled), .lbMemberMain :is(button, a):active:not(:disabled) {
  transform: translateY(1px);
}
.lbMemberIconButton {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  color: #f8f7fb; background: transparent; border: 0; border-radius: 9px;
}
.lbMemberIconButton:hover { background: #fff1; }
.lbMemberCard {
  display: grid; gap: 13px; min-width: 0; padding: 15px;
  border: 1px solid #9d794b; border-radius: 15px;
  background:
    radial-gradient(ellipse 90% 115% at 86% 0, #946e262e, transparent 78%),
    radial-gradient(ellipse 105% 116% at 0 0, #6e48473b, transparent 65%),
    linear-gradient(145deg, #222019, #17151a 72%);
}
.lbMemberIdentity { min-width: 0; display: flex; gap: 11px; align-items: center; }
.lbMemberAvatar {
  display: grid; place-items: center; flex: none; width: 46px; height: 46px;
  border: 1px solid #bf9b61; border-radius: 50%;
  background: linear-gradient(155deg, #3e3131, #15121d); box-shadow: inset 0 0 10px #f2cb5826;
}
.lbMemberAvatar img { width: 30px; height: 30px; }
.lbMemberIdentityText { flex: 1; min-width: 0; }
.lbMemberIdentityText strong {
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 17px; line-height: 1.25;
}
.lbMemberDrawer .lbMemberProfileLink {
  display: block; min-height: 28px; margin: 0 -3px; padding: 2px 3px;
  text-align: start; border: 0; border-radius: 5px; background: transparent;
  color: #e7dbea; font-size: 14px; font-weight: 650;
}
.lbMemberDrawer .lbMemberProfileLink:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.lbMemberFunds { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 12px; flex-wrap: wrap; }
.lbMemberFunds > span { color: #dfd6e1; font-weight: 650; }
.lbMemberFunds strong { color: #fff1d7; font-size: 17px; font-variant-numeric: tabular-nums; }
.lbMemberActions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.lbMemberDrawer .lbMemberAction, .lbMemberDrawer .lbMemberLogout {
  display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 46px;
  padding: 7px 8px; border: 1px solid #5c5364; border-radius: 9px;
  background: #232029; color: #fff; font-weight: 750; text-align: center; text-decoration: none;
}
.lbMemberDrawer .lbMemberAction--fund {
  color: #1a141b; border-color: #f3dfc2;
  background: linear-gradient(145deg, #f6ecdb, #d9cadf);
}
.lbMemberActions > .lbMemberAction--fund { grid-column: 1 / -1; }
.lbMemberDrawer .lbMemberAction--address { text-align: start; }
.lbMemberAction--address > span { min-width: 0; overflow-wrap: anywhere; }
.lbMemberAction--address small { display: block; color: #dbccdf; font-size: 11px; font-weight: 550; }
.lbMemberDrawer :is(.lbMemberAction, .lbMemberLogout):hover { border-color: #e0c5f9; background: #3b324d; }
.lbMemberDrawer .lbMemberAction--fund:hover { background: #fff4e3; border-color: #fff4e3; }
.lbMemberInvite {
  min-width: 0; display: grid; gap: 10px; padding: 13px;
  color: #f9f3ed; border: 1px solid #87663f; border-radius: 13px;
  background: radial-gradient(ellipse 86% 135% at 4% -35%, #694c2a73, transparent 79%),
    linear-gradient(137deg, #282019, #1d181b 69%, #1b171e);
  box-shadow: inset 0 1px #ffd69924;
}
.lbMemberInviteHead { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lbMemberInviteBadge {
  flex: none; display: grid; place-items: center; width: 42px; height: 42px;
  color: #ffdda1; border: 1px solid #ac854e; border-radius: 11px;
  background: linear-gradient(155deg, #5a4227, #29201b 80%);
  box-shadow: inset 0 1px #fee4b14d, 0 3px 6px #120d1099;
}
.lbMemberInviteIntro { flex: 1; min-width: 0; }
.lbMemberInviteIntro h3 { margin: 0; font-size: 18px; line-height: 1.2; font-weight: 800; text-wrap: balance; }
.lbMemberInviteIntro p, .lbMemberInviteTotal { margin: 3px 0 0; font-size: 12px; line-height: 1.3; color: #d8c6b7; }
.lbMemberInviteTotal {
  flex: none; display: grid; gap: 2px; margin: 0; text-align: end;
  padding-inline-start: 10px; border-inline-start: 1px solid #997a563b;
}
.lbMemberInviteTotal strong { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; color: #ffdb99; }
.lbMemberInvite :is(label, input) { min-width: 0; }
.lbMemberInvite label { display: grid; gap: 4px; font-size: 12px; font-weight: 650; color: #dac8b7; }
.lbMemberInvite input {
  width: 100%; min-height: 42px; padding: 8px 10px; font: 650 16px/1.2 ui-monospace, Consolas, monospace;
  color: #fae6c5; background: #141216; border: 1px solid #5c4a3a; border-radius: 8px; cursor: text;
  user-select: text;
}
.lbMemberInviteCode input { letter-spacing: .045em; }
.lbMemberInvite input:focus-visible { outline: 2px solid #ffd793; outline-offset: 2px; }
.lbMemberInvite input::selection { color: #221608; background: #f4d293; }
.lbMemberInviteActions { display: grid; grid-template-columns: 1.45fr 1fr; gap: 8px; }
.lbMemberInviteActions button {
  display: flex; justify-content: center; align-items: center; gap: 6px;
  min-width: 0; min-height: 44px; padding: 5px 8px; border: 1px solid #866849; border-radius: 8px;
  font-size: 13px; font-weight: 750; line-height: 1.2; text-align: center;
  color: #ffebcd; background: #322722;
}
.lbMemberInviteActions svg { flex: none; }
.lbMemberInviteActions [data-lb-invite-copy] {
  color: #261909; border-color: #e0b775;
  background: linear-gradient(175deg, #ffe4b1, #e5b46b 82%); box-shadow: inset 0 1px #fff8dc99;
}
.lbMemberInviteActions [data-lb-invite-copy]:hover { background: #ffe4b1; }
.lbMemberInviteActions [data-lb-invite-share]:hover { background: #4c392a; }
.lbMemberInviteStatus { margin: 0; color: #ffe0ab; font-size: 12px; overflow-wrap: anywhere; }
.lbMemberInviteStatus:empty { margin-top: -10px; }
.lbMemberInviteInvalid { background: #111015; }
.lbMemberMain .lbMemberPageArena {
  position: relative; isolation: isolate; overflow: clip;
  display: flex; align-items: center; gap: 6px;
  min-height: 108px; padding: 0 15px;
  color: #fff9f6; border: 1px solid #42364c; border-radius: 13px; text-decoration: none;
  background:
    radial-gradient(ellipse 40% 150% at 73% 95%, #8542537a, transparent 76%),
    linear-gradient(115deg, #271c2d 0%, #1a1624 49%, #16141c 100%);
}
.lbMemberArenaArt {
  z-index: -1; position: absolute; inset: 0 0 0 43%; pointer-events: none;
  display: grid; place-content: end center; place-items: end center;
}
.lbMemberArenaArt::before {
  position: absolute; content: ""; inset: 0;
  background:
    conic-gradient(from 146deg at 48% -14%, transparent, #e779a63b 10deg, transparent 33deg),
    conic-gradient(from 154deg at 87% -10%, transparent, #e9d9ff64 13deg, transparent 24deg),
    radial-gradient(ellipse 56% 18% at 63% 94%, #e4bac747, #3c2634 58%, transparent 70%);
}
.lbMemberArenaArt img {
  grid-area: 1 / 1; object-fit: contain; position: relative; filter: drop-shadow(0 5px 6px #0009);
}
.lbMemberArenaArt img:first-child { transform: translate(-25px, 0) rotate(-11deg); }
.lbMemberArenaArt img:last-child { transform: translate(22px, -5px) rotate(10deg); }
.lbMemberGroup, .lbMemberSubpage {
  min-width: 0; padding: 13px 11px 10px;
  border: 1px solid #2d2834; border-radius: 15px;
  background: radial-gradient(ellipse 70% 110% at 43% -65%, #48394c, #17151c 80%, #15141a);
}
.lbMemberGroup h3 { font-size: 17px; line-height: 1.2; margin: 0 2px 8px; font-weight: 800; }
.lbMemberGrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.lbMemberGrid [data-lb-member-language] { min-width: 0; grid-column: 3; grid-row: 1; }
.lbMemberGrid :is(.lbMemberShortcut, .lbLocaleToggle) {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; width: 100%; min-height: 66px; padding: 6px 2px;
  background: transparent; color: #f1edf8; border: 1px solid transparent; border-radius: 9px;
  font: 670 13px/1.15 "Segoe UI Variable", "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  text-align: center; white-space: normal; text-decoration: none; overflow-wrap: anywhere;
}
.lbMemberGrid :is(.lbMemberShortcut, .lbLocaleToggle) svg { width: 22px; height: 22px; flex: none; color: #e1d6ef; }
.lbMemberGrid :is(.lbMemberShortcut, .lbLocaleToggle):is(:hover, [aria-expanded="true"]) {
  background: #efc7ff13; border-color: #efc7ff29; color: #fff;
}
.lbMemberGrid .lbLocaleToggle .lbLocaleArrow { display: none; }
.lbMemberGrid .lbLocaleOptions { z-index: 3; inset-block: auto calc(100% + 6px); }
.lbMemberDrawer .lbMemberLogout { min-height: 50px; background: #151419; border-color: #57505f; }
.lbMemberStatus { margin: 0; color: #f4cfcd; overflow-wrap: anywhere; }
.lbMemberStatus:empty { display: none; }
.lbMemberSaved { color: #ebdfce; font-size: 13px; }
.lbMemberSubnote { color: #d0c7d7; margin: 0 0 13px; overflow-wrap: anywhere; }
.lbMemberAddressForm { display: grid; gap: 13px; }
.lbMemberAddressForm label { min-width: 0; display: grid; gap: 4px; color: #eee6f0; font-weight: 650; }
.lbMemberAddressForm :is(input, select) {
  width: 100%; min-width: 0; min-height: 44px; border: 1px solid #62566e; border-radius: 8px;
  padding: 7px 9px; background: #211c27; color: #fff; font: inherit; font-size: 16px;
}
.lbMemberAddressForm :is(input, select):focus-visible { outline: 2px solid #e1c5ff; outline-offset: 2px; }
.lbMemberAddressForm [aria-invalid="true"] { border-color: #f2aaa7; }
.lbMemberAddressForm :disabled { opacity: .64; }
.lbMemberAddressRegions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lbMemberAddressActions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lbMemberAddressActions > button { flex: 1 1 auto; }
.lbMemberDrawer .lbMemberAddressDelete {
  min-height: 44px; padding: 7px 8px; color: #e9c1be; background: transparent; border: 1px solid transparent; border-radius: 8px;
  text-decoration: underline; text-underline-offset: 3px;
}
.lbMemberDrawer .lbMemberAddressDelete:hover { background: #f4c4be17; }
.lbMemberAddressRemove { padding: 10px; border: 1px solid #77524d; border-radius: 9px; background: #2d1e23; }
.lbMemberAddressRemove p { margin: 0 0 8px; }
.lbMemberSubpage > .lbMemberStatus:not(:empty) { margin-bottom: 10px; }
.lbMemberOfferLink {
  display: flex; align-items: center; gap: 8px; min-height: 48px; color: #f1e8fb;
  border: 1px solid #5c5364; border-radius: 9px; padding: 8px 10px; text-decoration: none;
}
.lbMemberOfferLink:hover { border-color: #cba9e0; background: #3b324d; }
.lbMemberOfferLink > span { flex: 1; min-width: 0; }
.lbMemberOfferLink > svg { flex: none; }
.lbMemberSubpage { position: relative; padding: 15px; }
.lbMemberSubpage h3 { margin: 3px 0 16px 48px; min-height: 30px; font-size: 20px; }
.lbMemberSubpage .lbMemberIconButton { position: absolute; inset: 8px auto auto 8px; }
.lbMemberSubpage dl { margin: 15px 0 0; }
.lbMemberSubpage dl > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 9px 0; border-top: 1px solid #ffffff20; }
.lbMemberSubpage dt { color: #d0c7d7; }
.lbMemberSubpage dd { margin: 0; overflow-wrap: anywhere; min-width: 0; font-variant-numeric: tabular-nums; }
.lbMemberDrawer .lbMemberSound {
  display: flex; justify-content: space-between; align-items: center; width: 100%; gap: 8px;
  min-height: 48px; border: 1px solid #42394b; border-radius: 9px; padding: 8px 11px;
  background: #211c27; color: inherit; text-align: start;
}
.lbMemberSound:hover { border-color: #ad90c3; }
.lbMemberSwitch { display: inline-flex; flex: none; width: 34px; padding: 3px; border: 1px solid #8d7d9d; border-radius: 999px; background: #29232f; }
.lbMemberSwitch::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: currentColor; }
.lbMemberSound[aria-pressed="true"] .lbMemberSwitch { background: #624b77; }
.lbMemberSound[aria-pressed="true"] .lbMemberSwitch::before { transform: translateX(13px); }

body.lbMemberPage { margin: 0; background: #08080a; min-height: 100vh; }
.lbMemberSkip {
  position: fixed; inset: 8px auto auto 8px; z-index: 50; padding: 10px;
  transform: translateY(-180%); color: #1b1421; background: #e1c5ff;
}
.lbMemberSkip:focus { transform: none; }
.lbMemberMain {
  position: relative; width: min(620px, calc(100% - 40px)); margin: clamp(32px, 6vw, 72px) auto;
  padding-block-end: max(24px, env(safe-area-inset-bottom));
}
.lbMemberMain h1 { margin: 0 0 16px; font-size: clamp(26px, 5vw, 35px); line-height: 1.2; }
.lbMemberMain h2 { margin: 0 0 6px; font-size: 19px; }
.lbMemberMain p { margin: 0 0 12px; color: #e0d7e8; text-wrap: pretty; }
.lbMemberMain section { padding: 17px; border: 1px solid #3d3445; background: #19161fe8; border-radius: 14px; }
.lbMemberMain section + section { margin-top: 12px; }
.lbMemberMain .lbMemberPageArena { min-height: 132px; }
.lbMemberMain .lbMemberPageArena .lbMemberArenaArt { inset-inline: 0; }
.lbMemberMain .lbMemberPageArena img { scale: 1.2; }
.lbMemberMain details { padding: 6px 8px; border: 1px solid #42394b; border-radius: 8px; }
.lbMemberMain details summary { cursor: pointer; padding: 5px 3px; }
.lbMemberMain details p { margin: 4px 3px 6px; }
.lbMemberMain .lbMemberPageLink {
  display: inline-grid; place-items: center; min-height: 44px; color: #f4e7ff; background: #2e2439;
  padding: 7px 12px; border: 1px solid #735884; border-radius: 8px; font-weight: 700; text-decoration: none;
}
.lbMemberMain .lbMemberPageLink:hover { background: #42324f; }
.lbMemberMain label { display: block; margin: 0 0 6px; font-weight: 700; }
.lbMemberMain textarea {
  display: block; width: 100%; margin: 0 0 12px; resize: vertical;
  border: 1px solid #756383; background: #131017; color: inherit; padding: 10px; border-radius: 8px; font: inherit;
}
.lbMemberMain .lbMemberStatus:not(:empty) { margin: 10px 0 0; }
@media (max-width: 540px) {
  .lbMemberDrawer { --lb-member-edge: 8px; border-radius: 15px; }
  .lbMemberHead { min-height: 59px; padding-inline: 16px 11px; }
  .lbMemberScroll { padding-inline: 11px; }
}
@media (prefers-reduced-motion: no-preference) {
  .lbMemberDrawer[open] { animation: lbMemberEnter 190ms cubic-bezier(.19,.71,.28,1) both; }
  .lbMemberDrawer[open]::backdrop { animation: lbMemberVeil 190ms ease-out both; }
}
@keyframes lbMemberEnter { from { transform: translateX(26px); opacity: 0; } }
@keyframes lbMemberVeil { from { opacity: 0; } }
.lbMemberWorkspaces { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin-top: 10px; }
.lbMemberWorkspaces[hidden] { display: none; }
.lbMemberWorkspaces .lbMemberAction { display: grid; place-items: center; min-height: 46px; text-decoration: none; }
