:root {
  --zoom-up-cyan: #63f6ff;
  --zoom-up-blue: #3976ff;
  --zoom-up-violet: #a66cff;
  --zoom-up-green: #66f7b4;
  --zoom-up-ink: #020b18;
}

.unipay-zoom-up[hidden],
.zoom-up-profile-modal[hidden] {
  display: none !important;
}

.unipay-zoom-up {
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  width: min(1120px, calc(100% - 22px));
  margin: 4px auto 22px;
  padding: 14px 16px 16px;
  overflow: hidden;
  border: 1px solid rgba(99, 246, 255, .3);
  border-radius: 25px;
  background:
    radial-gradient(circle at 50% -30%, rgba(57, 118, 255, .22), transparent 48%),
    linear-gradient(145deg, rgba(2, 18, 38, .76), rgba(3, 10, 28, .6));
  box-shadow: inset 0 0 30px rgba(80, 224, 255, .05), 0 18px 48px rgba(0, 0, 0, .24);
  color: #efffff;
  contain: layout paint;
}

.unipay-zoom-up::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(97, 237, 255, .045) 1px, transparent 1px),
    linear-gradient(rgba(97, 237, 255, .035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

.zoom-up-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}

.zoom-up-heading span {
  display: block;
  color: var(--zoom-up-cyan);
  font: 900 .67rem/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.zoom-up-heading p {
  margin: 0;
  color: rgba(220, 246, 250, .76);
  font-size: .78rem;
  line-height: 1.4;
  text-align: right;
}

.zoom-up-viewport {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  min-height: 142px;
}

.zoom-up-endcap {
  position: relative;
  z-index: 8;
  display: grid;
  place-items: center;
  width: 44px;
  height: 82px;
  padding: 0;
  border: 1px solid rgba(99, 246, 255, .52);
  background: linear-gradient(180deg, rgba(22, 92, 139, .38), rgba(3, 17, 39, .54));
  color: #dffeff;
  font-size: 1.55rem;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.zoom-up-endcap:first-child {
  border-radius: 20px 7px 7px 20px;
}

.zoom-up-endcap:last-child {
  border-radius: 7px 20px 20px 7px;
}

.zoom-up-endcap:disabled {
  cursor: default;
  opacity: .34;
}

.zoom-up-endcap:not(:disabled):hover,
.zoom-up-endcap:not(:disabled):focus-visible {
  border-color: #fff;
  color: #fff;
  box-shadow: 0 0 22px rgba(86, 235, 255, .34);
  outline: none;
}

.zoom-up-rail {
  position: relative;
  height: 112px;
  min-width: 0;
  border-top: 1px solid rgba(101, 241, 255, .48);
  border-bottom: 1px solid rgba(101, 241, 255, .48);
  background: linear-gradient(90deg, rgba(16, 76, 118, .13), rgba(5, 24, 49, .28), rgba(16, 76, 118, .13));
  box-shadow: inset 0 0 24px rgba(55, 221, 255, .08);
  touch-action: none;
}

.zoom-up-rail::before,
.zoom-up-rail::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--zoom-up-cyan), transparent);
  opacity: .35;
}

.zoom-up-rail::before { top: 8px; }
.zoom-up-rail::after { bottom: 8px; }

.zoom-up-slots {
  position: absolute;
  inset: 0 8px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: center;
  gap: clamp(2px, .7vw, 9px);
}

.zoom-up-slot {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  height: 78px;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: #eaffff;
  cursor: pointer;
}

.zoom-up-slot::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(102, 239, 255, .3);
  border-radius: 50%;
  box-shadow: inset 0 0 15px rgba(84, 226, 255, .09), 0 0 12px rgba(46, 189, 255, .08);
}

.zoom-up-slot.is-selected::before,
.zoom-up-slot:hover::before,
.zoom-up-slot:focus-visible::before {
  border-color: rgba(255, 255, 255, .82);
  box-shadow: inset 0 0 18px rgba(103, 246, 255, .17), 0 0 18px rgba(74, 220, 255, .28);
}

