.ucharan-page { max-width: 920px; }
.ucharan-mode-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}
.ucharan-bani { min-height: 0; }
.ucharan-report-list { display: flex; flex-direction: column; gap: 0.65rem; }
.ucharan-report-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  justify-content: space-between;
}
.ucharan-report-row h3 { margin: 0 0 0.2rem; font-size: 1.2rem; }
.ucharan-report-row p { margin: 0; color: var(--gold-200); font-size: 0.92rem; }

body.ucharan-reader .site-footer { display: none; }

.ucharan-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.75rem;
  align-items: center;
}
.ucharan-bar .ctrl { min-width: 8rem; }
.ucharan-bar .ctrl input[type="range"] { min-width: 8rem; }

.ucharan-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  padding: 0.7rem 1rem;
}
.ucharan-meta .chip {
  appearance: none;
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  background: rgba(var(--ink-rgb), 0.35);
  color: var(--gold-200);
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
}
.ucharan-meta .chip.ok { color: #8fd9a8; border-color: rgba(21, 128, 61, 0.45); }
.ucharan-meta .chip.bad { color: #f0a3a3; border-color: rgba(220, 38, 38, 0.4); }
.ucharan-meta .chip.live { color: var(--gold-50); border-color: var(--gold-400); }

.heard-line {
  margin: 0 0 0.85rem;
  color: var(--gold-200);
  font-size: 0.95rem;
}
.heard-line span { color: var(--gold-50); }

.ucharan-picker { margin: 1rem 0 2rem; }
.ucharan-picker .lead { text-align: center; }

.recite-word {
  display: inline;
  border-radius: 0.2em;
  padding: 0 0.05em;
  white-space: pre-wrap;
}
.recite-word.said {
  text-decoration: underline;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.18em;
  text-decoration-color: #15803d;
}
.recite-word.said.mistake,
.recite-word.revealed {
  text-decoration-color: #dc2626;
  background: rgba(220, 38, 38, 0.12);
}
.recite-word.current {
  background: rgba(251, 191, 36, 0.38);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.55);
}
.mode-test .recite-word:not(.said):not(.revealed) {
  color: transparent !important;
  background: rgba(42, 28, 16, 0.08);
  border-bottom: 2px solid rgba(107, 83, 64, 0.35);
  border-radius: 4px;
  user-select: none;
}
.mode-test .recite-word.current:not(.said):not(.revealed) {
  color: transparent !important;
  background: rgba(251, 191, 36, 0.38);
  border-bottom-color: #d97706;
}
.mode-test .recite-word.said,
.mode-test .recite-word.revealed {
  color: inherit !important;
  border-bottom: none;
}

.report-card { width: min(520px, 100%); color: #2a1c10; }
.report-card h2 { margin-bottom: 0.4rem; }
.report-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
  margin: 0.7rem 0 1rem;
}
.report-grid .stat {
  background: #fffaf3;
  border: 1px solid #e0c9a4;
  border-radius: 12px;
  padding: 0.65rem 0.5rem;
  text-align: center;
}
.report-grid .n {
  display: block;
  font-size: 1.45rem;
  font-weight: 700;
  color: #8a6a12;
}
.report-grid .l { font-size: 0.78rem; color: #6b5340; }
.mistake-list {
  margin: 0.4rem 0 0.8rem;
  padding: 0;
  list-style: none;
  max-height: 10rem;
  overflow: auto;
}
.mistake-list li {
  font-family: "Noto Sans Gurmukhi", sans-serif;
  padding: 0.2rem 0;
  color: #5b4632;
}
.report-note { color: #6b5340; font-size: 0.9rem; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(8, 6, 3, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal.hidden { display: none; }
.modal-card {
  width: min(400px, 100%);
  background: #fff8ef;
  color: #2a1c10;
  border-radius: 18px;
  padding: 1.25rem 1.2rem 1.1rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  border: 1px solid #e8d5b5;
}
.modal-card h2 {
  margin: 0 0 0.25rem;
  color: #8a6a12;
  text-align: center;
  font-family: var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.95rem;
}
.modal-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.85rem;
}

@media (max-width: 640px) {
  .ucharan-bar .btn { flex: 1 1 auto; text-align: center; }
}
