body {
  font-family: system-ui, sans-serif;
  background: #f4f5f7;
  margin: 0;
  padding: 40px 20px;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  padding: 32px;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

h1 {
  font-size: 22px;
  margin: 0;
}

.question-block {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e7eb;
}

.question-title {
  font-weight: 600;
  margin-bottom: 10px;
}

.option-label {
  display: block;
  margin: 6px 0;
  cursor: pointer;
}

textarea {
  width: 100%;
  min-height: 80px;
  padding: 8px;
  font-family: inherit;
  font-size: 14px;
  box-sizing: border-box;
}

input[type="file"] {
  margin-top: 8px;
  display: block;
}

#submit-btn {
  background: #2563eb;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

#submit-btn:disabled {
  background: #93c5fd;
  cursor: not-allowed;
}

.hidden {
  display: none;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 4px solid #dbeafe;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 24px auto 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loader-wrap {
  text-align: center;
  padding: 12px 0;
}

.loader-wrap span {
  font-size: 13px;
  color: #6b7280;
}


.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
}

.meta span {
  background: #f3f4f6;
  color: #374151;
  padding: 4px 10px;
  border-radius: 12px;
  white-space: nowrap;
}

#results {
  margin-top: 20px;
}

.result-status {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}

.result-status.correct {
  background: #ecfdf5;
  border: 1px solid #10b981;
  color: #047857;
}

.result-status.wrong {
  background: #fef2f2;
  border: 1px solid #ef4444;
  color: #b91c1c;
}

.result-status .correct-detail {
  display: block;
  margin-top: 4px;
  font-weight: 400;
  color: #374151;
}