body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0f172a;
  color: #e2e8f0;
}

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero h1 {
  margin: 0 0 8px;
}

.hero p {
  margin: 0;
}

.hero-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.panel {
  background: #111827;
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
}

.exam-panel {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15);
}

.exam-head,
.meta,
.wrong-note-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.question-meta {
  margin: 0 0 6px;
  font-weight: 600;
}

.sheet-label,
label {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
  color: #cbd5e1;
}

.question-sheet,
.answer-sheet {
  margin-top: 18px;
}

select,
input,
textarea,
button {
  font: inherit;
}

select,
input,
textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #475569;
  background: #020617;
  color: #e2e8f0;
}

textarea {
  min-height: 220px;
  margin: 0 0 16px;
}

button {
  cursor: pointer;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
}

.secondary {
  background: #334155;
}

.prompt,
.result-panel pre,
.search-item p {
  white-space: pre-wrap;
  word-break: break-word;
  background: #020617;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #334155;
}

.prompt {
  min-height: 180px;
}

.status-text {
  color: #cbd5e1;
  font-size: 14px;
}

.error-text {
  color: #fca5a5;
}

.inline-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.filters {
  display: flex;
  gap: 16px;
  align-items: end;
  flex-wrap: wrap;
}

.search-field {
  min-width: 260px;
  flex: 1;
}

.search-item,
.dashboard-item,
.wrong-note,
.bookmark-item,
.recent-item,
.progress-card {
  padding: 14px 0;
  border-bottom: 1px solid #1e293b;
}

.search-item:last-child,
.dashboard-item:last-child,
.wrong-note:last-child,
.bookmark-item:last-child,
.recent-item:last-child {
  border-bottom: none;
}

.search-item p,
.dashboard-item p {
  margin: 8px 0 0;
}

.helper-panel summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 14px;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: #1d4ed8;
  color: white;
  font-size: 12px;
}

.badge-success {
  background: #065f46;
}

.badge-warn {
  background: #92400e;
}

.badge-neutral {
  background: #334155;
}

.progress-filters {
  margin-bottom: 12px;
}

.filter-active {
  background: #1d4ed8;
}

.exam-group {
  margin-bottom: 12px;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 12px;
  background: #0b1222;
}

.exam-group summary {
  cursor: pointer;
  font-weight: 600;
}

.group-count {
  color: #93c5fd;
  font-size: 13px;
}

.group-list {
  margin-top: 10px;
}

.progress-card.progress-correct {
  border-left: 4px solid #10b981;
  padding-left: 10px;
}

.progress-card.progress-wrong {
  border-left: 4px solid #f59e0b;
  padding-left: 10px;
}

.progress-card.progress-unseen {
  border-left: 4px solid #475569;
  padding-left: 10px;
}

a {
  color: #93c5fd;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.compare-card {
  background: #0b1222;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 12px;
}

.compare-card p {
  margin-top: 0;
}

@media (max-width: 720px) {
  .compare-grid {
    grid-template-columns: 1fr;
  }
}
