*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 100%; scroll-behavior: smooth; }
body { font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; line-height: 1.6; color: #1a1a2e; background: #f0f4f8; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -40px; left: 0; background: #1e3a5f; color: #fff; padding: 8px 16px; z-index: 100; }
.skip-link:focus { top: 0; }
.site-header { background: #1e3a5f; color: #fff; padding: 12px 0; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.logo { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.25rem; }
.logo svg { color: #ffb74d; }
.main-nav ul { display: flex; list-style: none; gap: 20px; flex-wrap: wrap; }
.main-nav a { color: #c8d6e5; text-decoration: none; font-size: 0.95rem; transition: color 0.2s; }
.main-nav a:hover, .main-nav a:focus { color: #ffb74d; }
.hero { background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%); color: #fff; padding: 40px 20px; text-align: center; }
.hero-inner { max-width: 700px; margin: 0 auto; }
.hero h1 { font-size: 2rem; margin-bottom: 8px; }
.hero-sub { font-size: 1.1rem; opacity: 0.9; }
.builder { max-width: 1200px; margin: 0 auto; padding: 30px 20px; }
.builder-grid { display: grid; grid-template-columns: 340px 1fr; gap: 30px; align-items: start; }
.builder-controls { background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.control-group { border: none; margin-bottom: 24px; }
.control-group legend { font-weight: 700; font-size: 1.05rem; margin-bottom: 12px; color: #1e3a5f; }
.scenario-buttons { display: flex; flex-direction: column; gap: 8px; }
.scenario-btn { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 2px solid #e0e6ed; border-radius: 8px; background: #fff; cursor: pointer; text-align: left; transition: all 0.2s; font-size: 0.95rem; }
.scenario-btn:hover { border-color: #ffb74d; background: #fff8f0; }
.scenario-btn.active { border-color: #1e3a5f; background: #e8f0fe; box-shadow: 0 0 0 2px #1e3a5f; }
.scenario-btn[aria-checked="true"] { border-color: #1e3a5f; background: #e8f0fe; }
.scenario-icon { font-size: 1.4rem; }
.scenario-label { font-weight: 600; display: block; }
.scenario-desc { font-size: 0.8rem; color: #5a6a7e; display: block; }
.feature-toggles { display: flex; flex-direction: column; gap: 10px; }
.toggle-item { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 8px 12px; border-radius: 6px; transition: background 0.2s; }
.toggle-item:hover { background: #f5f7fa; }
.toggle-item input[type="checkbox"] { width: 20px; height: 20px; accent-color: #1e3a5f; }
.toggle-label { font-weight: 600; font-size: 0.95rem; }
.toggle-note { font-size: 0.8rem; color: #5a6a7e; }
.action-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { padding: 10px 18px; border: none; border-radius: 8px; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.btn-primary { background: #1e3a5f; color: #fff; }
.btn-primary:hover { background: #2c5282; }
.btn-secondary { background: #e8f0fe; color: #1e3a5f; border: 2px solid #c8d6e5; }
.btn-secondary:hover { background: #d0e0f8; }
.btn-timer { background: #ffb74d; color: #1a1a2e; font-weight: 700; padding: 10px 20px; }
.btn-timer:hover { background: #ffa726; }
.builder-output { display: flex; flex-direction: column; gap: 24px; }
.checklist-panel, .timer-panel, .supply-panel { background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.checklist-header h3 { font-size: 1.3rem; color: #1e3a5f; }
.checklist-meta { font-size: 0.85rem; color: #5a6a7e; margin-top: 4px; }
.checklist { list-style: none; margin-top: 16px; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.checklist li:last-child { border-bottom: none; }
.checklist input[type="checkbox"] { width: 20px; height: 20px; margin-top: 2px; accent-color: #1e3a5f; flex-shrink: 0; }
.checklist label { cursor: pointer; font-size: 0.95rem; }
.checklist .priority-tag { font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 12px; text-transform: uppercase; margin-left: 8px; white-space: nowrap; }
.priority-high { background: #fdecea; color: #b71c1c; }
.priority-med { background: #fff3e0; color: #e65100; }
.priority-low { background: #e8f5e9; color: #1b5e20; }
.timer-panel h3 { font-size: 1.2rem; color: #1e3a5f; }
.timer-desc { font-size: 0.9rem; color: #5a6a7e; margin-top: 4px; }
.timer-display { margin: 16px 0; padding: 16px; background: #f5f7fa; border-radius: 8px; text-align: center; }
.timer-value { font-size: 2.5rem; font-weight: 700; font-variant-numeric: tabular-nums; color: #1e3a5f; display: block; }
.timer-status { font-size: 0.9rem; color: #5a6a7e; margin-top: 4px; display: block; }
.timer-display.warning .timer-value { color: #e65100; }
.timer-display.danger .timer-value { color: #b71c1c; }
.timer-controls { display: flex; gap: 10px; flex-wrap: wrap; }
.timer-guide { margin-top: 16px; display: flex; gap: 16px; flex-wrap: wrap; }
.guide-item { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: #5a6a7e; }
.guide-icon { font-size: 1.2rem; }
.supply-panel h3 { font-size: 1.2rem; color: #1e3a5f; }
.supply-desc { font-size: 0.9rem; color: #5a6a7e; margin-top: 4px; }
.supply-list { list-style: none; margin-top: 12px; }
.supply-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
.supply-list li:last-child { border-bottom: none; }
.supply-list input[type="checkbox"] { width: 18px; height: 18px; accent-color: #1e3a5f; }
.reference { background: #fff; padding: 40px 20px; border-top: 1px solid #e0e6ed; }
.reference-inner { max-width: 1200px; margin: 0 auto; }
.reference h2 { font-size: 1.5rem; color: #1e3a5f; margin-bottom: 20px; }
.reference-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.ref-card { background: #f5f7fa; border-radius: 10px; padding: 20px; }
.ref-card h3 { font-size: 1.1rem; color: #1e3a5f; margin-bottom: 10px; }
.ref-card ul { list-style: disc; padding-left: 20px; }
.ref-card li { margin-bottom: 6px; font-size: 0.9rem; }
.qa { max-width: 800px; margin: 0 auto; padding: 40px 20px; }
.qa h2 { font-size: 1.5rem; color: #1e3a5f; margin-bottom: 20px; }
.qa-item { border-bottom: 1px solid #e0e6ed; padding: 16px 0; }
.qa-item summary { font-weight: 600; cursor: pointer; font-size: 1.05rem; padding: 8px 0; list-style: none; display: flex; align-items: center; gap: 8px; }
.qa-item summary::before { content: "+"; font-size: 1.2rem; font-weight: 700; color: #1e3a5f; width: 24px; text-align: center; }
.qa-item[open] summary::before { content: "−"; }
.qa-item p { padding: 8px 0 8px 32px; font-size: 0.95rem; color: #3a4a5e; }
.site-footer { background: #1a1a2e; color: #a0aec0; padding: 24px 20px; font-size: 0.85rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; align-items: center; }
.footer-nav { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-nav a { color: #c8d6e5; text-decoration: none; }
.footer-nav a:hover { color: #ffb74d; }
.footer-note a { color: #ffb74d; }
@media print {
  .site-header, .site-footer, .builder-controls, .timer-panel, .supply-panel, .reference, .qa, .action-row, .skip-link { display: none !important; }
  .builder-grid { display: block; }
  .checklist-panel { box-shadow: none; border: 1px solid #ccc; }
  body { font-size: 12pt; color: #000; background: #fff; }
}
@media (max-width: 768px) {
  .builder-grid { grid-template-columns: 1fr; }
  .builder-controls { order: -1; }
  .hero h1 { font-size: 1.5rem; }
  .timer-value { font-size: 1.8rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .main-nav ul { gap: 12px; }
  .scenario-buttons { flex-direction: row; flex-wrap: wrap; }
  .scenario-btn { flex: 1 1 130px; flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .header-inner { flex-direction: column; }
  .main-nav ul { justify-content: center; }
  .action-row { flex-direction: column; }
  .btn { width: 100%; text-align: center; }
}



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