* { 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: #f8f9fa; }
header { background: linear-gradient(135deg, #2c3e50, #3498db); color: white; padding: 2rem 1rem; text-align: center; }
header h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.tagline { font-size: 1.2rem; opacity: 0.9; }
main { max-width: 1200px; margin: 0 auto; padding: 1rem; }
section { background: white; margin: 1rem 0; padding: 1.5rem; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
section h2 { color: #2c3e50; margin-bottom: 1rem; border-bottom: 2px solid #3498db; padding-bottom: 0.5rem; }
.controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.input-group { display: flex; flex-direction: column; }
.input-group label { margin-bottom: 0.3rem; font-weight: 600; color: #555; }
.input-group input, .input-group select { padding: 0.7rem; border: 1px solid #ddd; border-radius: 4px; font-size: 1rem; }
.input-group input:focus, .input-group select:focus { outline: none; border-color: #3498db; box-shadow: 0 0 0 2px rgba(52,152,219,0.2); }
button { background: #3498db; color: white; border: none; padding: 0.8rem 1.5rem; border-radius: 4px; cursor: pointer; font-size: 1rem; font-weight: 600; transition: background 0.2s; }
button:hover { background: #2980b9; }
button:active { transform: translateY(1px); }
#calculate-btn { grid-column: 1 / -1; background: #27ae60; }
#calculate-btn:hover { background: #219653; }
.results { margin-top: 1rem; }
.weight-summary { font-size: 1.3rem; font-weight: bold; color: #27ae60; margin-bottom: 1rem; }
#kit-table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
#kit-table th, #kit-table td { padding: 0.7rem; text-align: left; border-bottom: 1px solid #eee; }
#kit-table th { background: #f8f9fa; font-weight: 600; }
#kit-table tr:hover { background: #f5f5f5; }
.priority-1 { background: #fff3cd; }
.priority-2 { background: #d1ecf1; }
.priority-3 { background: #f8d7da; }
.actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.actions button { background: #95a5a6; }
.actions button:hover { background: #7f8c8d; }
.saved-section #saved-kits { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.saved-kit { background: #f8f9fa; padding: 1rem; border-radius: 6px; border-left: 4px solid #3498db; }
.saved-kit h4 { margin-bottom: 0.5rem; }
.saved-kit p { font-size: 0.9rem; color: #666; margin-bottom: 0.5rem; }
.saved-kit button { font-size: 0.85rem; padding: 0.4rem 0.8rem; }
.guidance-section h3 { color: #2c3e50; margin: 1.5rem 0 0.5rem; }
.guidance-section ul { margin-left: 1.5rem; margin-bottom: 1rem; }
.guidance-section li { margin-bottom: 0.3rem; }
.hidden { display: none; }
footer { text-align: center; padding: 1.5rem; color: #666; }
footer a { color: #3498db; }
@media (max-width: 768px) { header h1 { font-size: 1.8rem; } .controls { grid-template-columns: 1fr; } #kit-table { font-size: 0.9rem; } #kit-table th, #kit-table td { padding: 0.4rem; } }
@media print { body { background: white; } section { box-shadow: none; page-break-inside: avoid; } button { display: none; } }


/* 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;
}
