html.sm-portal-abierto { overflow: hidden; }
#sm-portal {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: white;
  color: #30244a;
}
#sm-portal[open] { display: flex; flex-direction: column; }
#sm-portal::backdrop { background: white; }
#sm-portal .sm-portal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: max(4px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) 4px max(16px,env(safe-area-inset-left));
  border-bottom: 1px solid #e3dfea;
  font: 600 15px/1.35 system-ui,sans-serif;
}
#sm-portal button {
  min-height: 44px;
  padding: 6px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #493366;
  font: inherit;
  cursor: pointer;
}
#sm-portal button:focus-visible { outline: 2px solid #79579b; outline-offset: -2px; }
#sm-portal iframe { display: block; flex: 1; width: 100%; min-height: 0; height: auto; border: 0; }
@media (prefers-reduced-motion: no-preference) {
  #sm-portal[open] { animation: sm-portal-enter 160ms ease-out; }
  @keyframes sm-portal-enter { from { opacity: .85; } to { opacity: 1; } }
}
