:root {
  --bg: #12111a;
  --panel: #1e1c2b;
  --accent: #8b5cf6;
  --accent-2: #22d3ee;
  --text: #e8e6f0;
  --muted: #9c98b3;
  --good: #34d399;
  --bad: #f87171;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: var(--panel);
  border-bottom: 1px solid #2c2940;
}

header h1 { margin: 0; font-size: 1.4rem; }

nav button {
  margin-left: 0.5rem;
}

main {
  max-width: 720px;
  margin: 1.5rem auto;
  padding: 0 1rem;
}

.view { animation: fade 0.2s ease; }
.hidden { display: none !important; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

form { display: flex; flex-direction: column; gap: 0.9rem; }

label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.9rem;
  color: var(--muted);
}

input, select {
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  border: 1px solid #38344f;
  background: #17162200;
  background: #171622;
  color: var(--text);
  font-size: 1rem;
}

button {
  padding: 0.55rem 1rem;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

button:hover { background: #7c48ec; }
button.secondary { background: #38344f; }

.status { min-height: 1.4rem; color: var(--muted); }
.status.error { color: var(--bad); }
.status.ok { color: var(--good); }

.question {
  background: var(--panel);
  border: 1px solid #2c2940;
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
}

.question h3 { margin: 0 0 0.6rem; }

.clip-controls {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.clip-controls button { background: var(--accent-2); color: #062b32; }
.clip-controls .clip-note { color: var(--muted); font-size: 0.85rem; }

.options { display: flex; flex-direction: column; gap: 0.35rem; }
.options .field-label { color: var(--muted); font-size: 0.85rem; margin-top: 0.4rem; }
.option { display: flex; align-items: center; gap: 0.5rem; color: var(--text); }
.option input { width: auto; }

.score { font-size: 1.6rem; font-weight: 700; }

.result-row {
  background: var(--panel);
  border: 1px solid #2c2940;
  border-left: 4px solid var(--muted);
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  margin-bottom: 0.6rem;
}
.result-row.correct { border-left-color: var(--good); }
.result-row.partial { border-left-color: var(--accent-2); }
.result-row.wrong { border-left-color: var(--bad); }
.result-row .mark.good { color: var(--good); }
.result-row .mark.bad { color: var(--bad); }
