:root {
  --bg: #0f172a;
  --panel: #111827;
  --panel-2: #1f2937;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --line: #374151;
  --primary: #2563eb;
  --primary-2: #1d4ed8;
  --secondary: #334155;
  --good: #16a34a;
  --bad: #dc2626;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #020617, #0f172a 30%, #111827);
  color: var(--text);
}
.container {
  width: min(1100px, calc(100% - 32px));
  margin: 24px auto 48px;
}
.hero, .card {
  background: rgba(17, 24, 39, 0.96);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,.2);
}
.hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.hero h1, .card h2 { margin-top: 0; }
.hero p, .muted { color: var(--muted); }
.wrap { flex-wrap: wrap; }
.grid {
  display: grid;
  gap: 16px;
}
.grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}
input, select, textarea, pre.code-block, .code-block {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
}
textarea { resize: vertical; }
pre, .code-block {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.button {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  color: white;
  font-weight: 700;
}
.button.primary { background: var(--primary); }
.button.primary:hover { background: var(--primary-2); }
.button.secondary { background: var(--secondary); }
.button.ghost { background: transparent; border: 1px solid var(--line); }
.hero-actions, .actions, .inline-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.actions { margin-top: 14px; flex-wrap: wrap; }
.quiz-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}
.question {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.question:first-child { border-top: 0; padding-top: 0; }
.choice {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(31, 41, 55, .6);
  margin-bottom: 10px;
}
.choice input { width: auto; margin-top: 3px; }
.choice-text { line-height: 1.45; }
.choice-points {
  white-space: nowrap;
  color: #93c5fd;
  font-weight: 700;
}
.result-good { color: #4ade80; font-weight: 700; }
.result-bad { color: #f87171; font-weight: 700; }
.hidden { display: none !important; }
.email-panel { margin-top: 16px; }
code { color: #93c5fd; }
@media (max-width: 800px) {
  .hero, .quiz-header, .grid.two { display: block; }
  .grid.two { grid-template-columns: 1fr; }
  .hero-actions { margin-top: 12px; }
  .quiz-header button { margin-top: 10px; }
  .inline-actions { flex-wrap: wrap; margin-top: 8px; }
}
