.studio-page {
  background: linear-gradient(180deg, #ffffff 0%, #f5f7fb 60%, #ecf2fb 100%);
}

.studio-page::after {
  background: radial-gradient(circle at 60% 20%, rgba(0, 87, 255, 0.08), transparent 50%);
}

.studio-shell {
  padding: 64px 24px 96px;
}

.studio-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.studio-header h1 {
  font-family: "Clash Display", "Sora", sans-serif;
  font-size: clamp(2.5rem, 4vw, 3.4rem);
  margin: 0;
  line-height: 1.15;
}

.studio-header p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.6;
}

.pill {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.panel {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 22px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 25px 60px rgba(9, 26, 43, 0.08);
}

.panel h2 {
  font-size: 1rem;
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  font-size: 1rem;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

textarea {
  min-height: 180px;
  resize: vertical;
  line-height: 1.5;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.inline {
  display: flex;
  gap: 12px;
}

.inline .field-group {
  flex: 1;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

button {
  border: none;
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  color: #ffffff;
  background: linear-gradient(120deg, #0057ff, #4a8fff);
  box-shadow: 0 10px 25px rgba(0, 87, 255, 0.25);
}

button.secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: none;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.voice-select {
  height: 220px;
}

.status {
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0, 87, 255, 0.06);
  border: 1px solid rgba(0, 87, 255, 0.18);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--text);
}

.status::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.status.warn::before {
  background: #f4b000;
}

.status.error::before {
  background: #f15b5d;
}

.status.success::before {
  background: #13c296;
}

.audio-area {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  background: #f7f9ff;
  border: 1px dashed var(--stroke);
}

audio {
  width: 100%;
}

.download-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.voice-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

.voice-meta span {
  background: rgba(11, 27, 43, 0.05);
  padding: 8px 12px;
  border-radius: 12px;
}

.helper-text {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
  margin-top: -6px;
}

@media (max-width: 720px) {
  .inline {
    flex-direction: column;
  }

  .studio-shell {
    padding: 48px 20px 72px;
  }
}
