.playground-embed {
  margin: 1rem 0;
  overflow: hidden;
  background: #f8fbf9;
  border: 1px solid #cfe3da;
  border-radius: 0;
}

.playground-embed__bar {
  min-height: 2.15rem;
  padding: 0.2rem 0.5rem 0.2rem 0.625rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.playground-embed__label {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.playground-embed__label span {
  color: #5f776d;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.playground-embed__label strong {
  overflow: hidden;
  color: #0c4b33;
  font-size: 0.83rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playground-embed__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.playground-embed a.playground-embed__popout,
.playground-embed a.playground-embed__popout:visited {
  width: 1.55rem;
  height: 1.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0c4b33;
  background: transparent;
  border: 0;
  border-radius: 3px;
  text-decoration: none;
}

.playground-embed__popout svg {
  display: block;
  fill: none;
  stroke: #0c4b33;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.playground-embed a.playground-embed__popout:hover,
.playground-embed a.playground-embed__popout:focus-visible {
  color: #0c4b33;
  background: transparent;
  opacity: 0.72;
}

.playground-embed a.playground-embed__popout:focus-visible {
  outline: 3px solid rgb(68 183 139 / 35%);
  outline-offset: 2px;
}

.playground-embed__toggle {
  flex: 0 0 auto;
  min-height: 1.55rem;
  padding: 0.15rem 0.55rem;
  color: #fff;
  background: #0c4b33;
  border: 1px solid #0c4b33;
  border-radius: 3px;
  font: 700 0.72rem/1.2 system-ui, sans-serif;
  cursor: pointer;
}

.playground-embed__toggle:hover,
.playground-embed__toggle:focus-visible {
  background: #187f58;
  border-color: #187f58;
}

.playground-embed__toggle:focus-visible {
  outline: 3px solid rgb(68 183 139 / 35%);
  outline-offset: 2px;
}

.playground-embed__frame {
  height: min(430px, 62vh);
  min-height: 340px;
  border-top: 1px solid #cfe3da;
}

.playground-embed__frame[hidden] { display: none; }

.playground-embed__frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  background: #fff;
  border: 0;
}

.playground-embed noscript a {
  display: block;
  padding: 0 1rem 0.8rem;
}

@media (max-width: 640px) {
  .playground-embed__label span { display: none; }
  .playground-embed__frame { height: 460px; min-height: 380px; }
}
