.sim-embed-body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.sim-embed-body .library-header {
  display: grid;
  flex: 0 0 58px;
  grid-template-columns: 180px minmax(0, 1fr);
  height: 58px;
}

.sim-embed-body .library-header-space {
  display: none;
}

.sim-embed-body .library-shell {
  display: grid;
  flex: 1;
  min-height: 0;
  height: auto;
}

.sim-embed-body .library-sidebar {
  display: grid;
  overflow: auto;
}

.simulator-embed {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: #fff;
}

.simulator-embed [hidden] {
  display: none;
}

/* 嵌入工具栏样式停用，保留原代码。
.simulator-embed-toolbar {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  border-bottom: 1px solid #e7ebf2;
}

.simulator-embed-toolbar a {
  color: #2563eb;
  white-space: nowrap;
}
*/

.simulator-embed-frame {
  display: block;
  flex: 1;
  width: 100%;
  min-height: 0;
  border: 0;
  background: #fff;
}

.simulator-embed-placeholder {
  display: grid;
  flex: 1;
  place-items: center;
  padding: 24px;
  color: #66758d;
  text-align: center;
}

.simulator-embed-placeholder h2 {
  margin: 0 0 12px;
  color: #24334b;
  font-size: 22px;
}

.simulator-embed-placeholder p {
  line-height: 1.7;
}

.simulator-retry {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.simulator-retry:focus-visible {
  outline: 3px solid #93b9ff;
  outline-offset: 3px;
}

@media (max-width: 680px) {
  .sim-embed-body .library-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 0 12px;
  }

  .sim-embed-body .sim-header-title span {
    display: none;
  }

  .sim-embed-body .library-shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }

  .sim-embed-body .library-sidebar {
    display: flex;
    padding: 6px;
    border-right: 0;
    border-bottom: 1px solid #e2e7f0;
  }

  .sim-embed-body .library-sidebar a {
    flex-shrink: 0;
    padding: 8px 12px;
    white-space: nowrap;
  }
}
