/* MathSnap styles v1.2.1 */
.mathsnap-wrap { border:1px solid #e5e7eb; padding:16px; border-radius:14px; background:#fff; box-shadow: 0 6px 24px rgba(0,0,0,.06); }
.mathsnap-drop { border:2px dashed #94a3b8; border-radius:12px; padding:18px; text-align:center; color:#334155; background:#f8fafc; }
.mathsnap-drop.is-drag { background:#eef2ff; border-color:#6366f1; }
.mathsnap-drop input[type=file]{ display:block; margin:8px auto; }
.mathsnap-btn { background:#111827; color:#fff; border:0; padding:10px 16px; border-radius:10px; cursor:pointer; }
.mathsnap-link { background:transparent; color:#111827; border:0; cursor:pointer; text-decoration:underline; }
.mathsnap-or { font-size:12px; color:#64748b; margin:6px 0; }
.mathsnap-preview img { max-width:100%; margin:12px 0; border-radius:10px; }
.mathsnap-progress { margin:10px 0; height:8px; background:#e5e7eb; border-radius:8px; overflow:hidden; }
.mathsnap-progress span { display:block; height:100%; width:0%; background:#6366f1; transition:width .3s ease; }
.mathsnap-out { margin-top:10px; }

.ms-card { border:1px solid #e2e8f0; border-radius:12px; padding:14px; background:#fff; }
.ms-head { font-weight:700; margin-bottom:8px; }
.ms-badge { display:inline-block; font-size:12px; background:#e2e8f0; padding:2px 8px; border-radius:999px; margin-left:6px; }
.ms-badge.live { background:#dcfce7; }
.ms-sec { margin:10px 0; }
.ms-label { font-size:12px; color:#64748b; margin-bottom:4px; }
.ms-body { font-size:16px; }
.ms-meta { display:flex; gap:14px; font-size:12px; color:#334155; margin-top:8px; flex-wrap:wrap; }
.ms-error { color:#b91c1c; font-weight:600; background:#fee2e2; border:1px solid #fecaca; padding:10px; border-radius:10px; }

.ms-ol { margin-left:18px; padding-left:4px; }
.ms-ol li { margin:6px 0; line-height:1.5; }
.ms-list-fixes, .ms-list-amb { margin-left:18px; }

.mathsnap-fab { position:fixed; right:18px; bottom:18px; width:52px; height:52px; border-radius:50%; background:#111827; color:#fff; display:flex; align-items:center; justify-content:center; font-size:28px; cursor:pointer; box-shadow:0 6px 24px rgba(0,0,0,.2); z-index:9998; }
.mathsnap-modal { position:fixed; inset:0; background:rgba(0,0,0,.5); display:flex; align-items:center; justify-content:center; z-index:9999; padding:14px; }
.mathsnap-modal-inner { max-width:740px; width:100%; background:#fff; border-radius:16px; padding:12px; position:relative; }
.mathsnap-close { position:absolute; right:10px; top:10px; border:0; background:#f1f5f9; width:32px; height:32px; border-radius:8px; font-size:18px; cursor:pointer; }
