* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  background: #f4f5f7;
  color: #1a1a1a;
}
header {
  background: #1a1a2e;
  color: white;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header a { color: white; text-decoration: none; font-size: 14px; opacity: 0.8; }
main { max-width: 900px; margin: 0 auto; padding: 16px; }
.card {
  background: white;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
select, input[type=text] {
  font-size: 16px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
  margin-bottom: 8px;
}
button {
  font-size: 15px;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  background: #2563eb;
  color: white;
  cursor: pointer;
}
button.secondary { background: #6b7280; }
button:disabled { background: #9ca3af; cursor: not-allowed; }
canvas {
  border: 2px solid #d1d5db;
  border-radius: 8px;
  width: 100%;
  touch-action: none;
  background: white;
  display: block;
}
.toolbar { display: flex; gap: 8px; margin: 8px 0; }
.part { margin: 10px 0; padding: 10px; background: #fafafa; border-radius: 6px; }
.marking-point {
  padding: 8px 10px;
  margin: 6px 0;
  border-radius: 6px;
  border-left: 4px solid #ccc;
}
.marking-point.awarded { border-left-color: #16a34a; background: #f0fdf4; }
.marking-point.not-awarded { border-left-color: #dc2626; background: #fef2f2; }
.marking-point .mp-header { font-weight: 600; display: flex; justify-content: space-between; }
.score-badge {
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  background: #eef2ff;
  color: #3730a3;
  padding: 4px 12px;
  border-radius: 20px;
}
.needs-review {
  background: #fffbeb;
  border: 1px solid #f59e0b;
  color: #92400e;
  padding: 8px 12px;
  border-radius: 6px;
  margin: 8px 0;
  font-size: 14px;
}
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid #eee; font-size: 14px; }
tr:hover { background: #f9fafb; cursor: pointer; }
.loading { color: #6b7280; font-style: italic; }
.mock-banner {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 12px;
}
