.answers-scores {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  color: #111;
  font-family: Arial, sans-serif;
}

.answers-scores h3 {
  margin: 0 0 24px 30px;
  font-size: 18px;
  font-weight: 700;
}

.answers-scores mark {
  background: #ffeb00;
  padding: 0 3px;
}

.scores-card {
  border: 1px solid #e3e8ee;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(18, 38, 63, 0.08);
  margin-bottom: 28px;
  overflow: hidden;
}

.scores-card:last-child {
  margin-bottom: 0;
}

.word-card {
  max-width: 100%;
}

.scores-card .card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #007bff;
  color: #fff;
  border-bottom: 0;
  padding: 12px 18px;
}

.scores-card .card-header .card-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
}

.scores-card .card-body {
  padding: 0;
}

.scores-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.scores-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  background: #fff;
}

.scores-table th,
.scores-table td {
  border: 1px solid #dde3ea;
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  line-height: 1.4;
}

.scores-table th {
  font-weight: 700;
}

.scores-table thead th {
  background: #eef2f7;
  color: #1f2d3d;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-size: 14px;
  vertical-align: middle;
}

.scores-table thead th + th {
  text-align: center;
}

.scores-table tbody tr:nth-child(even) {
  background: #fafbfc;
}

.scores-table tbody tr:hover {
  background: #f2f7ff;
}

.scores-table tbody td:first-child,
.scores-table tbody th:first-child {
  background: #f4f6f9;
  font-weight: 700;
  width: 25%;
  white-space: nowrap;
}

.scores-table tbody tr:hover td:first-child,
.scores-table tbody tr:hover th:first-child {
  background: #e9eff7;
}

.scores-table .row-label {
  vertical-align: middle;
}

.word-table-wrap .scores-table th:first-child,
.word-table-wrap .scores-table td:first-child {
  width: 34%;
}

.number-table {
  min-width: 760px;
  table-layout: fixed;
}

.number-table th:first-child,
.number-table td:first-child {
  width: 8%;
}

.number-table th:not(:first-child),
.number-table td:not(:first-child) {
  width: 26%;
}

.number-table thead th:not(:first-child) {
  font-size: 15px;
  text-transform: none;
  letter-spacing: 0;
}

.number-table .option-cell {
  vertical-align: middle;
  text-align: center;
}

.number-table label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.number-table label:hover {
  border-color: #007bff;
  background: #f2f7ff;
}

.number-table label.is-selected {
  background: #007bff;
  border-color: #007bff;
  color: #fff;
}

.number-table input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #007bff;
  cursor: pointer;
}

.number-table label.is-selected input[type="radio"] {
  accent-color: #fff;
}

.number-table tbody .is-active {
  background: #e8f2ff;
  box-shadow: inset 0 0 0 1px rgba(0, 123, 255, 0.35);
}

.number-table tbody tr:hover .is-active {
  background: #dbeaff;
}

@media (max-width: 576px) {
  .answers-scores h3 {
    margin-left: 0;
  }

  .word-card {
    max-width: 100%;
  }
}

.calculation-card .card-body {
  padding: 18px;
}

.calculation-group + .calculation-group {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #eef1f5;
}

.calculation-group .group-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #1f2d3d;
}

.calculation-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.calculation-table td {
  border: 1px solid #dde3ea;
  padding: 10px 12px;
  vertical-align: top;
  font-size: 15px;
  line-height: 1.4;
}

.calculation-table .serial-no {
  width: 56px;
  text-align: center;
  font-weight: 700;
  color: #1f2d3d;
  background: #f4f6f9;
}

@media (max-width: 768px) {
  .calculation-card .card-body {
    padding: 12px;
  }

  .calculation-table td {
    padding: 8px 10px;
    font-size: 14px;
  }

  .calculation-table .serial-no {
    width: 40px;
  }
}

@media print {
  body {
    background: #fff;
  }

  .calculation-table td {
    border: 1px solid #000 !important;
    color: #000 !important;
  }
}
