/* ============================================================
   Number Line Explorer — tool-specific styles
   ============================================================ */

.field-label { display: block; font-size: 0.8rem; font-weight: 800; color: var(--muted); letter-spacing: 0.02em; }

.nl-controls { display: grid; grid-template-columns: auto auto; justify-content: space-between; gap: 1rem 2rem; margin: 1rem 0; }
.chip-row { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.nl-chip {
  font: inherit; font-weight: 700; font-size: 0.86rem; cursor: pointer;
  border: 1.5px solid var(--line); background: #fff; color: var(--muted);
  border-radius: 999px; padding: 0.42rem 0.85rem; transition: all 0.15s ease;
}
.nl-chip:hover { border-color: var(--brand); color: var(--brand-strong); }
.nl-chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }

.nl-stage { margin-bottom: 1rem; }
.nl-status-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.nl-instruction { font-weight: 700; margin: 0; }
.nl-readout { font-size: 0.95rem; color: var(--muted); }
.nl-readout strong { color: var(--brand-strong); font-variant-numeric: tabular-nums; }

.number-line-svg {
  display: block; width: 100%; height: auto; min-height: 150px;
  background: repeating-linear-gradient(-45deg, #fdfcf6, #fdfcf6 18px, #f6f4e8 18px, #f6f4e8 36px);
  border: 1px solid var(--line); border-radius: var(--r-md); cursor: crosshair; touch-action: manipulation;
}
.number-line-svg:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

.progress-pill { background: var(--brand-soft); color: var(--brand-strong); font-weight: 800; font-size: 0.83rem; border-radius: 999px; padding: 0.3rem 0.85rem; font-variant-numeric: tabular-nums; display: inline-block; }
.score-pill { background: #fef3c7; color: #92400e; }

.nl-drill-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 0.8rem; border-top: 1px dashed var(--line); padding-top: 0.8rem; }
.nl-drill-prompt { font-size: 1.25rem; font-weight: 850; margin: 0; }
.nl-drill-stats { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }

.feedback { margin-top: 0.7rem; }
.nl-keyboard-hint { font-size: 0.78rem; color: var(--muted); margin: 0.8rem 0 0; }

@media (max-width: 860px) { .nl-controls { grid-template-columns: 1fr; } }
