#strudel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  max-width: 700px;
  margin: 1.5rem auto;
  padding: 1.5rem 1.75rem;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  backdrop-filter: blur(3px) saturate(140%);
  -webkit-backdrop-filter: blur(3px) saturate(140%);
  box-shadow: 0 0 70px rgba(168, 85, 247, 0.08), 0 20px 50px rgba(0, 0, 0, 0.45);
}

#strudel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--fg-dim);
}

#strudel-header .accent-name {
  color: var(--accent-2);
  font-weight: 500;
}

#strudel-code {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  color: var(--fg);
  font-family: var(--font);
  font-size: 0.88rem;
  line-height: 1.5;
  outline: none;
}

#strudel-code:focus {
  border-color: var(--accent);
}

#strudel-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.strudel-btn {
  font-size: 0.78rem;
}

#strudel-run {
  border-color: var(--accent);
  color: var(--accent);
}

#strudel-presets {
  display: flex;
  gap: 0.4rem;
  margin-left: auto;
}

#strudel-status {
  font-size: 0.78rem;
  color: var(--fg-dim);
  min-height: 1.2em;
}

#strudel-status.warn {
  color: var(--accent-3);
}

#strudel-hint {
  font-size: 0.78rem;
  color: var(--fg-dim);
  letter-spacing: 0.02em;
}

@media (max-width: 700px) {
  #strudel {
    margin: 3.5rem 1rem 1.5rem;
    padding: 1rem;
    max-width: calc(100% - 2rem);
  }
}
