.history-card{margin-top:18px;background:#fff;border:1px solid var(--line);border-radius:20px;padding:24px}
.history-head h2{margin-bottom:16px}
.table-wrap{overflow-x:auto}
table{width:100%;border-collapse:collapse;min-width:620px}
th,td{text-align:left;padding:13px 12px;border-bottom:1px solid var(--line)}
th{font-size:.8rem;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
tbody tr:last-child td{border-bottom:0}
.history-empty{text-align:center;color:var(--muted);padding:26px}
.reset-button{margin-top:18px}
/* The card Parent View shows when the account was cleared on another device. It is deliberately the
   same shape as the other Parent View cards, and it is the only card here that asks a question
   rather than reporting a figure: the two buttons are the two honest answers, and nothing on the page
   takes either of them. Warmer border and a wrapping action row, because two buttons side by side do
   not fit a 320px screen and a decision that cannot be tapped is not offered. */
.cleared-notice{margin-top:18px;background:linear-gradient(145deg,#fff5eb,#fff);border:1px solid #f0cdb5;border-radius:20px;padding:24px}
.cleared-notice .cleared-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:6px}
.cleared-notice .cleared-actions button{flex:1 1 220px}
.mistake small{display:block;color:var(--muted);margin-top:4px}
.question-box>span.word-problem{font-size:clamp(1.2rem,3vw,1.7rem);line-height:1.55;text-align:left;background:#f4f8fd;padding:22px;border-radius:18px}
.reading-box{padding:28px}
.reading-passage{font-family:Georgia,serif;font-size:1.18rem;line-height:1.85;color:#203753;background:#f8fbff;border:1px solid var(--line);border-radius:18px;padding:24px}
.reading-actions{display:flex;gap:12px;align-items:center}
.reading-actions .primary{width:auto;margin:0;min-width:180px}
.transcript-box{margin-top:18px;background:#eef4fb;border-radius:16px;padding:16px}
.transcript-box p{margin:6px 0 0;color:var(--muted)}
.privacy-note{font-size:.82rem;color:var(--muted);margin:14px 0 0}
.typing-progress{height:8px;background:#e8eef6;margin:18px 28px 0;border-radius:99px;overflow:hidden}
.typing-progress span{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--green),#53b8ff);transition:width .3s}
@media(max-width:600px){.reading-box{padding:20px 0 0}.reading-passage{font-size:1.05rem;padding:18px}.reading-actions{align-items:stretch;flex-direction:column}.reading-actions .primary{width:100%}}
.concept-chips{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 22px}.concept-chips span{background:#fff;border:1px solid #f0cdb5;border-radius:999px;padding:6px 11px;font-size:.85rem;font-weight:800;color:#8d4a16}.mission-card h3{margin:18px 0 8px}.stretch-box{margin-top:22px;background:#fff8da;border:1px solid #ecd779;border-radius:15px;padding:16px}.stretch-box p{margin:5px 0 0}
.weekend-message{display:flex;align-items:center;gap:10px;background:#fff8d7;border:1px solid #ecd979;border-radius:15px;padding:15px 18px;margin:8px 0 18px}.weekend-message span{color:#6b5a20}
@media(max-width:600px){.weekend-message{align-items:flex-start;flex-direction:column}}
.sync-status{display:inline-flex;align-items:center;gap:7px;background:#eef4fb;color:var(--navy);border-radius:999px;padding:7px 12px;font-size:.85rem;font-weight:750}.sync-status.good{background:#e5f9f2;color:#168766}.sync-status.bad{background:#fff0eb;color:#a9444d}
.live-progress{background:var(--navy);color:#fff;border-radius:22px;padding:22px;margin-bottom:18px;box-shadow:var(--shadow)}.live-head{display:flex;justify-content:space-between;align-items:center}.live-head h2{margin-bottom:14px}.live-head>span{color:#bed3ef;font-size:.85rem}.live-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.live-grid>div{background:rgba(255,255,255,.1);border-radius:14px;padding:13px}.live-grid span,.live-grid strong{display:block}.live-grid span{color:#bed3ef;font-size:.82rem}.live-grid strong{margin-top:4px}@media(max-width:760px){.live-grid{grid-template-columns:1fr 1fr}}
