/* ------------------------------------------------------------------ studio */
.studio-shell .nav {
  background: #05090c;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}
.studio-shell .nav-inner {
  grid-template-columns: auto minmax(0, 1fr);
}
.studio-badge {
  margin-left: 0.15rem;
  padding: 0.1rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.75rem;
}
/* Fill the header's second column so a long name truncates instead of overlapping the brand. */
.studio-account {
  justify-self: stretch;
  justify-content: flex-end;
  min-width: 0;
}
.studio-account .btn {
  border-color: var(--line);
}
.studio-user {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.875rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.studio-main {
  max-width: 48rem;
  margin: 0 auto;
  padding: calc(var(--header-h) + 2.5rem) 20px 4rem;
}
.studio-intro h1 {
  margin: 0 0 0.5rem;
  font-family: 'Geist', var(--font);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}
.studio-intro p,
.studio-muted,
.studio-empty {
  color: var(--muted);
}
.studio-muted a {
  color: var(--fg);
  text-decoration: underline;
}
.studio-back {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.studio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.studio-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color 0.15s ease;
}
.studio-card:hover,
.studio-card:focus-visible {
  border-color: var(--accent);
}
.studio-card h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 500;
}
.studio-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.studio-card-cta {
  margin-top: auto;
  color: var(--accent);
  font-size: 0.875rem;
}

.studio-form,
.studio-status {
  display: grid;
  gap: 1.1rem;
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.studio-field {
  display: grid;
  gap: 0.4rem;
}
.studio-field > span {
  font-size: 0.875rem;
  font-weight: 500;
}
.studio-field small {
  color: var(--faint);
}
.studio-field input,
.studio-field select {
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #000;
  color: var(--fg);
  font: inherit;
}
.studio-field input:focus-visible,
.studio-field select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.studio-switch {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  min-height: 44px;
}
.studio-switch input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--accent);
}
.studio-preview {
  width: 100%;
  max-height: 60vh;
  border-radius: 8px;
  background: #000;
}
.studio-audio {
  width: 100%;
}
.studio-price {
  margin: 0;
  color: var(--muted);
}
.studio-form .btn,
.studio-status .btn {
  justify-self: start;
  min-height: 44px;
}
.studio-form .btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
.studio-status progress {
  width: 100%;
  accent-color: var(--accent);
}
.studio-status p {
  margin: 0;
}
.studio-error {
  color: #fca5a5;
}

.studio-recent {
  margin-top: 3rem;
}
.studio-recent h2 {
  font-size: 1rem;
  font-weight: 500;
}
.studio-recent ul {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.studio-recent li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
