* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; color: #333; background-color: #f8f9fa; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 2rem 0; text-align: center; }
header h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.tagline { font-size: 1.2rem; opacity: 0.9; }
main { padding: 2rem 0; }
section { background: white; border-radius: 8px; padding: 1.5rem; margin-bottom: 1.5rem; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
h2 { color: #667eea; margin-bottom: 1rem; font-size: 1.5rem; }
h3 { color: #555; margin: 1.5rem 0 0.5rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.75rem; border: 1px solid #ddd; border-radius: 4px; font-size: 1rem; }
.form-group textarea { min-height: 120px; resize: vertical; font-family: inherit; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.controls { display: flex; gap: 1rem; margin-top: 1rem; }
.primary-btn { background: #667eea; color: white; border: none; padding: 0.75rem 1.5rem; border-radius: 4px; cursor: pointer; font-size: 1rem; font-weight: 500; }
.primary-btn:hover { background: #5a6fd6; }
.secondary-btn { background: #e9ecef; color: #333; border: 1px solid #ddd; padding: 0.75rem 1.5rem; border-radius: 4px; cursor: pointer; }
.secondary-btn:hover { background: #dee2e6; }
.analyzer-section { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 768px) { .analyzer-section { grid-template-columns: 1fr; } }
.results-panel .result-card { background: #f8f9fa; padding: 1rem; border-radius: 6px; margin-bottom: 1rem; }
.result-item { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid #eee; }
.result-item:last-child { border-bottom: none; }
.result-label { font-weight: 500; color: #666; }
.result-value { font-size: 1.25rem; font-weight: 600; color: #667eea; }
.platform-targets ul { list-style: none; }
.platform-targets li { padding: 0.5rem; margin: 0.25rem 0; background: #f8f9fa; border-radius: 4px; display: flex; justify-content: space-between; }
.target-status.good { color: #28a745; font-weight: 500; }
.target-status.bad { color: #dc3545; }
.scene-breakdown .breakdown-controls { display: grid; grid-template-columns: 1fr 1fr auto; gap: 0.5rem; margin-bottom: 1rem; }
.scene-breakdown .breakdown-controls input { margin-bottom: 0; }
.scenes-container { margin: 1rem 0; }
.scene-item { display: flex; justify-content: space-between; padding: 0.75rem; background: #f8f9fa; margin-bottom: 0.5rem; border-radius: 4px; }
.total-time { text-align: right; padding: 1rem; background: #e7f3ff; border-radius: 4px; margin-top: 1rem; }
.export-buttons { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.export-btn { background: #28a745; color: white; border: none; padding: 0.5rem 1rem; border-radius: 4px; cursor: pointer; }
.export-btn:hover { background: #218838; }
.export-output { margin-top: 1rem; }
.export-output textarea { width: 100%; min-height: 100px; padding: 0.75rem; font-family: monospace; font-size: 0.9rem; }
.supporting-content p { margin-bottom: 1rem; }
footer { text-align: center; padding: 2rem 0; color: #666; }
footer a { color: #667eea; text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* Responsive adjustments */
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } .scene-breakdown .breakdown-controls { grid-template-columns: 1fr; } .tagline { font-size: 1rem; } header h1 { font-size: 1.75rem; } }


/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
