.page-components-preview {
  min-height: 100vh;
  background: var(--beastest-shell-page-bg);
  color: var(--beastest-shell-page-text);
}

.cloud-playground-frame {
  min-height: 100vh;
}

.cloud-playground-main-shell {
  margin-left: 260px;
  min-width: 0;
}

.cloud-playground-sidebar-shell {
  --beastest-shell-rail-bg: linear-gradient(180deg, rgba(11, 20, 32, 0.98), rgba(7, 14, 24, 0.98));
}

.cloud-playground-shell {
  max-width: var(--beastest-shell-page-max-width);
  margin: 0 auto;
  padding: 28px 20px 40px;
}

.cloud-playground-sidebar__top,
.cloud-playground-sidebar__bottom {
  width: 100%;
}

.cloud-playground-sidebar__brand {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 20px;
  border: 1px solid rgba(190, 210, 230, 0.14);
  background: linear-gradient(135deg, var(--beastest-shell-accent-strong), #4fb0ff 55%, var(--beastest-shell-warm));
  color: var(--beastest-shell-control-text-on-accent);
  text-decoration: none;
  box-shadow: var(--beastest-shell-control-shadow);
  box-sizing: border-box;
}

.cloud-playground-sidebar__brand span {
  display: grid;
  gap: 2px;
}

.cloud-playground-sidebar__brand strong,
.cloud-playground-sidebar__brand small {
  color: inherit;
}

.cloud-playground-sidebar__brand small {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cloud-playground-sidebar__brand--mobile {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
}

.cloud-playground-sidebar__brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(4, 16, 24, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  font-weight: 800;
}

.cloud-playground-sidebar__brand--mobile .cloud-playground-sidebar__brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 12px;
}

.cloud-playground-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  padding: 28px;
  border-radius: var(--beastest-shell-radius-hero);
}

.cloud-playground-hero__copy {
  display: grid;
  gap: 12px;
  max-width: 760px;
}

.cloud-playground-hero__copy h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.cloud-playground-hero__copy p {
  margin: 0;
  color: var(--beastest-shell-hero-muted);
  line-height: 1.7;
}

.cloud-playground-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cloud-playground-eyebrow,
.cloud-playground-panel__eyebrow {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--beastest-shell-accent);
}

.cloud-playground-hero > .beastest-theme-toggle-switch__control {
  flex: 0 0 auto;
  align-self: flex-end;
}

.cloud-playground-sidebar__controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cloud-playground-sidebar__summary {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: var(--beastest-shell-radius-card);
  background: var(--beastest-shell-surface-soft);
  border: 1px solid var(--beastest-shell-line);
}

.cloud-playground-sidebar__summary strong {
  font-size: 1.4rem;
}

.cloud-playground-sidebar__summary span {
  color: var(--beastest-shell-page-muted);
  line-height: 1.5;
}

.cloud-playground-sidebar__summary-list {
  display: grid;
  gap: 6px;
}

.cloud-playground-sidebar__summary-list span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cloud-playground-nav-list {
  max-height: min(52vh, calc(100vh - 280px));
  overflow: auto;
}

.cloud-playground-main {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.cloud-playground-panel {
  position: relative;
  z-index: 0;
  padding: 24px;
  border-radius: var(--beastest-shell-radius-panel);
}

.cloud-playground-panel:has(.beastest-dropdown-list[data-beastest-dropdown][open]) {
  z-index: 30;
}

.cloud-playground-panel__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.9fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 20px;
}

.cloud-playground-panel__head h2,
.cloud-playground-control-card h3 {
  margin: 8px 0 0;
}

.cloud-playground-panel__head p,
.cloud-playground-copy p {
  margin: 0;
  color: var(--beastest-shell-page-muted);
  line-height: 1.7;
}

.cloud-playground-actions,
.cloud-playground-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.cloud-playground-toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.cloud-playground-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--beastest-shell-line);
  background: var(--beastest-shell-surface-soft);
  box-shadow: var(--beastest-shell-shadow);
  color: var(--beastest-shell-page-text);
  font-weight: 600;
}

.cloud-playground-toggle__input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--beastest-shell-accent);
}

.cloud-playground-file-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.cloud-playground-file-pill,
.cloud-playground-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--beastest-shell-line);
  background: var(--beastest-shell-surface-soft);
  box-shadow: var(--beastest-shell-shadow);
  font-size: 0.9rem;
}

.cloud-playground-status-pill {
  color: var(--beastest-shell-accent);
}

.cloud-playground-status-pill--muted {
  color: var(--beastest-shell-page-muted);
}

.cloud-playground-copy {
  margin-bottom: 16px;
}

.cloud-playground-links {
  gap: 18px;
}

.cloud-playground-control-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.cloud-playground-control-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.cloud-playground-control-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: var(--beastest-shell-radius-card);
  background: var(--beastest-shell-surface-soft);
  border: 1px solid var(--beastest-shell-line);
  box-shadow: var(--beastest-shell-shadow);
}