.zoom-up-slot:focus-visible { outline: none; }

.zoom-up-slot img {
  position: relative;
  z-index: 2;
  display: block;
  width: calc(100% - 10px);
  max-width: 68px;
  aspect-ratio: 1;
  max-height: none !important;
  object-fit: cover;
  border-radius: 50%;
  opacity: .82;
  filter: saturate(.92) contrast(1.06);
}

.zoom-up-slot.is-selected img { opacity: 1; }

.zoom-up-slot-badge {
  position: absolute;
  z-index: 3;
  right: 2px;
  bottom: 2px;
  width: 15px;
  height: 15px;
  border: 2px solid #061326;
  border-radius: 50%;
  background: var(--zoom-up-green);
  box-shadow: 0 0 10px rgba(102, 247, 180, .75);
}

.zoom-up-slot-loader {
  position: relative;
  z-index: 2;
  width: calc(100% - 10px);
  max-width: 68px;
  aspect-ratio: 1;
  border: 1px solid rgba(97, 239, 255, .34);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(95, 234, 255, .15), rgba(3, 16, 35, .22));
  animation: zoomUpWaiting 1.2s ease-in-out infinite alternate;
}

.zoom-up-slot-loader::after {
  content: "";
  position: absolute;
  inset: 11px;
  border: 2px solid transparent;
  border-top-color: var(--zoom-up-cyan);
  border-right-color: rgba(166, 108, 255, .7);
  border-radius: 50%;
  animation: zoomUpRotate .9s linear infinite;
}

.zoom-up-slot.is-empty .zoom-up-slot-loader {
  animation-duration: 2s;
  opacity: .56;
}

.zoom-up-control {
  --zoom-up-x: 0px;
  position: absolute;
  z-index: 7;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  padding: 14px;
  border: 2px solid rgba(111, 246, 255, .94);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(133, 250, 255, .24), transparent 32%),
    radial-gradient(circle, rgba(8, 41, 72, .97), rgba(2, 9, 24, .98));
  color: #fff;
  font: 950 clamp(.85rem, 1.6vw, 1.16rem)/1.05 "Segoe UI", system-ui, sans-serif;
  letter-spacing: .07em;
  text-align: center;
  text-shadow: 0 0 14px rgba(101, 244, 255, .9);
  box-shadow:
    0 0 0 7px rgba(80, 230, 255, .055),
    0 0 30px rgba(60, 220, 255, .48),
    inset 0 0 26px rgba(99, 246, 255, .13);
  transform: translate(calc(-50% + var(--zoom-up-x)), -50%);
  cursor: grab;
  user-select: none;
  touch-action: none;
  transition: box-shadow .2s ease;
}

.zoom-up-control::before,
.zoom-up-control::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(119, 248, 255, .54);
  border-radius: 50%;
  animation: zoomUpRotate 9s linear infinite;
}

.zoom-up-control::after {
  inset: -8px;
  border-style: solid;
  border-color: var(--zoom-up-violet) transparent var(--zoom-up-cyan) transparent;
  animation-direction: reverse;
  animation-duration: 5s;
}

.zoom-up-control.is-dragging {
  cursor: grabbing;
  box-shadow: 0 0 0 9px rgba(80, 230, 255, .08), 0 0 42px rgba(60, 220, 255, .68), inset 0 0 30px rgba(99, 246, 255, .2);
  transition: none;
}

.zoom-up-status {
  min-height: 1.25em;
  margin: 5px 0 0;
  color: rgba(215, 246, 250, .76);
  font-size: .73rem;
  text-align: center;
}

