body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  background: radial-gradient(circle at 15% 20%, rgba(111, 227, 243, 0.25), transparent),
    radial-gradient(circle at 80% 0%, rgba(227, 158, 86, 0.3), transparent),
    #05060f;
  color: #f4f6fc;
}

.embed-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  padding: 2rem clamp(1.5rem, 3vw, 3.5rem);
}

.embed-nav {
  width: 100%;
  display: flex;
  justify-content: center;
}

.embed-nav-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #f4f6fc;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(244, 246, 252, 0.35);
  background: linear-gradient(120deg, rgba(111, 227, 243, 0.15), rgba(114, 189, 247, 0.08));
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.embed-nav-link:hover,
.embed-nav-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(111, 227, 243, 0.7);
}

.embed-shell.mode-widget {
  gap: 0;
  justify-content: center;
  padding: 0;
  width: 100vw;
  min-height: 100vh;
}

.orb-wrapper {
  width: min(360px, 90vw);
  aspect-ratio: 1 / 1;
  border-radius: 1.5rem;
  background: linear-gradient(145deg, rgba(14, 18, 40, 0.7), rgba(10, 13, 30, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.orb-wrapper::after {
  content: "";
  position: absolute;
  inset: 0.8rem;
  border-radius: 1rem;
  border: 1px solid rgba(111, 227, 243, 0.2);
  pointer-events: none;
}

.orb-widget {
  width: 92%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
}

.orb-widget canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.embed-shell.mode-widget .orb-wrapper {
  width: 100vw;
  height: 100vh;
  aspect-ratio: auto;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.embed-shell.mode-widget .orb-wrapper::after {
  display: none;
}

.embed-shell.mode-widget .orb-widget {
  width: min(100vw, 100vh);
  height: min(100vw, 100vh);
  max-width: 100%;
  max-height: 100%;
}

.embed-notes {
  max-width: 640px;
  text-align: center;
  color: rgba(244, 246, 252, 0.8);
  font-size: 0.95rem;
  line-height: 1.5;
}

.embed-shell.mode-widget .embed-notes,
.embed-shell.mode-widget .embed-controls {
  display: none;
}

.embed-controls {
  width: min(640px, 100%);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 1rem;
  padding: 1.2rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.embed-controls textarea {
  width: 100%;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 0.9rem;
  resize: vertical;
  border-radius: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(2, 4, 12, 0.7);
  color: #f4f6fc;
  min-height: 90px;
  padding: 0.75rem;
}

.embed-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.embed-actions button {
  border-radius: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(111, 227, 243, 0.12);
  color: #f4f6fc;
  font-weight: 600;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.embed-actions button:hover,
.embed-actions button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(111, 227, 243, 0.6);
}

.embed-meta {
  font-size: 0.8rem;
  color: rgba(244, 246, 252, 0.6);
  text-align: center;
}

.preset-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.preset-btn {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: #f4f6fc;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: border 0.2s ease, transform 0.2s ease;
}

.preset-btn:hover,
.preset-btn:focus-visible {
  border-color: rgba(111, 227, 243, 0.6);
  transform: translateY(-1px);
}