.cloud-playground-control-card h3 {
  font-size: 1rem;
}

.cloud-playground-control-card p {
  margin: 0;
  color: var(--beastest-shell-page-muted);
  line-height: 1.65;
}

.cloud-playground-control-card strong {
  color: var(--beastest-shell-page-text);
}

.cloud-playground-contract-note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--beastest-shell-page-muted);
  line-height: 1.6;
  word-break: break-word;
}

.cloud-playground-parameter-panel {
  padding: 0;
  overflow: hidden;
}

.cloud-playground-parameter-box {
  border-radius: inherit;
}

.cloud-playground-parameter-box summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 0 20px;
  cursor: pointer;
  font-weight: 700;
  color: var(--beastest-shell-page-text);
}

.cloud-playground-parameter-box summary::-webkit-details-marker {
  display: none;
}

.cloud-playground-parameter-box summary::after {
  content: '+';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--beastest-shell-line);
  background: var(--beastest-shell-surface-soft);
}

.cloud-playground-parameter-box[open] summary::after {
  content: '−';
}

.cloud-playground-parameter-box__body {
  display: grid;
  gap: 16px;
  padding: 0 20px 20px;
  border-top: 1px solid var(--beastest-shell-line);
}

.cloud-playground-parameter-box__body p {
  margin: 16px 0 0;
  color: var(--beastest-shell-page-muted);
  line-height: 1.7;
}

.cloud-playground-config-form {
  display: grid;
  gap: 16px;
}

.cloud-playground-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.cloud-playground-field {
  display: grid;
  gap: 8px;
}

.cloud-playground-field > span {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--beastest-shell-page-text);
}

.cloud-playground-field input,
.cloud-playground-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--beastest-shell-line);
  background: var(--beastest-shell-surface-soft);
  color: var(--beastest-shell-page-text);
  box-shadow: var(--beastest-shell-shadow);
  font: inherit;
  resize: vertical;
}

.cloud-playground-field textarea {
  min-height: 96px;
}

.cloud-playground-field input:focus,
.cloud-playground-field textarea:focus {
  outline: none;
  border-color: var(--beastest-shell-control-border-strong);
  box-shadow: 0 0 0 1px rgba(121, 219, 201, 0.22), var(--beastest-shell-shadow);
}

.cloud-playground-field small {
  color: var(--beastest-shell-page-muted);
  line-height: 1.5;
}

.cloud-playground-config-actions {
  display: flex;
  justify-content: flex-start;
}

.cloud-playground-frame-stage {
  margin-top: 18px;
  border-radius: var(--beastest-shell-radius-card);
  border: 1px solid var(--beastest-shell-line);
  background: rgba(4, 10, 18, 0.78);
  box-shadow: var(--beastest-shell-shadow-strong);
  overflow: hidden;
}

.cloud-playground-live-frame {
  display: block;
  width: 100%;
  min-height: 320px;
  border: 0;
  background: #09111c;
}

.cloud-playground-composite {
  display: flex;
  justify-content: flex-start;
}

.cloud-playground-shell-user-menu-stage {
  position: relative;
  min-height: 160px;
  padding: 18px;
  border-radius: var(--beastest-shell-radius-card);
  border: 1px solid var(--beastest-shell-line);
  background:
    radial-gradient(circle at top left, rgba(121, 219, 201, 0.14), transparent 42%),
    var(--beastest-shell-surface-soft);
  box-shadow: var(--beastest-shell-shadow);
  overflow: hidden;
}

.cloud-playground-shell-user-menu-stage:has(.shell-user-menu[open]) {
  overflow: visible;
}

.cloud-playground-shell-user-menu-stage__copy {
  max-width: 240px;
}

.cloud-playground-shell-user-menu-stage__copy p {
  margin: 0;
  color: var(--beastest-shell-page-muted);
  line-height: 1.6;
}

.cloud-playground-shell-user-menu-stage .shell-user-menu {
  position: absolute;
  top: 18px;
  right: 18px;
}

.cloud-playground-empty {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: var(--beastest-shell-radius-card);
  border: 1px dashed var(--beastest-shell-line);
  background: var(--beastest-shell-surface-soft);
}

.cloud-playground-empty p {
  margin: 0;
  color: var(--beastest-shell-page-muted);
  line-height: 1.7;
}

.cloud-playground-preferences {
  width: 100%;
  justify-content: flex-start;
}

@media (max-width: 760px) {
  .cloud-playground-main-shell {
    margin-left: 0;
    padding-top: 92px;
  }

  .cloud-playground-panel__head {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .cloud-playground-shell {
    padding: 20px 14px 32px;
  }

  .cloud-playground-hero,
  .cloud-playground-panel {
    padding: 18px;
  }

  .cloud-playground-parameter-box summary,
  .cloud-playground-parameter-box__body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .cloud-playground-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .cloud-playground-hero > .beastest-theme-toggle-switch__control {
    align-self: flex-start;
  }
}