.byond-wallet-component {
  --ink: #212326;
  width: min(100%, 520px);
  position: relative;
  font-family: inherit;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
.byond-wallet-component * { box-sizing: border-box; }
.byond-wallet-component button,
.byond-wallet-component input { font: inherit; }
.byond-wallet-component button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.byond-wallet-component button:disabled { opacity: .48; cursor: default; }
.byond-wallet-component button:focus-visible { outline: 2px solid #5b89ad; outline-offset: 3px; }
.byond-wallet-component svg { display: block; }
.byond-wallet-component .sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.byond-wallet-component .icon { width: 18px; height: 18px; flex: 0 0 auto; }
.byond-wallet-component .usdc { width: 25px; height: 25px; flex: 0 0 auto; }

.byond-wallet-stage { position: relative; width: 100%; overflow: visible; }
.byond-wallet-component .wallet-scene {
  position: absolute;
  left: 50%;
  top: 0;
  width: 520px;
  height: 658px;
  margin-left: -260px;
  transform-origin: 50% 0;
  isolation: isolate;
  text-align: left;
}
.byond-wallet-component .wallet-shadow {
  position: absolute;
  z-index: -1;
  left: 49px;
  top: 617px;
  width: 422px;
  height: 31px;
  border-radius: 50%;
  background: rgba(35,23,14,.36);
  filter: blur(22px);
  transform: scaleY(.66);
}

/* Tom Ford leather body */
.byond-wallet-component .tf-leather,
.byond-wallet-component .wallet-shell {
  background-color: #5b351a;
  background-image:
    radial-gradient(150% 80% at 18% 4%, rgba(255,255,255,.09) 0, rgba(255,255,255,0) 32%),
    radial-gradient(105% 70% at 86% 92%, rgba(12,5,2,.22) 0, rgba(12,5,2,0) 54%),
    linear-gradient(97deg, rgba(255,255,255,.018), rgba(255,255,255,0) 34%, rgba(0,0,0,.025) 58%, rgba(255,255,255,.025) 82%, rgba(0,0,0,.018)),
    url("/wallet-texture-0.svg"),
    url("/wallet-texture-1.svg"),
    linear-gradient(135deg,#89552b 0%,#71431f 23%,#5b3518 48%,#46250f 72%,#321707 100%);
  background-size: 500px 342px,500px 342px,500px 342px,210px 210px,250px 250px,500px 342px;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat, repeat, no-repeat;
}
.byond-wallet-component .wallet-shell {
  position: absolute;
  left: 10px;
  top: 288px;
  width: 500px;
  height: 342px;
  border-radius: 13px;
  overflow: hidden;
  z-index: 0;
  box-shadow:
    0 35px 48px -17px rgba(44,25,12,.44),
    0 14px 22px -10px rgba(32,19,10,.26),
    inset 0 1px 0 rgba(255,255,255,.10),
    inset 0 -1px 0 rgba(0,0,0,.28),
    inset 0 0 0 1px rgba(40,20,8,.70);
}
.byond-wallet-component .wallet-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 19% 26%, rgba(255,255,255,.035) 0 1px, transparent 1.4px) 0 0/12px 11px,
    radial-gradient(circle at 70% 64%, rgba(0,0,0,.035) 0 1px, transparent 1.5px) 0 0/14px 13px;
  opacity: .5;
  mix-blend-mode: soft-light;
}
.byond-wallet-component .wallet-shell::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 11px;
  border: 1px solid rgba(43,23,11,.62);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), inset 0 0 12px rgba(0,0,0,.08);
}

