.simulator-slot {
  margin-top: 1.8rem;
  min-width: 0;
}
.simulator {
  min-width: 0;
  background: var(--paper);
}
.simulator-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 12px 16px;
  border: 1px solid var(--bruma-rule);
  border-bottom: 0;
  color: var(--ink);
  background: var(--bruma-card);
}
.simulator-title {
  font-size: 1rem;
  line-height: 1.4;
  font-variation-settings: 'wdth' 100, 'wght' 600;
}
.simulator-expand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  flex-shrink: 0;
  padding: 9px 16px;
  border: 1px solid var(--b05);
  border-radius: 2px;
  font: inherit;
  font-size: .9375rem;
  line-height: 1.4;
  font-variation-settings: 'wdth' 100, 'wght' 600;
  color: var(--b05);
  background: transparent;
  cursor: pointer;
}
.simulator-expand[hidden] {
  display: none;
}
.simulator-expand:hover {
  background: var(--b05);
  color: #fff;
}
.simulator-expand[aria-expanded="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
html.simulator-expanded,
body.simulator-expanded {
  overflow: hidden;
  overscroll-behavior: none;
}
.simulator.is-expanded {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  background: var(--paper);
  overscroll-behavior: contain;
}
.simulator:fullscreen {
  width: 100%;
  height: 100%;
}
.simulator::backdrop {
  background: var(--paper);
}
.simulator.is-expanded .simulator-toolbar {
  flex: 0 0 auto;
  border: 0;
  border-bottom: 1px solid var(--bruma-rule);
}
.simulator.is-expanded .stage {
  flex: 1 1 0;
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  aspect-ratio: auto;
  border: 0;
}
@media (max-width: 560px) {
  .simulator-toolbar {
    gap: 8px 12px;
    padding: 10px 12px;
  }
  .simulator-title {
    font-size: .9375rem;
  }
  .simulator-expand {
    padding-inline: 12px;
  }
}
