:root {
  color-scheme: light dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #09090b;
  color: #f8fafc;
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  min-height: 100%;
  margin: 0;
}

body {
  min-width: 320px;
}

.showcase-host-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(9, 9, 11, 1)),
    #09090b;
}

.showcase-host-shell[data-embed='true'] {
  grid-template-rows: minmax(0, 1fr);
}

.showcase-host-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(14rem, 22rem) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(9, 9, 11, 0.9);
  backdrop-filter: blur(16px);
}

.showcase-host-brand,
.showcase-host-link {
  color: inherit;
  text-decoration: none;
}

.showcase-host-brand {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(148, 163, 184, 0.36);
  border-radius: 0.5rem;
  overflow: hidden;
  text-indent: -999px;
  position: relative;
}

.showcase-host-brand::before {
  content: 'D';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-indent: 0;
  font-weight: 800;
}

.showcase-host-header h1 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
}

.showcase-host-switcher {
  justify-self: center;
  width: min(100%, 22rem);
  display: grid;
  gap: 0.25rem;
}

.showcase-host-switcher span {
  color: rgba(226, 232, 240, 0.58);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.showcase-host-switcher select {
  width: 100%;
  min-height: 2.25rem;
  padding: 0 2.35rem 0 0.875rem;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 0.5rem;
  color: rgba(248, 250, 252, 0.94);
  background:
    linear-gradient(45deg, transparent 50%, rgba(248, 250, 252, 0.86) 50%) calc(100% - 1rem) 50% / 0.38rem 0.38rem no-repeat,
    linear-gradient(135deg, rgba(6, 182, 212, 0.18), rgba(99, 102, 241, 0.1)),
    rgba(15, 23, 42, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  font: inherit;
  font-size: 0.875rem;
  outline: none;
  appearance: none;
}

.showcase-host-switcher select:focus-visible {
  border-color: rgba(34, 211, 238, 0.86);
  box-shadow:
    0 0 0 3px rgba(34, 211, 238, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.showcase-host-switcher option {
  background: #0f172a;
  color: #f8fafc;
}

.showcase-host-eyebrow {
  margin: 0 0 0.125rem;
  color: rgba(226, 232, 240, 0.64);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.showcase-host-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0 0.875rem;
  border: 1px solid rgba(148, 163, 184, 0.36);
  border-radius: 0.5rem;
  color: rgba(248, 250, 252, 0.92);
  font-size: 0.875rem;
}

.showcase-host-frame {
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  border: 0;
  background: #fff;
}

.showcase-host-panel,
.showcase-host-error {
  width: min(42rem, calc(100vw - 2rem));
  margin: 15vh auto;
  padding: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.82);
}

.showcase-host-panel h1 {
  margin: 0 0 0.5rem;
}

.showcase-host-panel p,
.showcase-host-error p {
  color: rgba(226, 232, 240, 0.78);
}

.showcase-host-error pre {
  overflow: auto;
  color: rgba(248, 250, 252, 0.78);
}

@media (max-width: 720px) {
  .showcase-host-header {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .showcase-host-switcher {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
  }

  .showcase-host-link {
    display: none;
  }
}