/* Thread */
.byond-wallet-component .tf-stitch-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.byond-wallet-component .tf-base-stitch {
  position: absolute;
  left: 10px;
  top: 288px;
  width: 500px;
  height: 342px;
  z-index: 1;
  pointer-events: none;
}
.byond-wallet-component .tf-mid-stitch,
.byond-wallet-component .tf-front-stitch {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 8;
  pointer-events: none;
}
.byond-wallet-component .tf-thread {
  fill: none;
  stroke: #4b2a15;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-dasharray: 2.6 7.1;
  opacity: 1;
  filter: url(#tfThread) drop-shadow(0 1px 0 rgba(255,255,255,.22)) drop-shadow(0 1px 1px rgba(0,0,0,.22));
}

/* Mid leather layer */
.byond-wallet-component .tf-mid-panel {
  position: absolute;
  left: 10px;
  top: 347px;
  width: 500px;
  height: 283px;
  z-index: 2;
  background-position: 0 -59px,0 -59px,0 -59px,0 -59px,0 -59px,0 -59px;
  overflow: hidden;
}
.byond-wallet-component .tf-mid-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055);
  pointer-events: none;
}
.byond-wallet-component .tf-edge-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 4;
  background: linear-gradient(#2b1508,#1e0d04);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 -9px 16px 1px rgba(0,0,0,.64), 0 1px 1px rgba(0,0,0,.28);
}
.byond-wallet-component .tf-edge-right,
.byond-wallet-component .tf-edge-left {
  position: absolute;
  top: 0;
  width: 2px;
  height: 80px;
  z-index: 5;
  background: #251106;
}
.byond-wallet-component .tf-edge-right { right: 0; box-shadow: inset -1px 0 0 rgba(255,255,255,.05), 8px 0 13px rgba(0,0,0,.58); }
.byond-wallet-component .tf-edge-left { left: 0; box-shadow: inset 1px 0 0 rgba(255,255,255,.05), -8px 0 13px rgba(0,0,0,.58); }

/* Cards */
.byond-wallet-component .card-window {
  position: absolute;
  inset: 0 auto auto 0;
  width: 520px;
  height: 607px;
  overflow: hidden;
  pointer-events: none;
}
.byond-wallet-component .card-window-create { z-index: 1; }
.byond-wallet-component .card-window-vendor { z-index: 3; }
/* The window keeps clipping the card while it is still in the slot, so it
   rises out of the pocket; only once its edge clears the mouth does it come
   in front of the pocket. Being "open" alone never lifts it above. */
