*:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --success: #10b981;
  --danger: #ef4444;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}
a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
av { 
  padding: 0;
  margin: 0;
}
header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}
.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
}
.menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}
.menu a {
  color: var(--text-muted);
  font-weight: 500;
}
.menu a:hover {
  color: var(--primary);
}
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
}
.hero {
  text-align: center;
  margin-bottom: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.hero h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.hero p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.preset-selector {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.preset-selector label {
  font-weight: 500;
}
#category-select {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.875rem;
}
.preset-btn, .reset-btn, .save-btn, .export-btn, .print-btn, .share-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
}
.preset-btn {
  background: var(--primary);
  color: white;
}
.preset-btn:hover {
  background: var(--primary-dark);
}
.tester-section {
  margin-bottom: 2rem;
}
.test-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
#current-category {
  font-weight: 600;
  color: var(--primary);
}
.test-steps {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}
.test-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 0.5rem;
  background: white;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.test-item:last-child {
  margin-bottom: 0;
}
.test-item.completed {
  background: #f0fdf4;
  border-color: var(--success);
}
.test-item.pass {
  border-left: 4px solid var(--success);
}
.test-item.fail {
  border-left: 4px solid var(--danger);
}
.test-item input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
}
.test-item label {
  flex: 1;
  cursor: pointer;
}
.test-item textarea {
  width: 100%;
  min-height: 60px;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.875rem;
  resize: vertical;
}
.results-panel {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
}
.results-panel h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
.results-summary {
  min-height: 60px;
  padding: 1rem;
  background: var(--bg-alt);
  border-radius: 6px;
  margin-bottom: 1rem;
}
.pass-count {
  color: var(--success);
  font-weight: 600;
}
.fail-count {
  color: var(--danger);
n  font-weight: 600;
}
.no-results {
  color: var(--text-muted);
}
.save-btn, .export-btn, .print-btn {
  margin-right: 0.5rem;
}
.share-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--primary);
  color: white;
  border-radius: 50px;
  width: 56px;
  height: 56px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 100;
}
.share-btn:hover {
  transform: scale(1.05);
}
.examples-section, .tips-section, .faq-section {
  margin-bottom: 2rem;
}
.scenario-grid, .tip-grid, .faq-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.scenario-card, .tip-item, .faq-item {
  background: white;
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid var(--border);
}
.scenario-card h4, .faq-item h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}
.scenario-card p, .faq-item p, .tip-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.footer-content {
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.footer-content a {
  color: var(--primary);
}
@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    gap: 1rem;
  }
  .menu {
    flex-direction: column;
    gap: 0.75rem;
  }
  .hero {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  .preset-selector {
    flex-direction: column;
    align-items: stretch;
  }
  .test-item {
    flex-direction: column;
    gap: 0.5rem;
  }
  .share-btn {
    bottom: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
  }
}
@media (max-width: 480px) {
  main {
    padding: 1rem;
  }
  .hero {
    padding: 1rem;
  }
  .menu {
    gap: 0.5rem;
  }
}


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