/* shell.css: styles for the shared shell (site.js + wallet.js): wallet chooser, account chip,
   toasts, rolling numbers, token controls, accordion helpers, nav active state.
   Uses the PonModel tokens from pm.css (SPEC section 2); every var() carries the token's value as a
   fallback so the shell renders correctly even where pm.css is not loaded. Load after pm.css. */

:root {
  --pm-shell-sans: 'Geist', 'Geist Fallback', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pm-shell-mono: 'Geist Mono', 'Geist Mono Fallback', ui-monospace, SFMono-Regular, Menlo, monospace;
  --pm-shell-ease: cubic-bezier(.23, 1, .32, 1);
}

/* ------------------------------------------------------------ utilities -- */
.pm-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

[data-wallet-chip][hidden],
[data-signed-in][hidden],
[data-signed-out][hidden] { display: none !important; }

/* scroll lock while the chooser is open; --pm-sbw keeps the page from shifting under a classic scrollbar */
html.pm-scroll-lock { overflow: hidden !important; }
html.pm-scroll-lock body { overflow: hidden !important; padding-right: var(--pm-sbw, 0px); }

/* ------------------------------------------------------------ nav active -- */
/* site.js marks the link for location.pathname; mirrors orbio's neon underline on the current item */
.pm-nav-active,
header nav a[aria-current='page'],
[data-nav] a[aria-current='page'] {
  color: var(--pm-ink, #f6eee7) !important;
  text-decoration-line: underline;
  text-decoration-color: var(--pm-orange, #fa6d01);
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}

/* ------------------------------------------------------------ accordion -- */
/* native <details>: the "+" turns back as soon as a close starts (site.js sets data-closing) */
details[data-closing] .group-open\:rotate-45,
details[data-closing] [data-accordion-icon] { rotate: 0deg !important; }
details[data-accordion] > summary,
[data-accordion] details > summary { -webkit-tap-highlight-color: transparent; }
[data-accordion] summary:focus-visible,
[data-accordion-trigger]:focus-visible {
  outline: 2px solid var(--pm-orange, #fa6d01);
  outline-offset: 3px;
  border-radius: 6px;
}
details [data-accordion-icon] { transition: rotate .2s var(--pm-shell-ease); }
details[open] [data-accordion-icon] { rotate: 45deg; }

/* button markup: grid rows 0fr -> 1fr animates to the content's own height */
[data-accordion-panel] {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .32s var(--pm-shell-ease), opacity .26s ease;
  opacity: 0;
}
[data-accordion-panel] > * { min-height: 0; overflow: hidden; }
[data-accordion-item][data-open] > [data-accordion-panel],
[data-accordion-item][data-open] [data-accordion-panel] { grid-template-rows: 1fr; opacity: 1; }
[data-accordion-trigger] [data-accordion-icon] { display: inline-block; transition: rotate .2s var(--pm-shell-ease); }
[data-accordion-item][data-open] [data-accordion-trigger] [data-accordion-icon] { rotate: 45deg; }

/* ------------------------------------------------------------ roll (number flow) -- */
.pm-roll {
  --pm-roll-mask: .2em;
  display: inline-block;
  white-space: nowrap;
  font-variant-numeric: inherit;   /* the host decides: orbio sets tabular digits only where it wants them */
  line-height: inherit;
  vertical-align: baseline;
}
.pm-roll__c,
.pm-roll__d { display: inline-block; vertical-align: top; }
.pm-roll__c { white-space: pre; }
.pm-roll__d {
  position: relative;
  overflow: hidden;
  padding-block: var(--pm-roll-mask);
  margin-block: calc(-1 * var(--pm-roll-mask));
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--pm-roll-mask), #000 calc(100% - var(--pm-roll-mask)), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 var(--pm-roll-mask), #000 calc(100% - var(--pm-roll-mask)), transparent 100%);
}
.pm-roll__z { display: inline-block; visibility: hidden; }
.pm-roll__s {
  position: absolute;
  top: var(--pm-roll-mask);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform var(--pm-roll-dur, .9s) var(--pm-shell-ease);
}
.pm-roll__s > span { display: block; }
.pm-roll__d:not(.is-rolling) .pm-roll__s > span:not(.is-cur) { visibility: hidden; }
.pm-roll .is-enter { animation: pm-roll-in .5s var(--pm-shell-ease) both; }
@keyframes pm-roll-in {
  from { opacity: 0; transform: translateY(.35em); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pm-roll__s { transition: none; }
  .pm-roll .is-enter { animation: none; }
}

/* ------------------------------------------------------------ token controls -- */
.pm-token[data-soon] { cursor: not-allowed; }
a.pm-token[data-soon] { opacity: .78; }
.pm-soon {
  display: inline-flex;
  align-items: center;
  margin-left: 7px;
  padding: 2px 6px 1px;
  border: 1px solid var(--pm-line-strong, rgba(250, 109, 1, .32));
  border-radius: 999px;
  background: rgba(250, 109, 1, .08);
  color: var(--pm-orange-2, #ff8a2b);
  font-family: var(--pm-shell-mono);
  font-size: 9.5px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .12em;
  vertical-align: middle;
  white-space: nowrap;
}

/* ------------------------------------------------------------ copy feedback -- */
[data-copy][data-copied] .pm-copy-idle,
[data-copy-target][data-copied] .pm-copy-idle { display: none; }
[data-copy]:not([data-copied]) .pm-copy-done,
[data-copy-target]:not([data-copied]) .pm-copy-done { display: none; }

/* ------------------------------------------------------------ toasts -- */
.pm-toasts {
  position: fixed;
  z-index: 1100;
  inset: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  overflow: visible;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: calc(100vw - 32px);
  pointer-events: none;
}
.pm-toast {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 9px 16px 9px 10px;
  border: 1px solid var(--pm-line-strong, rgba(250, 109, 1, .32));
  border-radius: 999px;
  background: rgba(17, 13, 11, .94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .35);
  color: var(--pm-ink, #f6eee7);
  font-family: var(--pm-shell-sans);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(10px) scale(.97);
  transition: opacity .22s ease, transform .32s var(--pm-shell-ease);
}
.pm-toast[data-state='in'] { opacity: 1; transform: none; }
.pm-toast[data-state='out'] { opacity: 0; transform: translateY(6px) scale(.98); }
.pm-toast__icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--pm-orange, #fa6d01);
  color: var(--pm-on-orange, #0b0908);
  box-shadow: 0 0 14px rgba(250, 109, 1, .45);
}
.pm-toast[data-tone='error'] { border-color: rgba(255, 77, 61, .45); }
.pm-toast[data-tone='error'] .pm-toast__icon { background: var(--pm-ask, #ff4d3d); box-shadow: none; }
.pm-toast__text { min-width: 0; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) {
  .pm-toast { transition: none; transform: none; }
}

/* ------------------------------------------------------------ account chip -- */
.pm-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-family: var(--pm-shell-sans);
}
.pm-chip__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 10px 0 7px;
  border: 1px solid var(--pm-line-strong, rgba(250, 109, 1, .32));
  border-radius: 999px;
  background: rgba(17, 13, 11, .85);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .35);
  color: var(--pm-ink, #f6eee7);
  font: inherit;
  cursor: pointer;
  transition: border-color .16s var(--pm-shell-ease), background-color .16s var(--pm-shell-ease), transform .16s var(--pm-shell-ease);
}
.pm-chip__btn:hover { border-color: rgba(250, 109, 1, .6); background: rgba(24, 18, 15, .95); }
.pm-chip__btn:active { transform: scale(.97); }
.pm-chip__btn:focus-visible {
  outline: none;
  border-color: var(--pm-orange, #fa6d01);
  box-shadow: 0 0 0 3px rgba(250, 109, 1, .28), 0 0 18px rgba(250, 109, 1, .3);
}
.pm-chip__dot {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--pm-orange, #fa6d01);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 0 10px rgba(250, 109, 1, .45);
}
.pm-chip__dot--lg { width: 30px; height: 30px; }
.pm-chip__addr {
  font-family: var(--pm-shell-mono);
  font-size: 12.5px;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.pm-chip__caret { display: inline-flex; color: var(--pm-ink-3, #8d7b6c); transition: rotate .2s var(--pm-shell-ease); }
.pm-chip[data-open] .pm-chip__caret { rotate: 180deg; }
.pm-chip__menu {
  position: absolute;
  z-index: 60;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  max-width: calc(100vw - 32px);
  padding: 6px;
  border: 1px solid var(--pm-line-strong, rgba(250, 109, 1, .32));
  border-radius: 14px;
  background: var(--pm-bg-2, #110d0b);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .85), 0 0 0 1px rgba(0, 0, 0, .4);
  transform-origin: top right;
  animation: pm-menu-in .18s var(--pm-shell-ease);
}
.pm-chip__menu[hidden] { display: none; }
/* a chip near the left edge (a wrapped phone nav) opens its menu from its own left edge (site.js decides) */
.pm-chip[data-menu-start] .pm-chip__menu { right: auto; left: 0; transform-origin: top left; }
@keyframes pm-menu-in {
  from { opacity: 0; transform: translateY(-4px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.pm-chip__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  padding: 8px 8px 12px;
  border-bottom: 1px dashed var(--pm-line, rgba(250, 109, 1, .16));
}
.pm-chip__who { display: flex; flex-direction: column; min-width: 0; }
.pm-chip__full {
  color: var(--pm-ink, #f6eee7);
  font-family: var(--pm-shell-mono);
  font-size: 12.5px;
  white-space: nowrap;
}
.pm-chip__sub {
  margin-top: 2px;
  overflow: hidden;
  color: var(--pm-ink-3, #8d7b6c);
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pm-chip__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--pm-ink-2, #c7b6a7);
  font: inherit;
  font-size: 13.5px;
  letter-spacing: -.01em;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .14s ease, color .14s ease;
}
.pm-chip__item svg { flex: none; color: var(--pm-ink-3, #8d7b6c); transition: color .14s ease; }
.pm-chip__item:hover,
.pm-chip__item:focus-visible { outline: none; background: var(--pm-bg-3, #18120f); color: var(--pm-ink, #f6eee7); }
.pm-chip__item:hover svg,
.pm-chip__item:focus-visible svg { color: var(--pm-orange, #fa6d01); }
.pm-chip__item--out:hover,
.pm-chip__item--out:focus-visible { color: var(--pm-ink, #f6eee7); }
.pm-chip__item--out:hover svg,
.pm-chip__item--out:focus-visible svg { color: var(--pm-ask, #ff4d3d); }
@media (max-width: 380px) {
  .pm-chip__btn { gap: 6px; padding: 0 8px 0 6px; }
  .pm-chip__addr { font-size: 12px; }
}
/* phones: 40px touch targets without moving anything (the chip's reach grows 3px up and down, the menu rows
   and the chooser's close button grow to 40px) */
@media (max-width: 639.98px) {
  .pm-chip__btn { position: relative; }
  .pm-chip__btn::after { content: ""; position: absolute; inset: -3px 0; }
  .pm-chip__item { height: 40px; }
  .pm-modal__close::after { content: ""; position: absolute; inset: -4px; }
}

/* ------------------------------------------------------------ wallet chooser -- */
.pm-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  font-family: var(--pm-shell-sans);
  color: var(--pm-ink, #f6eee7);
  -webkit-font-smoothing: antialiased;
}
.pm-modal[hidden] { display: none; }
/* the fade-out never swallows a click meant for the page underneath */
.pm-modal[data-state='closed'] { pointer-events: none; }
.pm-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 4, 3, .72);
  -webkit-backdrop-filter: blur(6px) saturate(.9);
  backdrop-filter: blur(6px) saturate(.9);
  opacity: 0;
  transition: opacity .22s ease;
}
.pm-modal__panel {
  position: relative;
  width: min(440px, 100%);
  max-height: calc(100svh - 48px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 26px 24px 18px;
  border: 1px solid var(--pm-line-strong, rgba(250, 109, 1, .32));
  border-radius: 20px;
  background:
    radial-gradient(120% 70% at 18% -12%, rgba(250, 109, 1, .13), transparent 60%),
    linear-gradient(var(--pm-bg-2, #110d0b), var(--pm-bg-2, #110d0b));
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .5), 0 0 60px -20px rgba(250, 109, 1, .25);
  opacity: 0;
  transform: translateY(10px) scale(.97);
  transition: opacity .22s ease, transform .34s var(--pm-shell-ease);
  scrollbar-width: thin;
}
.pm-modal__panel:focus { outline: none; }
.pm-modal[data-state='open'] .pm-modal__overlay { opacity: 1; }
.pm-modal[data-state='open'] .pm-modal__panel { opacity: 1; transform: none; }

/* HUD language from the banner: //// block and a thin rule on the top edge, a + at the far corner */
.pm-modal__hud {
  position: absolute;
  top: 12px;
  left: 24px;
  right: 64px;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}
.pm-modal__slashes { display: inline-flex; gap: 3px; }
.pm-modal__slashes i {
  display: block;
  width: 5px;
  height: 8px;
  background: var(--pm-orange, #fa6d01);
  transform: skewX(-24deg);
  box-shadow: 0 0 8px rgba(250, 109, 1, .45);
}
.pm-modal__rule {
  flex: 0 1 120px;
  height: 1px;
  background: linear-gradient(90deg, rgba(250, 109, 1, .55), rgba(250, 109, 1, 0));
}
/* a blueprint crosshair where the footer's dashed rule ends */
.pm-modal__plus {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 9px;
  height: 9px;
  pointer-events: none;
  background:
    linear-gradient(var(--pm-orange, #fa6d01), var(--pm-orange, #fa6d01)) center / 1px 100% no-repeat,
    linear-gradient(var(--pm-orange, #fa6d01), var(--pm-orange, #fa6d01)) center / 100% 1px no-repeat;
  opacity: .75;
}
.pm-modal__grab { display: none; }

.pm-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--pm-ink-3, #8d7b6c);
  cursor: pointer;
  transition: color .14s ease, background-color .14s ease, border-color .14s ease;
}
.pm-modal__close:hover { background: var(--pm-bg-3, #18120f); color: var(--pm-ink, #f6eee7); }
.pm-modal__close:focus-visible { outline: none; border-color: var(--pm-orange, #fa6d01); color: var(--pm-ink, #f6eee7); box-shadow: 0 0 0 3px rgba(250, 109, 1, .25); }

.pm-modal__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding-right: 36px;
}
.pm-modal__mark {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--pm-line, rgba(250, 109, 1, .16));
  border-radius: 11px;
  background:
    linear-gradient(var(--pm-grid, rgba(250, 109, 1, .07)) 1px, transparent 1px) 0 0 / 8px 8px,
    linear-gradient(90deg, var(--pm-grid, rgba(250, 109, 1, .07)) 1px, transparent 1px) 0 0 / 8px 8px,
    var(--pm-bg, #0b0908);
}
.pm-modal__mark img { display: block; width: 30px; height: 30px; }
.pm-modal__titles { min-width: 0; }
.pm-modal__title {
  margin: 0;
  color: var(--pm-ink, #f6eee7);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.015em;
  line-height: 1.3;
}
.pm-modal__sub {
  margin: 3px 0 0;
  color: var(--pm-ink-3, #8d7b6c);
  font-size: 12.5px;
  line-height: 1.45;
}

.pm-modal__list { display: grid; gap: 8px; margin-top: 20px; }
.pm-wrow {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  padding: 11px 14px;
  border: 1px solid var(--pm-line, rgba(250, 109, 1, .16));
  border-radius: 12px;
  background: rgba(255, 244, 235, .012);
  color: var(--pm-ink, #f6eee7);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .16s var(--pm-shell-ease), background-color .16s var(--pm-shell-ease), opacity .2s ease, transform .16s var(--pm-shell-ease);
}
.pm-wrow:hover { border-color: rgba(250, 109, 1, .42); background: var(--pm-bg-3, #18120f); }
.pm-wrow:active { transform: scale(.99); }
.pm-wrow:focus-visible {
  outline: none;
  border-color: var(--pm-orange, #fa6d01);
  box-shadow: 0 0 0 3px rgba(250, 109, 1, .22), 0 0 22px -4px rgba(250, 109, 1, .45);
}
.pm-wrow[disabled] { cursor: default; }
.pm-wrow[data-dim] { opacity: .42; }
.pm-wrow__icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--pm-line, rgba(250, 109, 1, .16));
  border-radius: 9px;
  background: var(--pm-bg, #0b0908);
  color: var(--pm-ink-2, #c7b6a7);
}
.pm-wrow__icon img { display: block; width: 22px; height: 22px; object-fit: contain; }
.pm-wrow__body { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; }
.pm-wrow__name {
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pm-wrow__sub {
  margin-top: 1px;
  overflow: hidden;
  color: var(--pm-ink-3, #8d7b6c);
  font-family: var(--pm-shell-mono);
  font-size: 12px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pm-wrow__sub[hidden] { display: none; }
.pm-wrow__end { display: inline-flex; flex: none; align-items: center; }
.pm-wrow__tag {
  padding: 3px 8px 2px;
  border: 1px solid rgba(250, 109, 1, .28);
  border-radius: 999px;
  background: rgba(250, 109, 1, .09);
  color: var(--pm-ember, #ffb46b);
  font-family: var(--pm-shell-mono);
  font-size: 10px;
  letter-spacing: .1em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}
.pm-wrow__spin,
.pm-wrow__check { display: none; }
.pm-wrow__spin {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(250, 109, 1, .22);
  border-top-color: var(--pm-orange, #fa6d01);
  border-radius: 999px;
  animation: pm-spin .8s linear infinite;
}
.pm-wrow__check {
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--pm-orange, #fa6d01);
  color: var(--pm-on-orange, #0b0908);
  box-shadow: 0 0 16px rgba(250, 109, 1, .5);
  animation: pm-pop .36s var(--pm-shell-ease);
}
.pm-wrow[data-state='pending'] { border-color: rgba(250, 109, 1, .55); background: var(--pm-bg-3, #18120f); cursor: progress; }
.pm-wrow[data-state='pending'] .pm-wrow__tag,
.pm-wrow[data-state='connected'] .pm-wrow__tag { display: none; }
.pm-wrow[data-state='pending'] .pm-wrow__spin { display: block; }
.pm-wrow[data-state='connected'] {
  border-color: rgba(250, 109, 1, .6);
  background: #22150c;
}
.pm-wrow[data-state='connected'] .pm-wrow__check { display: inline-flex; }
@keyframes pm-spin { to { transform: rotate(360deg); } }
@keyframes pm-pop {
  from { opacity: 0; transform: scale(.5); }
  to { opacity: 1; transform: none; }
}

.pm-wrow--install .pm-wrow__name { color: var(--pm-ink-2, #c7b6a7); font-weight: 400; }
.pm-wrow--install:hover .pm-wrow__name { color: var(--pm-ink, #f6eee7); }
.pm-wrow__install {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--pm-ink-3, #8d7b6c);
  font-size: 12.5px;
  transition: color .14s ease;
}
.pm-wrow--install:hover .pm-wrow__install { color: var(--pm-orange-2, #ff8a2b); }

.pm-modal__note {
  margin: 14px 2px 0;
  color: var(--pm-ink-2, #c7b6a7);
  font-size: 12.5px;
  line-height: 1.55;
}
.pm-modal__note[hidden],
.pm-modal__error[hidden] { display: none; }
.pm-modal__error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 2px 0;
  color: #ff8b7e;
  font-size: 12.5px;
  line-height: 1.45;
}
.pm-modal__error svg { flex: none; margin-top: 1px; color: var(--pm-ask, #ff4d3d); }

.pm-modal__foot {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--pm-line, rgba(250, 109, 1, .16));
  color: var(--pm-ink-3, #8d7b6c);
  font-family: var(--pm-shell-mono);
  font-size: 11px;
  letter-spacing: -.005em;
  line-height: 1.4;
}
.pm-modal__chain { display: inline-flex; align-items: center; gap: 7px; }
.pm-modal__chain i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--pm-orange, #fa6d01);
  box-shadow: 0 0 8px rgba(250, 109, 1, .8);
}

/* bottom sheet under 640px */
@media (max-width: 639.98px) {
  .pm-modal { place-items: end stretch; padding: 0; }
  .pm-modal__panel {
    width: 100%;
    max-height: 88svh;
    padding: 26px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    border-width: 1px 0 0;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: opacity .2s ease, transform .38s var(--pm-shell-ease);
    opacity: 1;
  }
  .pm-modal[data-state='open'] .pm-modal__panel { transform: none; }
  .pm-modal__grab {
    position: absolute;
    top: 8px;
    left: 50%;
    display: block;
    width: 36px;
    height: 4px;
    margin-left: -18px;
    border-radius: 999px;
    background: rgba(250, 109, 1, .28);
    cursor: grab;
    touch-action: none;
  }
  /* the handle's drag area: the top strip of the sheet (wallet.js closes the sheet on a long enough drag) */
  .pm-modal__grab::before { content: ""; position: absolute; inset: -8px -96px -18px; }
  .pm-modal__hud { top: 18px; left: 16px; }
  .pm-modal__close { top: 16px; right: 10px; }
  .pm-modal__head { margin-top: 20px; }
  .pm-modal__foot { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .pm-modal__overlay,
  .pm-modal__panel { transition: none; transform: none !important; }
  .pm-wrow__check,
  .pm-chip__menu { animation: none; }
  .pm-wrow__spin { animation-duration: 2s; }
}