.byond-wallet-component .card-window.is-above-pocket { z-index: 6; overflow: visible; }
.byond-wallet-component .card-window.is-open.is-above-pocket { z-index: 7; }
.byond-wallet-component .card-position {
  position: absolute;
  left: 42px;
  width: 436px;
  height: 360px;
  pointer-events: auto;
  perspective: 1400px;
  transform-origin: 50% 88%;
  will-change: transform;
}
.byond-wallet-component .card-window-create .card-position { top: 298px; }
.byond-wallet-component .card-window-vendor .card-position { top: 370px; height: 275px; }
/* Keep validation feedback and the review controls visible together. */
.byond-wallet-component .card-window-vendor.is-open:has(.wallet-send-error) .card-position { height: 325px; }
.byond-wallet-component .card-window-vendor .card-face { border-radius: 18px; }
.byond-wallet-component .card {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  will-change: transform;
}
.byond-wallet-component .card-face {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 1px solid rgba(255,255,255,.48);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.50), inset 0 -1px 0 rgba(0,0,0,.10), 0 12px 20px -14px rgba(0,0,0,.42);
}
.byond-wallet-component .card-face::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .13;
  mix-blend-mode: soft-light;
  background-image: url("/wallet-texture-2.svg");
}
.byond-wallet-component .card-face::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(115deg, transparent 7%, rgba(255,255,255,.16) 18%, transparent 31%, transparent 62%, rgba(255,255,255,.08) 77%, transparent 88%),
    repeating-linear-gradient(98deg, transparent 0 31px, rgba(255,255,255,.035) 31px 32px, transparent 32px 49px),
    linear-gradient(180deg, rgba(255,255,255,.12), transparent 22%, transparent 78%, rgba(0,0,0,.055));
  opacity: .9;
}
.byond-wallet-component .face-front { transform: rotateY(0deg); }
.byond-wallet-component .face-back { transform: rotateY(180deg); }
.byond-wallet-component .vendor-face {
  background: #e8eceb;
  color: #313b41;
}
.byond-wallet-component .vendor-face::before { opacity: .035; }
.byond-wallet-component .vendor-face::after { display: none; }
.byond-wallet-component .create-face {
  background:
    radial-gradient(ellipse at 0 0, rgba(255,255,255,.16), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,0) 26%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 1px, rgba(255,255,255,0) 1px 3px),
    linear-gradient(135deg, #4a4f54 0%, #2f3439 27%, #15191d 50%, #34393f 73%, #1b1f24 100%);
  color: #f1f4f6;
  border-color: rgba(255,255,255,.16);
}
.byond-wallet-component .card-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  height: 54px;
  padding: 0 17px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  font-size: 16px;
  font-weight: 450;
  letter-spacing: -.45px;
}
.byond-wallet-component .card-brand,
.byond-wallet-component .card-header-value { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.byond-wallet-component .card-header-value { font-variant-numeric: tabular-nums; font-size: 15px; }
.byond-wallet-component .card-header-value .usdc { width: 17px; height: 17px; }
.byond-wallet-component .vendor-face .card-brand,
.byond-wallet-component .vendor-face .card-header-value { text-shadow: none; }
.byond-wallet-component .create-face .card-brand,
.byond-wallet-component .create-face .card-header-value { color: #f0f3f5; text-shadow: 0 1px 1px rgba(0,0,0,.55); }
.byond-wallet-component .get-icon { width: 23px; height: 23px; border-radius: 50%; background: rgba(255,255,255,.10); color: #f4f6f7; display: grid; place-items: center; box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.byond-wallet-component .get-icon .icon { width: 15px; height: 15px; }
.byond-wallet-component .card-details {
  position: absolute;
  inset: 66px 25px 15px;
  z-index: 2;
  display: flex;
  flex-direction: column;
}
.byond-wallet-component .create-details { top: 64px; }
.byond-wallet-component .card h2,
.byond-wallet-component .card p { margin: 0; }
.byond-wallet-component .card h2 { font-size: 29px; line-height: 1.12; font-weight: 500; letter-spacing: -1.1px; }
.byond-wallet-component .card-intro { margin-top: 6px !important; color: #5e6a70; font-size: 12px; line-height: 1.5; }
.byond-wallet-component .create-face .card-intro { color: rgba(225,232,236,.74); }
.byond-wallet-component .card-form { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.byond-wallet-component .field { display: block; position: relative; }
.byond-wallet-component .field input {
  width: 100%; height: 38px; padding: 0 12px;
  border: 1px solid #75828a30; border-radius: 9px;
  background: #ffffff45; color: #263840; outline: none;
  box-shadow: 0 1px 1px #ffffff33 inset; font-size: 13px;
}
.byond-wallet-component .create-face .field input { background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.13); color: #f1f4f6; }
.byond-wallet-component .create-face .field input::placeholder { color: rgba(230,236,239,.56); }
.byond-wallet-component .field.has-trailing input { padding-right: 44px; }
.byond-wallet-component .input-icon-button { position: absolute; right: 2px; top: 2px; width: 34px; height: 34px; border: 0; background: transparent; color: #748087; display: grid; place-items: center; border-radius: 7px; }
.byond-wallet-component .primary-button,
.byond-wallet-component .secondary-button {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border-radius: 9px; font-weight: 500;
}
.byond-wallet-component .primary-button { width: 100%; min-height: 38px; padding: 0 13px; transition: transform 100ms ease-out; border: 1px solid #1b252acc; color: #f4f9fa; background: linear-gradient(125deg,#303c43,#1b292f); font-size: 12px; }
.byond-wallet-component .secondary-button { min-height: 26px; padding: 0 9px; transition: transform 100ms ease-out; border: 1px solid #6f858f33; color: #27404b; background: #ffffff80; font-size: 10px; }
.byond-wallet-component .create-face .primary-button { color: #eef2f4; background: linear-gradient(180deg,#343b41,#20262b); border-color: rgba(255,255,255,.11); }
.byond-wallet-component .card-bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 9px; }
.byond-wallet-component .micro-note { font-size: 9px; line-height: 1.5; color: #6a767d; }
.byond-wallet-component .create-face .micro-note { color: rgba(209,217,222,.66); }
.byond-wallet-component .text-button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0 6px 8px; border: 0; background: none; color: #39494e; font-size: 11px; white-space: nowrap; }
.byond-wallet-component .create-face .text-button { color: #edf2f5; }
.byond-wallet-component .card-close { position: absolute; z-index: 10; right: -10px; top: -11px; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #d5d9d5; border-radius: 50%; background: #f2f4f0; color: #5b645e; box-shadow: 0 2px 5px #202a231a; }
.byond-wallet-component .pill { padding: 4px 7px; border: 1px solid #71838930; border-radius: 5px; color: #61757d; letter-spacing: .1em; font-size: 8px; font-weight: 500; }
.byond-wallet-component .create-face .pill { color: #e4eaee; border-color: rgba(228,234,238,.20); }
.byond-wallet-component .account-summary { display: flex; align-items: center; gap: 12px; margin: 21px 0; padding: 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.045); }
.byond-wallet-component .avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); color: #eef2f4; flex: 0 0 auto; }
.byond-wallet-component .preview-name { font-size: 14px; }
.byond-wallet-component .preview-email { margin-top: 4px !important; color: rgba(222,229,233,.60); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Front pocket */
.byond-wallet-component .wallet-pocket { position: absolute; left: 10px; top: 433px; width: 500px; height: 197px; z-index: 5; }
.byond-wallet-component .tf-front-left,
.byond-wallet-component .tf-front-right,
.byond-wallet-component .tf-front-bottom { position: absolute; bottom: 0; overflow: hidden; }
.byond-wallet-component .tf-front-left { left: 0; width: 158px; height: 197px; background-position: 0 -145px,0 -145px,0 -145px,0 -145px,0 -145px,0 -145px; }
.byond-wallet-component .tf-front-right { right: 0; width: 158px; height: 197px; background-position: -342px -145px,-342px -145px,-342px -145px,-342px -145px,-342px -145px,-342px -145px; }
.byond-wallet-component .tf-front-bottom { left: 158px; width: 184px; height: 118px; background-position: -158px -224px,-158px -224px,-158px -224px,-158px -224px,-158px -224px,-158px -224px; }
.byond-wallet-component .tf-front-left::after,
.byond-wallet-component .tf-front-right::after,
.byond-wallet-component .tf-front-bottom::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg,rgba(255,255,255,.035),transparent 18%,transparent 72%,rgba(0,0,0,.08)); }

/* Debossed wallet balance */
.byond-wallet-component .balance { position: absolute; left: 148px; width: 204px; bottom: 16px; z-index: 12; text-align: center; color: #211005; text-shadow: -1px -1px 1px rgba(0,0,0,.72), 1px 1px 1px rgba(255,255,255,.15); }
.byond-wallet-component .balance-label { position: relative; display: block; font-size: 13px; line-height: 1; font-weight: 650; letter-spacing: .04em; }
.byond-wallet-component .balance-owner { display: inline-block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.byond-wallet-component .eye-button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); padding: 3px; border: 0; background: none; color: #44240f; }
.byond-wallet-component .eye-button .icon { width: 13px; height: 13px; }
.byond-wallet-component .balance-amount { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 6px; }
.byond-wallet-component .balance-amount .usdc { width: 24px; height: 24px; color: #291307; }
.byond-wallet-component .balance-number { font-size: 28px; line-height: 1; font-weight: 760; letter-spacing: -.8px; color: #211005; font-variant-numeric: tabular-nums; }
.byond-wallet-component .balance-number .decimal { color: #3d210f; font-weight: 650; }
.byond-wallet-component .balance-unit { margin: 6px 0 0; font-size: 8.5px; line-height: 1; font-weight: 700; letter-spacing: .2em; color: #311809; }

/* Ivory face and quiet bronze relief, inspired by the physical OnliCash card. */
.byond-wallet-component .onli-card-front {
  color: #65513a;
  border: 1px solid #fff4e1;
  border-radius: 18px;
  background: linear-gradient(125deg, #eee8de, #ded5c7);
  box-shadow: inset 0 1px 1px #fffdf7, inset 0 -1px 2px #99836a66,
    0 0 0 1px #bfa58880, 0 1px 8px #ffdaa13b, 0 14px 24px -15px #24180d99;
}
.byond-wallet-component .onli-card-front::before {
  opacity: .22;
  mix-blend-mode: multiply;
}
.byond-wallet-component .onli-card-artwork {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.byond-wallet-component .onli-card-front .card-header {
  height: 48px;
  padding: 0 26px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .03em;
}
.byond-wallet-component .onli-card-front .card-header > .icon {
  width: 15px;
  height: 15px;
}
.byond-wallet-component .onli-card-details {
  inset: 54px 26px 18px;
  justify-content: flex-end;
  gap: 12px;
  pointer-events: none;
}
.byond-wallet-component .onli-card-identity {
  display: grid;
  gap: 5px;
  align-self: flex-start;
  margin-bottom: 5px;
  font-size: 10px;
  line-height: 1.4;
}
.byond-wallet-component .onli-card-status { font-weight: 500; }
.byond-wallet-component .onli-card-address { font-variant-numeric: tabular-nums; }
.byond-wallet-component .onli-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.byond-wallet-component .onli-card-wordmark {
  font-size: 25px;
  font-weight: 400;
  letter-spacing: .015em;
  text-shadow: 0 1px 0 #fff9ed;
}
.byond-wallet-component .onli-card-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: #f6f0e580;
  box-shadow: inset 0 0 0 1px #80644538, 0 1px 1px #fff9ef99;
  color: #58442e;
  font-size: 12px;
  font-weight: 500;
  pointer-events: auto;
  transition: background-color 150ms ease-out, transform 100ms ease-out;
}
.byond-wallet-component .onli-card-open:hover { background: #fff8eb; }
.byond-wallet-component .onli-card-open:active { transform: scale(.96); }
.byond-wallet-component .onli-card-front button:focus-visible {
  outline: 2px solid #685039;
  outline-offset: -5px;
}
@media (prefers-reduced-motion: reduce) {
  .byond-wallet-component .onli-card-open { transition: none; }
}

/* The member wallet reuses the original card geometry at a responsive scale. */
.member-wallet-view {max-width:560px;margin:32px auto 52px;text-align:center}
.member-wallet-view h2 {font-size:20px;font-weight:500;letter-spacing:-.02em}
.byond-wallet-component {margin:auto}
.byond-wallet-stage {height:390px}
.byond-wallet-component .wallet-scene {top:-270px}
.byond-wallet-component .create-face {background:linear-gradient(135deg,#30213f,#1c1029);color:#f6edf9}
.byond-wallet-component .card-header {border-radius:0;min-height:48px}
.byond-wallet-component .balance {bottom:17px;color:#160b04}
.byond-wallet-component .balance-number {font-size:32px;max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.byond-wallet-component .eye-button {right:-20px;width:44px;height:44px;color:#211005}
.byond-wallet-component .balance-unit {font-size:10px;letter-spacing:.1em}
.byond-wallet-component .balance-owner {max-width:145px;font-size:12px}
.byond-wallet-component .card-header:hover {background:#ffffff13}
.byond-wallet-component .card-header:active {background:#ffffff24}
.wallet-caption {margin:8px 0;font-size:13px;color:#68716b}
.member-wallet-view .wallet-caption {padding:0 16px}
@media(prefers-reduced-motion:reduce){.byond-wallet-component *{transition:none!important}}

/* Leave room above the slots for the original rising and turning cards. */
.byond-wallet-stage {height:658px}
.byond-wallet-component .wallet-scene {top:0}
.byond-wallet-component .motion-card-details {position:absolute;inset:65px 26px 22px;display:flex;flex-direction:column;justify-content:flex-end;gap:12px}
.byond-wallet-component .motion-card-details p {font-size:15px;line-height:1.5;margin:0;color:inherit}
.byond-wallet-component .motion-card-details h3 {font-size:22px;margin:0;color:inherit}
.byond-wallet-component .motion-card-details button {min-height:44px;font-size:14px}
.byond-wallet-component .card-window:not(.is-open) .motion-card-details {visibility:hidden}
.byond-wallet-component .face-back .motion-card-details {inset:24px}
.byond-wallet-component .card-close[hidden] {display:none}
.byond-wallet-component .card-close {min-height:44px;min-width:44px;right:-14px;top:-16px}

/* Third slot sits behind the original two; their positions and springs stay intact. */
.byond-wallet-component .card-window-agent .card-position {top:226px;height:360px}
.byond-wallet-component .agent-face {background:linear-gradient(135deg,#17483d,#0b2925);color:#f1eee4}

/* Extend the leather body upward for the third slot; keep the first two slots. */
.byond-wallet-component .wallet-shell {top:216px;height:414px}
.byond-wallet-component .tf-base-stitch {top:216px;height:414px}
.byond-wallet-component .card-window-agent {z-index:1}
.byond-wallet-component .tf-rear-panel {position:absolute;left:10px;top:274px;width:500px;height:356px;z-index:2;overflow:hidden}
.byond-wallet-component .tf-rear-panel svg {position:absolute;inset:0;width:100%;height:100%}
.byond-wallet-component .card-window-create {z-index:3}
.byond-wallet-component .tf-mid-panel {z-index:4}
.byond-wallet-component .card-window-vendor {z-index:5}
.byond-wallet-component .wallet-pocket {z-index:7}
.byond-wallet-component .card-window.is-above-pocket {z-index:8}
.byond-wallet-component .card-window.is-open.is-above-pocket {z-index:9}

/* Every flow is a surface of the physical card, never a detached dialog. */
.byond-wallet-component .card-back-header {height:50px;padding:0 18px;display:flex;align-items:center;justify-content:space-between;font-size:11px;letter-spacing:.06em;border-bottom:1px solid #ffffff24}
.byond-wallet-component .card-back-header button {color:inherit;background:transparent;border:0;font-size:12px;min-width:64px;min-height:44px;padding:8px;letter-spacing:normal}
.byond-wallet-component .face-back .card-workspace {inset:50px 0 0;display:block;overflow:auto;overscroll-behavior:contain;padding:14px 20px 20px;scrollbar-width:thin;scrollbar-color:#ffffff55 transparent;touch-action:pan-y}
.byond-wallet-component .card-workspace h3 {font-size:20px;line-height:1.15;letter-spacing:-.035em;margin:0 0 9px}
.byond-wallet-component .card-workspace p {font-size:12px;line-height:1.5;margin:8px 0;color:inherit}
.byond-wallet-component .card-workspace strong {font-size:28px;letter-spacing:-.04em;display:block}
.byond-wallet-component .card-workspace code {display:block;font-size:11px;overflow-wrap:anywhere;margin:10px 0;color:inherit}
.byond-wallet-component .card-workspace a {color:inherit;font-size:12px;display:inline-block;margin:8px 0}
.byond-wallet-component .wallet-card-nav {display:flex;flex-wrap:wrap;gap:4px;margin:0 0 14px;padding:0 0 8px;border-bottom:1px solid #ffffff25}
.byond-wallet-component .wallet-card-nav button {font-size:11px;min-height:44px;padding:5px 8px;border:0;border-radius:8px;background:transparent;color:inherit;white-space:nowrap}
.byond-wallet-component .wallet-card-nav button[aria-current="page"] {background:#ffffff22;box-shadow:inset 0 0 0 1px #ffffff25}
.byond-wallet-component .vendor-face .wallet-card-nav {border-color:#263c3522}
.byond-wallet-component .vendor-face .wallet-card-nav button[aria-current="page"] {background:#263c3514}
.byond-wallet-component .card-workspace button {font-family:inherit;min-height:44px;font-size:12px;padding:9px 12px;border-radius:9px;background:#ffffff18;border:1px solid #ffffff44;color:inherit}
.byond-wallet-component .vendor-face .card-workspace button {background:#fff9;border-color:#263c3533}
.byond-wallet-component .card-workspace button:disabled {cursor:default;opacity:.5}
.byond-wallet-component .card-workspace article {border:0;border-bottom:1px solid #ffffff22;padding:10px 0;margin:0}
.byond-wallet-component .agent-actions {display:flex;gap:6px;flex-wrap:wrap;margin:12px 0}
.byond-wallet-component .card-workspace label {display:block;font-size:11px;margin:9px 0}
.byond-wallet-component .card-workspace input,.byond-wallet-component .card-workspace select {display:block;width:100%;min-height:44px;background:#ffffffed;color:#182e28;border:1px solid #ffffff44;border-radius:8px;padding:10px;font:inherit;font-size:13px;margin-top:4px}
.byond-wallet-component .card-workspace ul {padding-left:18px;font-size:12px;line-height:1.7}
.byond-wallet-component .agent-product {display:grid;grid-template-columns:1fr auto auto;gap:5px 8px;align-items:center}
.byond-wallet-component .agent-product h3 {font-size:15px;margin:0}
.byond-wallet-component .agent-product p {margin:0}
.byond-wallet-component .agent-product button {padding:5px 8px}
.byond-wallet-component .agent-status:empty {display:none}
.byond-wallet-component .card-eyebrow {font-size:10px;letter-spacing:.12em;opacity:.7}
.byond-wallet-component .motion-card-details>h3 {font-size:30px;line-height:1.05;letter-spacing:-.04em;max-width:300px;margin:8px 0}
.byond-wallet-component .motion-card-details>p {max-width:300px}
.byond-wallet-component .vendor-face .card-back-header {border-color:#263c3522}

/* Original portability imagery stays on the physical card face. */
.byond-wallet-component .original-phantom-art {position:absolute;inset:54px 0 0;background:url('/phantom-ad.png') center 36%/cover no-repeat;pointer-events:none}
.byond-wallet-component .original-phantom-art::after {content:"";position:absolute;inset:0;background:linear-gradient(180deg,#1b0d2d22,transparent 34%,#160a242e 56%,#140922db)}
.byond-wallet-component .original-phantom-copy {justify-content:flex-end;gap:8px;text-shadow:0 1px 12px #0009}
.byond-wallet-component .original-phantom-copy .primary-button {background:#bfa0f4;color:#25133d;border-color:#cfb5fb;text-shadow:none}
.byond-wallet-component .onli-card-details .onli-card-open {font-size:12px;min-height:44px}