.zoom-up-profile-modal {
  position: fixed;
  z-index: 2147483520;
  top: max(var(--unipay-content-top-reserve, 72px), calc(env(safe-area-inset-top) + 8px));
  right: max(8px, env(safe-area-inset-right));
  bottom: max(var(--unipay-content-bottom-reserve, 88px), calc(env(safe-area-inset-bottom) + 8px));
  left: max(8px, env(safe-area-inset-left));
  display: grid;
  place-items: center;
  padding: 8px;
  overflow: hidden;
  background: rgba(0, 7, 19, .72);
}

.zoom-up-profile-card {
  --zoom-profile-ratio: 4 / 5;
  position: relative;
  width: min(900px, 100%);
  height: auto;
  max-width: min(100%, calc((100dvh - var(--unipay-content-top-reserve, 72px) - var(--unipay-content-bottom-reserve, 88px) - 28px) * var(--zoom-profile-ratio-number, .8)));
  max-height: 100%;
  aspect-ratio: var(--zoom-profile-ratio);
  overflow: hidden;
  border: 1px solid rgba(116, 245, 255, .92);
  border-radius: 26px;
  background: #071525;
  box-shadow: 0 0 0 7px rgba(75, 227, 255, .055), 0 0 34px rgba(71, 225, 255, .46), 0 0 80px rgba(117, 67, 255, .26);
}

.zoom-up-profile-card::before {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 9px;
  border: 1px solid rgba(120, 245, 255, .35);
  border-radius: 19px;
  pointer-events: none;
}

.zoom-up-profile-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center;
}

.zoom-up-profile-meta {
  position: absolute;
  z-index: 5;
  top: 18px;
  left: 18px;
  max-width: calc(100% - 86px);
  padding: 10px 13px;
  border: 1px solid rgba(116, 245, 255, .34);
  border-radius: 14px;
  background: rgba(1, 13, 29, .58);
  color: #fff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, .22);
}

.zoom-up-profile-meta strong,
.zoom-up-profile-meta span { display: block; }
.zoom-up-profile-meta strong { font-size: clamp(1rem, 2.4vw, 1.4rem); }
.zoom-up-profile-meta span { margin-top: 3px; color: #9cf5ff; font-size: .74rem; }

.zoom-up-profile-close {
  position: absolute;
  z-index: 8;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(121, 246, 255, .7);
  border-radius: 50%;
  background: rgba(1, 15, 31, .65);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

.zoom-up-profile-actions {
  position: absolute;
  z-index: 6;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.zoom-up-profile-actions button {
  min-width: 0;
  min-height: 46px;
  padding: 9px 10px;
  border: 1px solid rgba(116, 245, 255, .54);
  border-radius: 13px;
  background: rgba(1, 18, 38, .66);
  color: #fff;
  font: 850 clamp(.68rem, 1.5vw, .88rem)/1.2 "Segoe UI", system-ui, sans-serif;
  cursor: pointer;
  box-shadow: 0 7px 22px rgba(0, 0, 0, .2);
}

.zoom-up-profile-actions button:hover,
.zoom-up-profile-actions button:focus-visible {
  border-color: #fff;
  background: rgba(10, 69, 101, .82);
  outline: none;
}

.zoom-up-profile-actions button:disabled {
  border-color: rgba(102, 247, 180, .6);
  background: rgba(10, 77, 65, .66);
  color: #bfffe2;
  cursor: default;
}

.zoom-up-profile-feedback {
  position: absolute;
  z-index: 7;
  right: 20px;
  bottom: 78px;
  left: 20px;
  margin: 0;
  color: #fff;
  font-size: .75rem;
  text-align: center;
  text-shadow: 0 1px 8px #000;
}

body.zoom-up-modal-open { overflow: hidden !important; }

/* Profil propre : carte plus compacte, stable et explicitement reliée au portail. */
#profileCard:not(.hidden) {
  position: relative;
  isolation: isolate;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(14px, 3vw, 28px);
  width: min(980px, calc(100% - 20px));
  margin: 18px auto !important;
  padding: clamp(17px, 3vw, 28px) !important;
  overflow: hidden;
  border: 1px solid rgba(102, 241, 255, .54) !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at 10% 30%, rgba(55, 132, 255, .18), transparent 30%),
    linear-gradient(135deg, rgba(4, 25, 48, .96), rgba(3, 9, 25, .95)) !important;
  box-shadow: 0 0 34px rgba(54, 217, 255, .17), inset 0 0 32px rgba(98, 239, 255, .045) !important;
  text-align: left !important;
}

#profileCard:not(.hidden)::before {
  content: "PROFIL SERVEUR ACTIF";
  position: absolute;
  top: 9px;
  right: 14px;
  color: rgba(109, 244, 255, .55);
  font: 850 .58rem/1 ui-monospace, monospace;
  letter-spacing: .13em;
}

