.panda-effect {
  position: absolute;
  inset: 0;
  z-index: 85000;
  overflow: hidden;
}
.panda-effect:focus {
  outline: none;
}
.panda-stage {
  position: absolute;
  inset: calc(var(--safe-top) + 43px) max(6px, var(--safe-right)) 6px max(6px, var(--safe-left));
}
.panda-icons {
  --panda-icon-column: 70px;
  --panda-icon-row: 59px;
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--panda-icon-column), 1fr));
  grid-auto-rows: var(--panda-icon-row);
  direction: rtl;
  pointer-events: none;
}
.panda-cue-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  direction: ltr;
  color: white;
  text-align: center;
  text-shadow: 1px 1px 1px #111, -1px 0 1px #111, 0 1px 4px #111;
  font-size: 11px;
  line-height: 12px;
}
.panda-cue-icon img {
  width: 32px;
  height: 32px;
  filter: drop-shadow(1px 1px 2px #17376480);
}
.panda-cue-icon span {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.panda-popups {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.panda-popup {
  position: absolute;
  display: flex;
  flex-direction: column;
  width: min(274px, 100%);
  max-height: 100%;
  border: 2px solid #0758cb;
  border-radius: 7px 7px 3px 3px;
  overflow: hidden;
  background: #ece9d8;
  color: #171717;
  box-shadow: 3px 4px 9px #10173568;
  animation: panda-window-in 140ms ease-out backwards;
  pointer-events: auto;
}
.panda-popup .titlebar {
  height: 29px;
  margin: 0;
  padding: 0 4px;
  background: linear-gradient(#76a9fe, #0c68f4 28%, #0056d8 77%, #063fac);
  cursor: grab;
}
.panda-popup .titlebar:active {
  cursor: grabbing;
}
.panda-popup button {
  touch-action: manipulation;
}
.panda-popup .capbutton {
  flex: none;
}
.panda-popup-message {
  overflow: hidden auto;
  scrollbar-width: none;
  padding: 8px 9px 5px;
}
.panda-popup .panda-dialog-symbol {
  width: 24px;
  height: 24px;
  font-size: 17px;
}
.panda-popup .panda-dialog-symbol.warning {
  padding-top: 5px;
}
.panda-popup-button {
  align-self: center;
  flex: none;
  min-width: 64px;
  margin: 3px auto 7px;
}
@keyframes panda-window-in {
  from { opacity: 0.45; }
}
.panda-effect-stall {
  animation: panda-stall 520ms steps(2, end) 2;
}
@keyframes panda-stall {
  25% { translate: 3px 0; filter: brightness(0.75); }
  75% { translate: -2px 0; filter: brightness(0.88); }
}
@media (max-width: 600px) and (orientation: portrait) {
  .panda-popup {
    width: min(244px, 86%);
  }
  .panda-popup .titlebar {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    height: 40px;
    text-align: center;
  }
  .panda-popup .capbutton {
    width: 34px;
    height: 34px;
  }
  .panda-popup-button {
    min-height: 34px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .panda-popup,
  .panda-effect-stall {
    animation: none;
  }
}
.panda-dialog-content {
  display: flex;
  align-items: center;
  gap: 12px;
}
.xpbtn.panda-risk-action {
  border-color: #8f1c1c;
  background: linear-gradient(#c5312e, #a91f23);
  box-shadow: inset 0 1px #ee837d;
  color: #fff;
}
.xpbtn.panda-risk-action:hover {
  background: linear-gradient(#d63b35, #ac2022);
}
.xpbtn.panda-risk-action:active {
  background: #97191c;
}
.xpbtn.panda-risk-action:focus-visible {
  outline-color: #fff;
}
.panda-dialog-content p {
  margin: 0;
}
.panda-dialog-symbol {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  font: bold 21px/1 system-ui, sans-serif;
}
.panda-dialog-symbol.warning {
  padding-top: 7px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  color: #492e00;
  background: #ffce4d;
}
.panda-dialog-symbol.success {
  color: white;
  background: #287942;
  border-radius: 50%;
}
.panda-dialog-symbol.error {
  color: white;
  background: linear-gradient(#ee6243, #b82a1a);
  border-radius: 50%;
}
.panda-dialog-symbol.info {
  color: white;
  background: #2261c2;
  border-radius: 50%;
}
.panda-dialog-symbol.file {
  color: #164984;
  background: #e3eeff;
  border: 1px solid #6290cc;
  border-radius: 2px;
}
.panda-dialog-symbol.message {
  color: #664921;
  background: #fff0c8;
  border: 1px solid #b0915f;
  border-radius: 3px;
}
