/* Daily 5 (/daily) and Mistake Notebook (/mistakes) */
.lx-wrap { max-width: 720px; margin: 0 auto; padding: 28px 16px 96px; }
.lx-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.lx-head h1 { font-size: 1.7rem; margin: 0; color: #0f172a; }
.lx-sub { color: #64748b; font-size: 0.92rem; margin: 4px 0 0; }
.lx-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.lx-pill { background: #f1f5f9; color: #334155; border-radius: 999px; padding: 4px 11px; font-size: 0.82rem; font-weight: 600; }
.lx-pill.fire { background: #fff7ed; color: #c2410c; }
.lx-dots { display: flex; gap: 6px; margin: 0 0 14px; }
.lx-dot { flex: 1; height: 7px; border-radius: 4px; background: #e2e8f0; }
.lx-dot.ok { background: #16a34a; } .lx-dot.bad { background: #dc2626; } .lx-dot.now { background: #4361ee; }
.lx-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 20px; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04); }
.lx-tag { display: inline-block; font-size: 0.75rem; font-weight: 700; color: #4361ee; background: #eef2ff; border-radius: 6px; padding: 2px 8px; margin-bottom: 10px; }
.lx-q { font-size: 1.05rem; line-height: 1.55; color: #0f172a; margin: 0 0 14px; white-space: pre-line; }
.lx-opts { display: grid; gap: 8px; }
.lx-opt { text-align: left; border: 1.5px solid #cbd5e1; background: #fff; border-radius: 10px; padding: 11px 14px; font-size: 0.97rem; color: #1e293b; cursor: pointer; }
.lx-opt:hover:not(:disabled) { border-color: #4361ee; background: #f8faff; }
.lx-opt:disabled { cursor: default; }
.lx-opt.correct { border-color: #16a34a; background: #f0fdf4; }
.lx-opt.wrong { border-color: #dc2626; background: #fef2f2; }
.lx-opt .lx-letter { font-weight: 700; color: #64748b; margin-right: 8px; }
.lx-feedback { margin-top: 14px; border-radius: 10px; padding: 12px 14px; font-size: 0.92rem; line-height: 1.5; background: #f8fafc; color: #334155; }
.lx-feedback strong.ok { color: #15803d; } .lx-feedback strong.bad { color: #b91c1c; }
.lx-crowd { color: #64748b; font-size: 0.84rem; margin-top: 6px; }
.lx-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.lx-btn { display: inline-block; border: none; border-radius: 10px; padding: 11px 18px; font-weight: 700; font-size: 0.95rem; cursor: pointer; text-decoration: none; background: #4361ee; color: #fff; }
.lx-btn.ghost { background: #fff; color: #1e293b; border: 1.5px solid #cbd5e1; }
.lx-btn.dark { background: #0f172a; }
.lx-score { font-size: 2.6rem; font-weight: 800; color: #0f172a; line-height: 1; }
.lx-grid { font-size: 1.7rem; letter-spacing: 3px; margin: 8px 0; }
.lx-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.lx-stat { background: #f8fafc; border-radius: 10px; padding: 10px; text-align: center; }
.lx-stat b { display: block; font-size: 1.3rem; color: #0f172a; }
.lx-stat span { font-size: 0.76rem; color: #64748b; }
.lx-muted { color: #64748b; font-size: 0.88rem; }
.lx-list { margin-top: 26px; }
.lx-list h2 { font-size: 1.15rem; margin: 0 0 10px; }
.lx-item { border: 1px solid #e2e8f0; border-left: 4px solid #f59e0b; border-radius: 10px; margin-bottom: 8px; background: #fff; }
.lx-item summary { cursor: pointer; padding: 10px 12px; font-size: 0.9rem; color: #1e293b; list-style: none; }
.lx-item summary::-webkit-details-marker { display: none; }
.lx-item .lx-body { padding: 0 12px 12px; font-size: 0.9rem; color: #334155; }
.lx-boxes { display: inline-flex; gap: 3px; vertical-align: middle; margin-left: 6px; }
.lx-boxes i { width: 9px; height: 9px; border-radius: 2px; background: #e2e8f0; display: inline-block; }
.lx-boxes i.on { background: #16a34a; }
.lx-empty { text-align: center; padding: 34px 18px; }
.lx-hidden { display: none !important; }
@media (max-width: 520px) { .lx-head h1 { font-size: 1.4rem; } .lx-card { padding: 16px; } .lx-score { font-size: 2.2rem; } }
/* Progress report + badges (/report). API: GET /api/report. */
.rp-wrap { max-width: 820px; }
.rp-signin { background: #eef2ff; border-radius: 10px; padding: 10px 12px; }
.rp-card { margin-bottom: 14px; }
.rp-card h2 { font-size: 1.08rem; margin: 0 0 12px; color: #0f172a; }
.rp-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.rp-kpi { background: #f8fafc; border-radius: 12px; padding: 12px; }
.rp-kpi b { display: block; font-size: 1.55rem; color: #0f172a; line-height: 1.1; }
.rp-kpi span { font-size: 0.78rem; color: #64748b; }
.rp-rank { margin: 14px 0 0; padding: 11px 13px; border-radius: 10px; background: #fefce8; color: #713f12; font-size: 0.93rem; }
.rp-rank strong { color: #a16207; }
.rp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rp-weeks { display: flex; align-items: flex-end; gap: 6px; height: 110px; margin-top: 6px; }
.rp-week { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.rp-week i { display: block; width: 100%; max-width: 30px; background: #4361ee; border-radius: 5px 5px 2px 2px; min-height: 2px; }
.rp-week i.zero { background: #e2e8f0; }
.rp-week small { font-size: 0.68rem; color: #94a3b8; margin-top: 4px; white-space: nowrap; }
.rp-week em { font-style: normal; font-size: 0.68rem; color: #475569; margin-bottom: 3px; }
.rp-sec { display: grid; grid-template-columns: 44px 1fr 92px; align-items: center; gap: 10px; margin: 7px 0; font-size: 0.86rem; }
.rp-sec code { font-weight: 800; color: #334155; font-family: inherit; }
.rp-bar { height: 9px; background: #e2e8f0; border-radius: 5px; overflow: hidden; }
.rp-bar i { display: block; height: 100%; border-radius: 5px; }
.rp-sec span { color: #64748b; text-align: right; font-size: 0.8rem; }
.rp-callouts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.rp-callout { flex: 1 1 220px; border-radius: 10px; padding: 10px 12px; font-size: 0.88rem; }
.rp-callout.good { background: #f0fdf4; color: #14532d; } .rp-callout.work { background: #fff7ed; color: #7c2d12; }
.rp-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.rp-badge { border: 1.5px solid #e2e8f0; border-radius: 14px; padding: 12px; text-align: center; background: #fff; }
.rp-badge .rp-medal { width: 52px; height: 52px; margin: 0 auto 8px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.95rem; color: #fff; background: #cbd5e1; box-shadow: inset 0 -3px 0 rgba(0,0,0,0.12); }
.rp-badge b { display: block; font-size: 0.86rem; color: #0f172a; }
.rp-badge p { margin: 4px 0 0; font-size: 0.74rem; color: #64748b; line-height: 1.35; }
.rp-badge.on { border-color: #fcd34d; background: #fffdf5; }
.rp-badge.off { opacity: 0.88; }
.rp-badge.off b { color: #64748b; }
.rp-prog { height: 5px; background: #e2e8f0; border-radius: 3px; margin-top: 8px; overflow: hidden; }
.rp-prog i { display: block; height: 100%; background: #94a3b8; }
.rp-next { display: grid; gap: 8px; }
.rp-next div { display: flex; justify-content: space-between; gap: 10px; font-size: 0.88rem; background: #f8fafc; border-radius: 10px; padding: 9px 12px; }
.rp-next div > span:last-child { white-space: nowrap; flex-shrink: 0; }
.rp-notes { font-size: 0.76rem; color: #94a3b8; line-height: 1.5; margin-top: 18px; }
@media (max-width: 640px) {
    .rp-kpis { grid-template-columns: repeat(2, 1fr); }
    .rp-two { grid-template-columns: 1fr; }
    .rp-badges { grid-template-columns: repeat(2, 1fr); }
    .rp-sec { grid-template-columns: 36px 1fr 84px; }
}