#profileCard .profile-avatar-wrapper { min-width: 0; }
#profileCard .profile-avatar-circle {
  width: clamp(104px, 12vw, 154px) !important;
  height: clamp(104px, 12vw, 154px) !important;
  min-width: clamp(104px, 12vw, 154px) !important;
  min-height: clamp(104px, 12vw, 154px) !important;
  border: 1px solid rgba(113, 244, 255, .72);
  box-shadow: 0 0 0 7px rgba(92, 233, 255, .055), 0 0 24px rgba(70, 220, 255, .26);
}

#profileCard .profile-info-text { min-width: 0; }
#profileCard .profile-name { color: #fff; font-size: clamp(1.25rem, 3vw, 2rem); }
#profileCard .profile-subtitle { color: #9deeff; }
#profileCard .profile-portal-btn {
  align-self: center;
  min-width: min(230px, 100%);
  border: 1px solid rgba(105, 244, 255, .76) !important;
  border-radius: 15px !important;
  background: linear-gradient(135deg, #147e9d, #304cb4) !important;
  color: #fff !important;
  box-shadow: 0 0 20px rgba(75, 224, 255, .18);
}

@keyframes zoomUpRotate { to { transform: rotate(360deg); } }
@keyframes zoomUpWaiting { from { opacity: .4; transform: scale(.9); } to { opacity: .9; transform: scale(1); } }

@media (max-width: 720px) {
  .unipay-zoom-up {
    width: calc(100% - 8px);
    margin: 2px auto 14px;
    padding: 10px 7px 11px;
    border-radius: 19px;
  }
  .zoom-up-heading { align-items: start; margin: 0 4px 6px; }
  .zoom-up-heading p { max-width: 62%; font-size: .66rem; }
  .zoom-up-viewport { grid-template-columns: 34px minmax(0, 1fr) 34px; min-height: 112px; }
  .zoom-up-endcap { width: 32px; height: 68px; font-size: 1.2rem; }
  .zoom-up-rail { height: 88px; }
  .zoom-up-slots { inset-inline: 3px; gap: 1px; }
  .zoom-up-slot { height: 63px; }
  .zoom-up-slot img,
  .zoom-up-slot-loader { width: calc(100% - 5px); max-width: 51px; }
  .zoom-up-slot-loader::after { inset: 8px; }
  .zoom-up-control { width: 88px; height: 88px; padding: 10px; font-size: .72rem; }
  .zoom-up-slot-badge { width: 12px; height: 12px; right: 0; bottom: 3px; }
  .zoom-up-profile-card { border-radius: 20px; }
  .zoom-up-profile-actions { right: 10px; bottom: 10px; left: 10px; gap: 5px; }
  .zoom-up-profile-actions button { min-height: 42px; padding: 7px 5px; border-radius: 10px; font-size: .64rem; }
  .zoom-up-profile-feedback { bottom: 62px; }
  #profileCard:not(.hidden) {
    grid-template-columns: 1fr;
    justify-items: center;
    width: calc(100% - 8px);
    text-align: center !important;
  }
  #profileCard .profile-avatar-circle {
    width: 112px !important;
    height: 112px !important;
    min-width: 112px !important;
    min-height: 112px !important;
  }
  #profileCard .profile-portal-btn { width: 100%; }
}

