*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 18px; scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  line-height: 1.5;
  color: #1e2b1c;
  background: #f6f3ec;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.site-header {
  background: #2c4a2e;
  color: #f6f3ec;
  padding: 0.75rem 1rem;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #f6f3ec;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
}
.logo svg { width: 28px; height: 28px; }
nav { display: flex; gap: 1.5rem; }
nav a {
  color: #d4e0c8;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
nav a:hover { color: #fff; text-decoration: underline; }

.hero {
  background: linear-gradient(135deg, #3b5e3c 0%, #5a7d4a 100%);
  color: #fff;
  padding: 2.5rem 1rem;
  text-align: center;
}
.hero-text { max-width: 650px; margin: 0 auto; }
.hero h1 { font-size: 2rem; margin-bottom: 0.5rem; letter-spacing: -0.02em; }
.hero-sub { font-size: 1.05rem; opacity: 0.92; }

.builder { padding: 1.5rem 1rem; max-width: 1100px; margin: 0 auto; width: 100%; }
.builder-layout { display: grid; grid-template-columns: 320px 1fr; gap: 2rem; align-items: start; }
.controls-heading { font-size: 1.3rem; margin-bottom: 1rem; color: #2c4a2e; }
.field-group { margin-bottom: 1rem; }
.field-group label { display: block; font-weight: 600; margin-bottom: 0.25rem; font-size: 0.9rem; color: #3b4a33; }
.field-group select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  border: 2px solid #c4bda8;
  border-radius: 6px;
  background: #fff;
  color: #1e2b1c;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%233b4a33'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px;
}
.preset-buttons { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-top: 1.2rem; }
.preset-label { font-size: 0.8rem; font-weight: 600; color: #5a6b4a; width: 100%; margin-bottom: 0.2rem; }
.preset-buttons button {
  font-size: 0.8rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid #8a9b7a;
  background: #fff;
  border-radius: 20px;
  cursor: pointer;
  color: #2c4a2e;
  transition: all 0.15s;
}
.preset-buttons button:hover { background: #e8f0e0; border-color: #3b5e3c; }

.kit-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  padding: 1.5rem;
  border: 1px solid #d8d2c0;
}
.kit-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.kit-header h2 { font-size: 1.3rem; color: #2c4a2e; }
.kit-stats { display: flex; gap: 1rem; font-size: 0.85rem; }
.stat { background: #eef4e8; padding: 0.25rem 0.6rem; border-radius: 4px; font-weight: 600; color: #3b4a33; }
.kit-items { list-style: none; margin-bottom: 1.2rem; }
.kit-items li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
}
.kit-items li:last-child { border-bottom: none; }
.item-info { display: flex; flex-direction: column; }
.item-name { font-weight: 600; }
.item-detail { font-size: 0.78rem; color: #6b7a5a; }
.item-weight { font-weight: 600; color: #3b4a33; white-space: nowrap; }
.item-remove { background: none; border: none; color: #b55; cursor: pointer; font-size: 1.1rem; padding: 0 0.3rem; line-height: 1; }
.item-remove:hover { color: #d33; }
.kit-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.btn-primary, .btn-secondary {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  border: 2px solid transparent;
  font-weight: 600;
  transition: all 0.15s;
}
.btn-primary { background: #3b5e3c; color: #fff; border-color: #3b5e3c; }
.btn-primary:hover { background: #4d7440; }
.btn-secondary { background: #fff; color: #3b5e3c; border-color: #b0bea0; }
.btn-secondary:hover { background: #f0f5ea; }
.custom-form {
  margin-top: 0.8rem;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
}
.custom-form.hidden { display: none; }
.custom-form input {
  padding: 0.4rem 0.6rem;
  border: 2px solid #c4bda8;
  border-radius: 4px;
  font-size: 0.9rem;
  width: 140px;
}
.custom-form button {
  padding: 0.4rem 0.7rem;
  font-size: 0.85rem;
  border-radius: 4px;
  cursor: pointer;
}

.supporting { max-width: 1100px; margin: 0 auto; padding: 2rem 1rem 3rem; }
.supporting h2 { font-size: 1.5rem; color: #2c4a2e; margin-bottom: 1.2rem; }
.supporting h3 { font-size: 1.1rem; color: #3b4a33; margin-bottom: 0.4rem; }
.support-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.support-card { background: #fff; border-radius: 8px; padding: 1.2rem; border: 1px solid #d8d2c0; }
.support-card p { font-size: 0.9rem; color: #3b3b3b; }
.supporting p { margin-bottom: 0.8rem; max-width: 72ch; }
.version-note { font-size: 0.8rem; color: #888; margin-top: 1.5rem; }

.site-footer {
  background: #2c4a2e;
  color: #c4d4b8;
  text-align: center;
  padding: 1rem;
  margin-top: auto;
  font-size: 0.85rem;
}
.site-footer a { color: #e0ecd0; text-decoration: underline; }

@media (max-width: 750px) {
  .builder-layout { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.5rem; }
  .kit-header { flex-direction: column; align-items: flex-start; }
  .preset-buttons { gap: 0.3rem; }
}
@media print {
  .site-header, .site-footer, .builder-controls, .kit-actions, .custom-form, .preset-buttons, .hero, .supporting { display: none; }
  .kit-card { box-shadow: none; border: 1px solid #ccc; }
  body { background: #fff; color: #000; }
}



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