.main {
  grid-template-rows: auto minmax(0, 1fr);
}

.sandbox-banner {
  align-items: center;
  background: rgba(255, 253, 248, 0.96);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  min-height: 48px;
  padding: 8px 18px;
}

.sandbox-banner-copy {
  align-items: baseline;
  display: flex;
  gap: 10px;
  min-width: 0;
}

.sandbox-banner-copy strong {
  color: var(--text);
  font-size: 13px;
}

.sandbox-banner-copy span {
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sandbox-credit {
  align-items: center;
  display: flex;
  gap: 9px;
  min-width: min(300px, 38vw);
}

.sandbox-credit-track {
  background: var(--panel-3);
  border-radius: 999px;
  flex: 1;
  height: 5px;
  overflow: hidden;
}

.sandbox-credit-track > span {
  background: var(--brand-gradient);
  border-radius: inherit;
  display: block;
  height: 100%;
  transition: width 180ms ease;
}

.sandbox-credit-label {
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  white-space: nowrap;
}

.main > .workspace {
  height: calc(100vh - 48px);
}

.sandbox-remote-audio {
  display: none;
}

.sandbox-private-runtime-nav {
  cursor: not-allowed;
  opacity: 0.52;
}

.sandbox-private-runtime-nav:hover {
  background: transparent;
  color: inherit;
}

.sandbox-private-control {
  cursor: not-allowed;
  opacity: 0.58;
}

.sandbox-private-control .sandbox-private-runtime-badge {
  margin-left: 4px;
}

.sandbox-private-runtime-badge {
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 8px;
  letter-spacing: 0.04em;
  margin-left: auto;
  padding: 2px 5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.sandbox-import-private-option {
  cursor: not-allowed;
  opacity: 0.55;
}

.sandbox-import-private-option input {
  cursor: not-allowed;
}

.sandbox-private-feature-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sandbox-private-feature-card {
  align-items: center;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  cursor: not-allowed;
  display: flex;
  font-size: 11px;
  gap: 8px;
  justify-content: space-between;
  min-height: 40px;
  opacity: 0.62;
  padding: 8px 10px;
}

@media (max-width: 760px) {
  .sandbox-banner {
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
  }

  .sandbox-banner-copy span {
    white-space: normal;
  }

  .sandbox-credit {
    min-width: 0;
    width: 100%;
  }

  .main > .workspace {
    height: calc(100vh - 76px);
  }

  .sandbox-private-feature-grid {
    grid-template-columns: 1fr;
  }
}
