html, body, #app {
  max-width: 100% !important;
  overflow-x: hidden;
}
body { max-width: 100% !important; }
#app .max-w-2xl { width: 100%; min-width: 0; }
@media (max-width: 430px) {
  .model-head { flex-direction: column; align-items: stretch; }
  .model-head .btn { width: 100%; }
}
#app svg { width: 1rem; height: 1rem; flex-shrink: 0; }
select {
  color: hsl(var(--foreground));
  background-color: hsl(var(--secondary));
}
select:focus {
  outline: none;
  box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 4px hsl(var(--ring));
}
textarea { resize: vertical; }
.local-checkbox {
  appearance: none;
  width: 1rem;
  height: 1rem;
  border-radius: 0.125rem;
  border: 1px solid hsl(var(--primary));
  background: transparent;
  display: grid;
  place-content: center;
  flex-shrink: 0;
}
.local-checkbox:checked {
  background: hsl(var(--primary));
}
.local-checkbox:checked::after {
  content: "";
  width: 0.28rem;
  height: 0.5rem;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  white-space: nowrap;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s, background-color 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.btn:disabled { pointer-events: none; opacity: 0.5; }
.btn svg { width: 1rem; height: 1rem; flex-shrink: 0; pointer-events: none; }
.btn-hero {
  background: linear-gradient(135deg, #1a6ef4, #21c45d);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--neon-glow);
}
.btn-hero:hover { box-shadow: var(--neon-glow-strong); }
.btn-outline {
  border: 1px solid hsl(var(--input));
  background: hsl(var(--background));
}
.btn-outline:hover {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}
.lyrics-pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--font-body);
}
.key-card input { min-width: 0; }
.generation-progress {
  width: 100%;
  height: 0.5rem;
  overflow: hidden;
  border-radius: 999px;
  background: hsl(var(--secondary));
}
.generation-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1a6ef4, #21c45d);
  transition: width 0.35s ease;
}
.track-card audio { display: block; min-height: 2.5rem; }
.status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #21c45d;
  box-shadow: 0 0 0 0 rgba(33, 196, 93, 0.55);
  animation: local-pulse 1.5s infinite;
}
@keyframes local-pulse {
  0% { box-shadow: 0 0 0 0 rgba(33, 196, 93, 0.5); }
  70% { box-shadow: 0 0 0 0.55rem rgba(33, 196, 93, 0); }
  100% { box-shadow: 0 0 0 0 rgba(33, 196, 93, 0); }
}
#app { min-height: 100vh; }
@keyframes fadein {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
