* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1d1d1f;
  background: #f5f5f7;
  line-height: 1.4;
}
.top {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: #fff; border-bottom: 1px solid #ddd;
  position: sticky; top: 0;
}
.top { flex-wrap: wrap; justify-content: space-between; padding-top: 4px; padding-bottom: 4px; z-index: 10; }
.top h1 { font-size: 18px; margin: 0; }
.nav { display: flex; flex-wrap: wrap; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
  color: #0a58ca; text-decoration: none; font-weight: 600; white-space: nowrap;
}
.nav a[aria-current="page"] { color: #1d1d1f; box-shadow: inset 0 -3px 0 #0a58ca; }
@media (max-width: 480px) {
  .nav { width: 100%; justify-content: space-between; }
  .nav a { padding: 0 6px; }
}
@media print { .nav { display: none !important; } }
main { max-width: 720px; margin: 0 auto; padding: 16px; }
.label { display: block; font-weight: 600; margin: 8px 0 6px; }
textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 10px;
  border: 1px solid #c7c7cc; border-radius: 10px; background: #fff; resize: vertical;
}
button {
  margin-top: 10px; width: 100%; font: inherit; font-size: 16px; font-weight: 600;
  padding: 12px; border: 0; border-radius: 10px; background: #0a58ca; color: #fff;
}
button:disabled { opacity: .5; }
.status { font-size: 14px; color: #555; margin: 0 0 8px; }
.error { color: #b00020; background: #fdecee; padding: 10px; border-radius: 8px; }
.score { margin-top: 20px; text-align: center; }
.score span { font-size: 64px; font-weight: 700; line-height: 1; }
.score small { display: block; color: #555; font-size: 14px; }
.meter { height: 8px; background: #e5e5ea; border-radius: 4px; overflow: hidden; margin: 12px 0 8px; }
#meter-fill { height: 100%; width: 0; background: #34a853; transition: width .2s; }
h2 { font-size: 16px; margin: 20px 0 6px; }
.count { color: #777; font-weight: 400; }
.hint { font-size: 14px; color: #555; margin: 0 0 8px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { padding: 4px 10px; border-radius: 999px; font-size: 14px; border: 1px solid; }
.chips.matched li { background: #e6f4ea; border-color: #a8dab5; color: #137333; }
.chips.missing li { background: #fef3e0; border-color: #f9c97b; color: #8a4b00; }
.chips .empty { border: 0; background: none; color: #777; padding-left: 0; }
@media (min-width: 720px) { button { width: auto; padding: 10px 24px; } }
