* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #0a1a2e 0%, #1a1a2e 100%);
  color: #e6edf3;
  min-height: 100vh;
}
.container { max-width: 1000px; margin: 0 auto; padding: 2rem; }
header { margin-bottom: 2rem; text-align: center; }
header h1 { font-size: 2.5rem; color: #fff; margin-bottom: 0.5rem; }
.subtitle { color: #8b949e; font-size: 1.125rem; }

main { display: grid; gap: 2rem; }

.controls { background: rgba(255,255,255,0.05); border-radius: 12px; padding: 1.5rem; }
.toggle-section { margin-bottom: 1rem; }
.toggle-section label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }

.field { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
label { font-size: 0.875rem; color: #8b949e; }
textarea {
  width: 100%; padding: 1rem; border-radius: 6px; border: 1px solid rgba(255,255,255,0.1);
  background: #161b22; color: #e6edf3; font-family: monospace; resize: vertical;
}
select {
  padding: 0.75rem; border-radius: 6px; border: 1px solid rgba(255,255,255,0.1);
  background: #161b22; color: #e6edf3;
}

.btn-primary {
  padding: 0.75rem 2rem; border-radius: 6px; border: none; cursor: pointer;
  font-size: 1rem; font-weight: 600; background: #58a6ff; color: #fff;
}
.btn-primary:hover { background: #388bfd; }

.prompt-section { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.1); }

.result-section { margin-top: 2rem; }
.results-container {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 1.5rem;
}
.result-card {
  background: rgba(255,255,255,0.05); border-radius: 8px; padding: 1.25rem;
  border: 1px solid rgba(255,255,255,0.1);
}
.result-card.ai-result { border-color: #58a6ff; }
.result-card h3 { margin-bottom: 1rem; font-size: 1.125rem; }
.result-content { font-size: 0.875rem; line-height: 1.6; color: #b1bac7; }
.result-content table { width: 100%; border-collapse: collapse; margin-top: 0.5rem; }
.result-content th, .result-content td { padding: 0.5rem; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.1); }

.hidden { display: none; }

/* KateelLearningDemos Attribution Marker */
body::after {
  content: "KateelLearningDemos";
  position: fixed;
  bottom: 5px;
  right: 5px;
  font-size: 8px;
  color: rgba(255,255,255,0.1);
  pointer-events: none;
  z-index: 9999;
}