@media (max-width: 430px) {
  .zoom-up-slots { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .zoom-up-slot:nth-child(6),
  .zoom-up-slot:nth-child(7) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .zoom-up-control::before,
  .zoom-up-control::after,
  .zoom-up-slot-loader,
  .zoom-up-slot-loader::after { animation: none; }
}

/* Global main-area zoom opened by clicking the ZOOM UP orb. */
.zoom-up-control {
  grid-template-rows: auto auto;
  gap: 4px;
}

.zoom-up-control-label {
  display: block;
  font: 950 clamp(.72rem, 1.45vw, 1.08rem)/1 "Segoe UI", system-ui, sans-serif;
  letter-spacing: .07em;
}

.zoom-up-global-readout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  gap: 3px;
  color: #85fbff;
  font: 900 .62rem/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  text-shadow: 0 0 10px rgba(99, 246, 255, .9);
}

.zoom-up-global-hundreds {
  min-width: 8px;
  align-self: start;
  padding-top: 2px;
  color: #c1ffff;
  font-size: .55rem;
}

.zoom-up-seven-digit {
  position: relative;
  display: inline-block;
  width: 15px;
  height: 27px;
  flex: 0 0 15px;
}

.zoom-up-seven-digit .seg {
  position: absolute;
  display: block;
  background: rgba(99, 246, 255, .13);
  border-radius: 2px;
  box-shadow: none;
  transition: background .14s ease, box-shadow .14s ease;
}

.zoom-up-seven-digit .seg.is-on {
  background: #79fbff;
  box-shadow: 0 0 6px rgba(99, 246, 255, .95);
}

.zoom-up-seven-digit .seg-a,
.zoom-up-seven-digit .seg-d,
.zoom-up-seven-digit .seg-g {
  left: 3px;
  width: 9px;
  height: 3px;
}

.zoom-up-seven-digit .seg-a { top: 0; }
.zoom-up-seven-digit .seg-g { top: 12px; }
.zoom-up-seven-digit .seg-d { bottom: 0; }

.zoom-up-seven-digit .seg-b,
.zoom-up-seven-digit .seg-c,
.zoom-up-seven-digit .seg-e,
.zoom-up-seven-digit .seg-f {
  width: 3px;
  height: 9px;
}

.zoom-up-seven-digit .seg-f { top: 2px; left: 0; }
.zoom-up-seven-digit .seg-b { top: 2px; right: 0; }
.zoom-up-seven-digit .seg-e { bottom: 2px; left: 0; }
.zoom-up-seven-digit .seg-c { right: 0; bottom: 2px; }

.zoom-up-global-modal[hidden] { display: none !important; }

.zoom-up-global-modal {
  position: fixed;
  z-index: 2147483540;
  inset: 0;
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: rgba(1, 7, 20, .78);
}

.zoom-up-global-backdrop {
  position: absolute;
  inset: 0;
}

.zoom-up-global-card {
  position: relative;
  z-index: 1;
  width: min(520px, 94vw);
  box-sizing: border-box;
  padding: 25px 24px 22px;
  border: 1px solid rgba(99, 246, 255, .75);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(4, 25, 52, .98), rgba(3, 11, 29, .98));
  color: #edffff;
  box-shadow: 0 0 36px rgba(49, 218, 255, .32), inset 0 0 28px rgba(74, 201, 255, .08);
  text-align: center;
}

.zoom-up-global-card::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(166, 108, 255, .3);
  border-radius: 18px;
  pointer-events: none;
}

.zoom-up-global-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(99, 246, 255, .48);
  border-radius: 50%;
  background: rgba(5, 31, 57, .7);
  color: #dfffff;
  font-size: 1.25rem;
  cursor: pointer;
}

.zoom-up-global-kicker {
  display: block;
  color: var(--zoom-up-cyan);
  font: 900 .68rem/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .16em;
}

