.ai-preview-container {
  background: var(--color-slate-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#ai_canvas {
  display: block;
  max-width: 100%;
  object-fit: contain;
}

.ai-progress-bar {
  -webkit-appearance: none;
  appearance: none;
}

.ai-progress-bar::-webkit-progress-bar {
  background: var(--color-slate-200);
  border-radius: 4px;
}

.ai-progress-bar::-webkit-progress-value {
  background: var(--color-primary-500);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.ai-progress-bar::-moz-progress-bar {
  background: var(--color-primary-500);
  border-radius: 4px;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--color-slate-300);
  color: var(--color-slate-700);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: var(--text-sm);
  transition: all 0.15s ease;
}

.btn-outline:hover {
  background: var(--color-slate-100);
  border-color: var(--color-slate-400);
}

.quota-warning {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: #92400e;
  margin-bottom: var(--space-4);
}
.quota-warning .quota-clear-btn {
  margin-left: auto;
  padding: 4px 12px;
  border: 1px solid #d97706;
  background: #fffbeb;
  border-radius: 4px;
  cursor: pointer;
  font-size: var(--text-sm);
  white-space: nowrap;
}
.quota-warning .quota-clear-btn:hover {
  background: #fef3c7;
}

@media (max-width: 640px) {
  #ai_canvas, #st_canvas {
    max-height: 50vh;
  }
  .st-style-chip {
    padding: 10px 18px;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .st-controls {
    flex-direction: column;
  }
  .st-controls .btn,
  .st-controls .st-toggle-btn {
    width: 100%;
  }
}
