/*! © 2026 Best Latest Apps. All rights reserved. https://bestlatestapps.com/ */
.ai-page--math{max-width:40rem}.ai-page--math .ms-hero{margin:0 0 .75rem}.ai-page--math .ms-tabs{display:flex;gap:.25rem;margin:0 0 .75rem}.ai-page--math .ms-tab{font:inherit;font-weight:600;padding:.55rem 1rem;min-height:44px;border:1px solid var(--ai-line);background:var(--ai-bg);color:inherit;border-radius:8px;cursor:pointer}.ai-page--math .ms-tab[aria-selected=true]{background:var(--ai-accent);color:#fff;border-color:var(--ai-accent)}.ai-page--math .ms-tab:focus-visible{outline:2px solid var(--ai-accent);outline-offset:2px}.ai-page--math .ms-panel[hidden]{display:none}.ai-page--math .ms-input{width:100%;box-sizing:border-box;min-height:6.5rem;resize:vertical;font:1rem/1.45 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;padding:.75rem;border:1px solid var(--ai-line);border-radius:8px;background:var(--ai-bg);color:inherit}.ai-page--math .ms-keys{display:flex;flex-wrap:wrap;gap:.35rem;margin:.6rem 0}.ai-page--math .ms-key{font:inherit;min-width:44px;min-height:44px;padding:.3rem .6rem;border:1px solid var(--ai-line);border-radius:8px;background:var(--ai-soft);color:inherit;cursor:pointer}.ai-page--math .ms-key:focus-visible,.ai-page--math .ms-examples button:focus-visible,.ai-page--math .ai-btn:focus-visible{outline:2px solid var(--ai-accent);outline-offset:2px}.ai-page--math .ms-examples{display:flex;flex-wrap:wrap;gap:.4rem;margin:.4rem 0 .75rem;padding:0;list-style:none}.ai-page--math .ms-examples button{font:inherit;font-size:.9rem;line-height:1.3;padding:.45rem .7rem;min-height:44px;border:1px solid var(--ai-line);border-radius:999px;background:var(--ai-bg);color:var(--ai-accent);cursor:pointer;text-align:start;max-width:100%}.ai-page--math .ms-photo{display:flex;flex-direction:column;gap:.5rem}.ai-page--math .ms-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;min-height:8rem;border:2px dashed var(--ai-line);border-radius:12px;padding:1rem;text-align:center}.ai-page--math .ms-drop.ms-drag{border-color:var(--ai-accent);background:var(--ai-soft)}.ai-page--math .ms-actions{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;margin:.75rem 0}.ai-page--math .ms-result{margin:1rem 0}.ai-page--math .ms-answer{font-size:1.25rem;line-height:1.4;margin:0 0 .75rem;overflow-wrap:anywhere}.ai-page--math .ms-checked{display:inline-block;font-size:.85rem;font-weight:600;color:#047857;background:#d1fae5;border-radius:999px;padding:.15rem .6rem;margin:0 .4rem .5rem 0}.ai-page--math .ms-unchecked{color:var(--ai-warn);background:#fef3c7}@media(prefers-color-scheme:dark){.ai-page--math .ms-checked{color:#6ee7b7;background:#064e3b}.ai-page--math .ms-unchecked{color:#fbbf24;background:#422006}}.ai-page--math .ms-steps{margin:.5rem 0 1rem;padding:0}.ai-page--math .ms-steps>details{border-top:1px solid var(--ai-line);padding:.5rem 0}.ai-page--math .ms-steps summary{cursor:pointer;font-weight:600}.ai-page--math .ms-steps ol{margin:.4rem 0 0;padding-left:1.3rem}.ai-page--math .ms-steps li{margin:.35rem 0;overflow-wrap:anywhere}.ai-page--math .ms-reason{display:block;color:var(--ai-muted);font-size:.9rem}.ai-page--math .ms-tools{display:flex;flex-wrap:wrap;gap:.5rem}.ai-page--math .ms-explain{margin-top:1rem}.ai-page--math .ms-explain .ms-body{white-space:pre-wrap;background:var(--ai-soft);padding:.75rem;border-radius:8px;overflow-wrap:anywhere}.ai-page--math .ms-history{margin-top:1.25rem}.ai-page--math .ms-history ul{list-style:none;margin:.4rem 0;padding:0}.ai-page--math .ms-history li{border-top:1px solid var(--ai-line);padding:.4rem 0}.ai-page--math .ms-history button{font:inherit;color:var(--ai-accent);background:none;border:0;cursor:pointer;text-align:start;padding:.25rem 0;min-height:44px}.ai-page--math .ms-preview{max-width:100%;height:auto;border-radius:8px;margin:.5rem 0}.ai-page--math .katex-display{overflow-x:auto;overflow-y:hidden;max-width:100%}@media(max-width:390px){.ai-page--math{padding-left:12px;padding-right:12px;padding-bottom:calc(4.75rem + env(safe-area-inset-bottom,0px))}.ai-page--math h1{font-size:1.45rem}.ai-page--math .ms-input{min-height:4.25rem}.ai-page--math .ai-card>.ms-actions{position:fixed;left:0;right:0;bottom:0;z-index:5;margin:0;padding:.6rem 12px calc(.6rem + env(safe-area-inset-bottom,0px));background:var(--ai-bg);border-top:1px solid var(--ai-line)}}
