/* Maths Practice — school-only, lightweight.
   System fonts only, no external fonts, no images.
   Keeps the page small for slow hostel internet and shared phones/tablets.
   Colours: teal = assigned work, coral = free practice, so the two are never mixed up. */
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; background: #f4f7f7; color: #16211f; line-height: 1.4; }
header { background: #0f766e; color: #fff; padding: 12px 14px; }
header h1 { margin: 0; font-size: 22px; }
header p { margin: 2px 0 0; font-size: 14px; opacity: .92; }
.wrap { max-width: 860px; margin: 0 auto; padding: 14px; }
.viewbtns { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
button { font-size: 18px; padding: 12px 16px; border-radius: 12px; border: 2px solid #0f766e; background: #fff; color: #0f766e; cursor: pointer; }
button.primary { background: #0f766e; color: #fff; }
button.big { font-size: 24px; padding: 18px 20px; width: 100%; }
button:disabled { opacity: .45; cursor: default; }
.card { background: #fff; border: 1px solid #cbd5d1; border-radius: 14px; padding: 14px; margin: 12px 0; }
.card h2, .card h3 { margin: 0 0 8px; }
.freepanel { border: 3px solid #f97316; background: #fff7ed; }
.muted { color: #55636a; font-size: 14px; }
.bigq { font-size: 42px; font-weight: 800; text-align: center; margin: 10px 0; word-wrap: break-word; }
.answerbox { font-size: 36px; text-align: center; width: 100%; padding: 10px; border: 2px solid #0f766e; border-radius: 12px; }
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.pad button { font-size: 26px; padding: 14px 0; }
.dots { display: flex; gap: 6px; justify-content: center; margin: 10px 0; flex-wrap: wrap; }
.dot { width: 22px; height: 22px; border-radius: 50%; background: #d1d5db; border: 1px solid #9ca3af; }
.dot.cur { background: #facc15; }
.dot.right { background: #22c55e; }
.dot.wrong { background: #ef4444; }
.dot.timeout { background: #f97316; }
.bar { height: 14px; background: #e5e7eb; border-radius: 8px; overflow: hidden; }
.bar > div { height: 100%; background: #0f766e; }
.timer { font-size: 20px; font-weight: 700; text-align: center; margin: 6px 0; }
.feedback { font-size: 22px; font-weight: 700; text-align: center; margin: 12px 0; min-height: 32px; }
.star { color: #f59e0b; font-size: 28px; letter-spacing: 2px; }
.badge { display: inline-block; background: #fef3c7; border: 1px solid #f59e0b; border-radius: 20px; padding: 4px 10px; margin: 3px; font-size: 15px; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { border-bottom: 1px solid #e5e7eb; padding: 8px 6px; text-align: left; }
select, input[type="text"], input[type="number"], input[type="date"] { font-size: 18px; padding: 10px; border-radius: 10px; border: 1px solid #9ca3af; width: 100%; }
label { font-size: 16px; font-weight: 600; display: block; margin: 8px 0 4px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid #0f766e; border-radius: 20px; padding: 6px 10px; background: #fff; cursor: pointer; font-size: 16px; }
.chip.sel { background: #0f766e; color: #fff; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.hidden { display: none !important; }
.notice { background: #fef9c3; border: 1px solid #eab308; border-radius: 10px; padding: 10px; font-size: 15px; }
@media (max-width: 520px) { .bigq { font-size: 34px; } button.big { font-size: 22px; } }
