/* ManabiDock Focus Mode + Learning Stats (2026-11-18) */
body.md-home .md-study-stats{margin:0 0 24px;padding:24px;background:#fff;border:1px solid #e1e6ea;border-radius:18px;box-shadow:0 5px 22px rgba(21,42,65,.045)}
body.md-home .md-stats-head{display:flex;gap:12px;align-items:baseline;justify-content:space-between;flex-wrap:wrap;margin-bottom:14px}
body.md-home .md-stats-head h2{margin:0;font-size:19px;color:#20354a}
body.md-home .md-stats-caption{color:#627386;font-size:12px}
body.md-home .md-stats-overall{display:flex;gap:16px;align-items:center;margin-bottom:17px;padding:17px 19px;border-radius:14px;background:#f5f8fa;color:#476075;font-size:13px}
body.md-home .md-stats-big{font-size:36px;line-height:1;font-weight:800;letter-spacing:-.03em;color:#176d5f;font-variant-numeric:tabular-nums}
body.md-home .md-stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px 20px}
body.md-home .md-stats-row{display:grid;grid-template-columns:minmax(90px,135px) minmax(40px,1fr) 40px;gap:8px;align-items:center;min-width:0}
body.md-home .md-stats-category{font-size:12px;color:#30475b;overflow-wrap:anywhere}
body.md-home .md-stats-track{background:#e9eff2;height:8px;border-radius:40px;overflow:hidden}
body.md-home .md-stats-bar{height:100%;border-radius:40px;background:#38917e;transition:width .25s ease}
body.md-home .md-stats-value{text-align:right;font-size:12px;font-weight:700;color:#20354a;font-variant-numeric:tabular-nums}
body.md-home .md-stats-foot{color:#627386;font-size:11px;line-height:1.65;margin:17px 0 0}
body.md-quiz main.wrap{padding-top:14px}
body.md-quiz #quiz-panel{margin:0 auto 28px;max-width:900px;scroll-margin-top:12px}
body.md-quiz #quiz-panel .panel-head{margin-bottom:14px}
body.md-quiz #quiz-panel .panel-head h2{font-size:20px}
body.md-quiz #quiz-panel .filters{margin-bottom:12px}
body.md-quiz #quiz-panel #quiz-progress{margin-bottom:12px}
body.md-quiz #quiz-panel .question-card{margin-top:0}
body.md-quiz .question{line-height:1.75}
/* Periodic checkpoints: keep progress screen in the same quiz panel, never a payment overlay. */
body.md-home #md-checkpoint-card[hidden]{display:none!important}
body.md-checkpoint #quiz-panel .filters,body.md-checkpoint #quiz-panel #quiz-progress,body.md-checkpoint #quiz-panel .question-card,body.md-checkpoint #quiz-panel #next-btn{display:none!important}
body.md-home #md-checkpoint-card{text-align:center;padding:28px 16px 12px;max-width:550px;margin:0 auto}
body.md-home .md-checkpoint-eyebrow{font-size:12px;letter-spacing:.14em;color:#8d6638;font-weight:800;margin:0 0 14px}
body.md-home .md-checkpoint-art{height:114px;width:114px;display:grid;place-items:center;margin:0 auto 10px;background:#f5f7f7;border-radius:50%}
body.md-home .md-checkpoint-art svg{display:block;height:88px;width:88px}
body.md-home .md-checkpoint-title{margin:12px 0;font-size:22px;color:#20354a}
body.md-home .md-checkpoint-score{font-size:54px;line-height:1.25;letter-spacing:-.035em;color:#176d5f;font-variant-numeric:tabular-nums}
body.md-home .md-checkpoint-meta{margin:6px 0 12px;color:#30475b;font-weight:700}
body.md-home .md-checkpoint-message{color:#627386;font-size:14px;line-height:1.9;margin:0 auto 24px;max-width:430px}
body.md-home .md-checkpoint-continue{min-width:210px}
@media(max-width:660px){
 body.md-home .md-study-stats{padding:18px 16px;margin-bottom:18px}
 body.md-home .md-stats-grid{grid-template-columns:1fr;gap:10px}
 body.md-home .md-stats-overall{padding:14px;flex-wrap:wrap}
 body.md-home .md-stats-big{font-size:32px}
 body.md-quiz .site-header .brand{font-size:14px}
 body.md-quiz .site-header .header-inner{gap:5px}
 body.md-quiz #quiz-panel{padding:15px 14px}
 body.md-home .md-checkpoint-title{font-size:20px}
}
@media(prefers-reduced-motion:reduce){body.md-home .md-stats-bar{transition:none}}

body.md-home .md-stats-tools { display:flex; flex-wrap:wrap; gap:8px 14px; align-items:center; margin-top:16px; }
body.md-home .md-stats-reset { padding:8px 14px; border:1px solid #c3cdd6; border-radius:9px; background:white; color:var(--ink); font-size:0.82rem; }
body.md-home .md-stats-reset:disabled { opacity:0.46; cursor:default; }
body.md-home .md-stats-reset-status { margin:0; font-size:0.82rem; color:#176d5f; }