.zoom-up-global-card h2 {
  margin: 10px 0 8px;
  font-size: clamp(1.15rem, 4vw, 1.55rem);
}

.zoom-up-global-card p {
  margin: 0 auto 16px;
  max-width: 420px;
  color: rgba(220, 246, 250, .78);
  font-size: .8rem;
  line-height: 1.45;
}

.zoom-up-global-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin: 5px 0 13px;
  color: #7dfbff;
  text-shadow: 0 0 18px rgba(99, 246, 255, .8);
}

.zoom-up-global-value strong {
  font: 900 clamp(2rem, 10vw, 3.25rem)/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .08em;
}

.zoom-up-global-value span { font: 900 1rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; }

.zoom-up-global-card input[type="range"] {
  width: min(370px, 86%);
  accent-color: var(--zoom-up-cyan);
  cursor: pointer;
}

.zoom-up-global-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 17px;
}

.zoom-up-global-actions button {
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid rgba(99, 246, 255, .5);
  border-radius: 12px;
  background: rgba(11, 60, 92, .48);
  color: #edffff;
  font-weight: 800;
  cursor: pointer;
}

.zoom-up-global-actions button:first-child,
.zoom-up-global-actions button:last-child {
  width: 44px;
  font-size: 1.35rem;
}

.zoom-up-global-actions button:hover,
.zoom-up-global-actions button:focus-visible,
.zoom-up-global-close:hover,
.zoom-up-global-close:focus-visible {
  border-color: #fff;
  box-shadow: 0 0 16px rgba(99, 246, 255, .35);
  outline: none;
}

.zoom-up-global-status {
  display: block;
  min-height: 1.2em;
  margin-top: 13px;
  color: rgba(220, 246, 250, .72);
  font-size: .72rem;
}

body.zoom-up-global-modal-open { overflow: hidden !important; }

/* Le réglage et le fil restent dans l'espace actif, entre les barres communes. */
.zoom-up-global-modal {
  top: max(var(--unipay-content-top-reserve, 76px), calc(env(safe-area-inset-top, 0px) + 64px));
  right: max(8px, env(safe-area-inset-right, 0px));
  bottom: max(var(--unipay-content-bottom-reserve, 86px), calc(env(safe-area-inset-bottom, 0px) + 78px));
  left: max(var(--unipay-content-left-reserve, 66px), calc(env(safe-area-inset-left, 0px) + 54px));
  padding: 8px;
  border-radius: 18px;
  overflow: hidden;
}

.zoom-up-global-card {
  width: min(760px, 100%);
  max-height: 100%;
  overflow: hidden auto;
  text-align: left;
  scrollbar-width: thin;
}

