body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: #f6f8fa;
  color: #1f2933;
}

.header {
  background: #b32017;
  color: white;
  padding: 32px;
}

.header h1 {
  margin: 0 0 6px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px;
}

.previews {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 32px 0;
}

.preview iframe {
  width: 100%;
  height: 520px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.actions {
  margin: 24px 0;
}

.btn-primary {
  background: #b32017;
  color: white;
  border: none;
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
}

.loader {
  margin: 32px 0;
  font-weight: 600;
}

.hidden {
  display: none !important;
}

.output {
  margin-top: 32px;
  background: white;
  padding: 24px;
  border-left: 4px solid #b32017;
}

.layout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.layout-card {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 12px;
  background: #fff;
}

.layout-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.layout-card img {
  width: 100%;
  border-radius: 4px;
}

.notes-label {
  display: block;
  font-weight: 600;
  margin: 16px 0 6px;
}

#projectNotes {
  width: 100%;
  max-width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 10px;
  font-family: inherit;
  font-size: 14px;
}

.skeleton {
  margin-top: 24px;
}

.skeleton-summary,
.skeleton-section,
.skeleton-lines div {
  background: linear-gradient(
    90deg,
    #eeeeee 25%,
    #f5f5f5 37%,
    #eeeeee 63%
  );
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: 6px;
}

.skeleton-summary {
  height: 64px;
  margin-bottom: 24px;
}

.skeleton-section {
  height: 24px;
  width: 60%;
  margin-bottom: 12px;
}

.skeleton-lines div {
  height: 16px;
  margin-bottom: 10px;
}

@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}