body {
  font-family: Arial, sans-serif;
  background: #f6f7fb;
  color: #222;
  margin: 0;
  padding: 0;
}

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

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.topbar a {
  color: #0b57d0;
  text-decoration: none;
}

.brand {
  font-size: 1.2rem;
  font-weight: 700;
}

.user-chip {
  margin-right: 12px;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}

.through-info {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #dddd88;
  background-color: #ffffdd;
  padding: 12px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}

.button {
  display: inline-block;
  padding: 10px 14px;
  background: #0b57d0;
  color: white !important;
  border-radius: 8px;
  text-decoration: none;
}

.muted {
  color: #666;
}

.overall-grade {
  font-size: 1.25rem;
  margin: 20px 0 24px;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-block {
  border: 1px solid #dde3ee;
  border-radius: 10px;
  overflow: hidden;
  background: #fafbfd;
}

.category-toggle {
  width: 100%;
  text-align: left;
  background: #f0f4fb;
  border: 0;
  padding: 14px 16px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.chevron {
  display: inline-block;
  transition: transform 0.15s ease;
  font-size: 1.2rem;
}

.category-toggle.open .chevron {
  transform: rotate(90deg);
}

.category-details {
  padding: 12px 16px 16px;
  background: white;
}

.hidden {
  display: none;
}

.errors {
  margin-bottom: 10px;
}

.error-item {
  color: #9b1c1c;
  margin-bottom: 6px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  text-align: left;
  border-bottom: 1px solid #e7eaf0;
  padding: 10px 8px;
  vertical-align: top;
}

thead th {
  background: #fafbfd;
}

.subparts {
  margin-top: 6px;
  color: #555;
  font-size: 0.92rem;
}

.subpart {
  margin-top: 2px;
}

.dropped-row {
  color: #8a8a8a;
  font-style: italic;
}

.dropped-row .subparts,
.dropped-row .subpart {
  color: inherit;
  font-style: inherit;
}