.zoom-up-directory { margin-top: 18px; padding-top: 13px; border-top: 1px solid rgba(99,246,255,.3); }
.zoom-up-directory-head { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.zoom-up-directory-head h3 { margin:0; font-size:1rem; color:#e7ffff; }
.zoom-up-directory-head span { font-size:.72rem; color:#9aeaf1; }
.zoom-up-directory-filters { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:12px 0; }
.zoom-up-directory-filters label { display:grid; gap:4px; color:#aee9f3; font-size:.72rem; font-weight:700; }
.zoom-up-directory-filters select { min-width:0; min-height:38px; padding:5px 8px; border:1px solid rgba(99,246,255,.55); border-radius:9px; background:#092e47; color:#fff; font:inherit; }
.zoom-up-directory-list { display:grid; gap:7px; max-height:min(35dvh,340px); overflow:auto; padding:2px; scrollbar-width:thin; }
.zoom-up-directory-item { display:flex; align-items:center; gap:10px; min-width:0; width:100%; padding:7px 9px; border:1px solid rgba(99,246,255,.22); border-radius:11px; background:rgba(11,60,92,.35); color:#eaffff; text-align:left; cursor:pointer; }
.zoom-up-directory-item:hover,.zoom-up-directory-item:focus-visible { border-color:#7dfbff; box-shadow:0 0 12px rgba(99,246,255,.22); outline:none; }
.zoom-up-directory-item img { width:42px; height:42px; flex:0 0 42px; border-radius:50%; object-fit:cover; }
.zoom-up-directory-item span { display:grid; min-width:0; gap:2px; }
.zoom-up-directory-item strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.83rem; }
.zoom-up-directory-item small { color:#a9d7df; font-size:.68rem; }
.zoom-up-directory-item em { margin-left:auto; flex:0 0 auto; color:#75f3f8; font-size:.67rem; font-style:normal; }
.zoom-up-directory-empty { margin:10px 0; color:#b5dbe4; font-size:.8rem; }
.zoom-up-directory-more { display:block; margin:9px auto 0; padding:8px 14px; border:1px solid rgba(99,246,255,.55); border-radius:9px; background:#0b3c5c; color:#fff; cursor:pointer; }
.zoom-up-directory-more[hidden] { display:none; }

@media (max-width:600px) {
  .zoom-up-global-modal { left:max(var(--chat-active-left, 58px), 54px); top:max(var(--unipay-content-top-reserve, 67px), 64px); bottom:max(var(--unipay-content-bottom-reserve, 78px), 74px); right:5px; padding:4px; }
  .zoom-up-global-card { padding:16px 10px 12px; border-radius:16px; }
  .zoom-up-global-card > p { margin-bottom:8px; font-size:.72rem; }
  .zoom-up-global-value { margin:4px 0 7px; }
  .zoom-up-global-actions { margin-top:8px; }
  .zoom-up-directory { margin-top:10px; padding-top:9px; }
  .zoom-up-directory-filters { grid-template-columns:1fr 1fr; gap:6px; }
  .zoom-up-directory-filters label:first-child { grid-column:1 / -1; }
  .zoom-up-directory-list { max-height:32dvh; }
  .zoom-up-directory-item { gap:7px; padding:6px; }
  .zoom-up-directory-item img { width:34px; height:34px; flex-basis:34px; }
  .zoom-up-directory-item em { display:none; }
}

@media (max-width: 430px) {
  .zoom-up-control-label { font-size: .68rem; }
  .zoom-up-global-readout { min-height: 25px; transform: scale(.9); }
  .zoom-up-global-card { width: min(94vw, 430px); padding: 22px 15px 18px; border-radius: 20px; }
  .zoom-up-global-actions { gap: 5px; }
  .zoom-up-global-actions button { padding-inline: 9px; font-size: .72rem; }
}

@media (prefers-reduced-motion: reduce) {
  .zoom-up-seven-digit .seg { transition: none; }
}
.zoom-up-retry{align-self:center;border:1px solid rgba(83,235,255,.58);border-radius:999px;padding:.55rem 1rem;background:rgba(5,22,38,.72);color:#dcfbff;font:700 .78rem/1.2 system-ui;cursor:pointer;box-shadow:0 0 18px rgba(40,218,255,.16)}
.zoom-up-retry[hidden]{display:none!important}
.zoom-up-slot.is-unavailable{animation:none!important;opacity:.58}
.zoom-up-slot-unavailable{display:grid;place-items:center;width:100%;height:100%;color:rgba(208,246,255,.72);font-weight:800}

@media (min-width: 601px) {
  .zoom-up-global-modal {
    right: max(var(--unipay-content-right-reserve, 66px), calc(env(safe-area-inset-right, 0px) + 58px));
  }
}

/* The dialog must fit the measured content lane even on a narrow phone. */
@media (max-width: 600px) {
  .zoom-up-global-modal {
    left: max(8px, env(safe-area-inset-left, 0px));
    right: max(8px, env(safe-area-inset-right, 0px));
  }
  .zoom-up-global-modal .zoom-up-global-card {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 16px 10px 12px !important;
  }
}
