/* Cú Bơ — phần riêng môn Toán (math.js) */
/* điền dấu > < = */
.opts.cmp { grid-template-columns: repeat(3, 1fr); }
.opts.cmp .opt { justify-content: center; }
.opts.cmp .sym { font-size: 30px; font-weight: 900; line-height: 1; }
/* hàng phím nhanh dưới ô đang nhập */
.mpad { margin-top: 8px; }
.mpad .mpv { min-height: 0; font-size: 18px; padding: 0 4px 6px; }
.mpad .mpv:empty { display: none; }
.mkeys { display: flex; flex-wrap: wrap; gap: 6px; }
.mkeys button { min-width: 42px; height: 38px; padding: 0 10px; border-radius: 12px; border: 2px solid var(--line); background: #fff; font: inherit; font-weight: 800; font-size: 16px; cursor: pointer; }
.mkeys button:active { transform: translateY(1px); background: #F1ECFF; }
.mkeys .mk-abc { color: var(--purple-d); }
textarea.minp { min-height: 120px; }
/* lời giải mẫu */
.msol { background: #EEF6FF; border-radius: 14px; padding: 8px 12px; }
.msol summary { font-weight: 800; cursor: pointer; }
.msol ol { margin: 8px 0 2px; padding-left: 22px; }
.msol li { margin: 4px 0; }
/* Hiểu đề Toán: đề hỏi gì / đã cho */
.line-vi.m-given { margin-top: 2px; }
.ask-row .inp { padding: 8px 10px; font-size: 16px; }
/* công thức dài (lớp 10-12): cuộn ngang thay vì tràn khung */
body[data-subj="math"] .katex-display { overflow-x: auto; overflow-y: hidden; padding: 4px 0; }
body[data-subj="math"] .txt, body[data-subj="math"] .line-en, body[data-subj="math"] .hint, body[data-subj="math"] .msol { overflow-x: auto; }
body[data-subj="math"] .katex { font-size: 1.08em; }
@media print { .mpad { display: none; } }

/* Ly / Hoa dung chung giao dien cong thuc cua Toan (body[data-fam="math"]) */
body[data-fam="math"] .katex-display { overflow-x: auto; overflow-y: hidden; padding: 4px 0; }
body[data-fam="math"] .txt, body[data-fam="math"] .line-en, body[data-fam="math"] .hint, body[data-fam="math"] .msol { overflow-x: auto; }
body[data-fam="math"] .katex { font-size: 1.08em; }
