main.ga2#top .latex-tool{max-width:1240px}.latex-tool-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:28px;padding:24px;display:grid}.latex-edit-column,.latex-preview-column{min-width:0}.latex-preview-sticky{position:sticky;top:80px}.latex-preview-column{align-self:stretch}.latex-label-row{justify-content:space-between;align-items:center;margin-bottom:8px;display:flex}.latex-tool label,.latex-field legend{color:#17243c;font-size:14px;font-weight:600}.latex-editor textarea{resize:vertical;color:#17243c;border:1px solid #cdd6e4;border-radius:8px;width:100%;min-height:180px;padding:12px;font:16px/1.55 ui-monospace,monospace;display:block}.latex-error{color:#a02020;overflow-wrap:anywhere;font-size:14px;margin:8px 0 0!important}.latex-symbols{margin-top:24px}.latex-symbols label{margin-bottom:6px;display:block}.latex-symbols input,.latex-field input:not([type=color]){border:1px solid #cdd6e4;border-radius:8px;width:100%;min-width:0;min-height:40px;padding:8px 10px;font-size:16px}.latex-symbols input:focus-visible,.latex-editor textarea:focus-visible{outline-offset:2px;outline:2px solid #315dff}.latex-tabs,.latex-segments{background:#edf0f5;border-radius:8px;gap:3px;padding:4px;display:flex}.latex-tabs{margin-top:14px;overflow-x:auto}.latex-tabs button,.latex-segments button,.latex-segments span{white-space:nowrap;color:#34415a;background:0 0;border:0;border-radius:6px;flex:none;padding:7px 10px;font-size:14px}.latex-tabs .active,.latex-segments .active{color:#17243c;background:#fff;box-shadow:0 1px 3px #0002}.latex-symbol-grid{grid-template-columns:repeat(auto-fill,minmax(48px,1fr));gap:4px;margin-top:12px;display:grid}.latex-symbol-grid button{background:#fff;border:1px solid #e3e8f0;border-radius:7px;place-items:center;min-width:0;height:48px;display:grid}.latex-symbol-grid button:hover{background:#eef3ff}.latex-symbol-grid svg{width:30px;height:30px}.latex-toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px;display:flex}.latex-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.latex-copy-menu{position:relative}.latex-menu{z-index:5;background:#fff;border:1px solid #cdd6e4;border-radius:8px;min-width:150px;padding:4px;position:absolute;top:100%;right:0;box-shadow:0 8px 24px #0002}.latex-menu button{text-align:left;background:#fff;border:0;border-radius:5px;width:100%;padding:8px;display:block}.latex-menu button:hover{background:#edf0f5}.latex-frame{border:1px solid #dfe5ef;border-radius:9px;justify-content:center;align-items:center;width:100%;height:210px;min-height:210px;padding:16px;display:flex}.latex-frame.fit{overflow:hidden}.latex-frame.actual{justify-content:safe center;overflow:auto hidden}.latex-frame img{object-fit:contain;flex:none;display:block}.latex-frame.fit img{max-width:100%;max-height:100%}.latex-frame.actual img{max-width:none;max-height:none}.latex-frame.stale img{opacity:.45}.latex-options{gap:12px;margin-top:18px;display:grid}.latex-field{border:0;gap:6px;min-width:0;margin:0;padding:0;display:grid}.latex-field legend{margin-bottom:6px;padding:0}.latex-option-row{grid-template-columns:1fr 1fr;gap:12px;display:grid}.latex-input-unit,.latex-color{align-items:center;gap:8px;display:flex}.latex-input-unit input{max-width:100px}.latex-color input[type=color]{border:1px solid #cdd6e4;border-radius:6px;flex:none;width:40px;height:40px;padding:2px}.latex-color input[aria-invalid=true]{border-color:#b42318}.latex-note{color:#49566b;font-size:13px;margin-top:8px!important}main.ga2#top .latex-landing .wrap{max-width:1304px}.latex-examples{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;display:grid}.latex-example{border:1px solid #dfe5ef;border-radius:14px;flex-direction:column;align-items:flex-start;gap:16px;padding:18px;display:flex}.latex-example h3{margin:0}.latex-example button{margin-top:auto}.latex-thumb{background:#f7f9fc;border-radius:8px;justify-content:center;align-items:center;width:100%;height:140px;padding:20px;display:flex;overflow:hidden}.latex-thumb img{object-fit:contain;width:100%;min-width:0;height:100%;display:block}.latex-landing .art-panel img{max-width:100%;max-height:65px;margin:12px auto;display:block}.latex-art-code{white-space:pre-wrap;border:1px solid #cdd6e4;border-radius:6px;padding:12px}.latex-art-symbols{gap:6px;display:flex}.latex-art-symbols span{border:1px solid #dfe5ef;border-radius:5px;padding:4px 10px}.latex-symbol-tables{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px;display:grid}.latex-symbol-tables section{min-width:0}.latex-symbol-tables h3{margin-bottom:12px!important}.latex-table-scroll{overflow-x:auto}.latex-landing table{border-collapse:collapse;text-align:left;width:100%}.latex-landing th,.latex-landing td{vertical-align:middle;border-bottom:1px solid #dfe5ef;padding:10px}.latex-table-symbol{width:32px;height:26px;display:block}.latex-command{color:#1746c6;background:0 0;border:0;padding:4px;font-family:ui-monospace,monospace!important}@media (width<=900px){.latex-tool-grid{flex-direction:column;gap:20px;padding:16px;display:flex}.latex-preview-column{order:-1;width:100%}.latex-preview-sticky{position:static}.latex-edit-column{width:100%}.latex-frame{height:min(30vh,200px);min-height:120px}.latex-examples{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=600px){.latex-examples,.latex-symbol-tables{grid-template-columns:1fr}.latex-tool .pfd-btn{padding-inline:10px!important;font-size:14px!important}}@media (width<=900px){.latex-tool-grid,.latex-preview-column,.latex-preview-sticky,.latex-edit-column{display:contents}.latex-tool{flex-direction:column;gap:16px;padding:16px;display:flex}.latex-toolbar{order:0;margin:0}.latex-frame{z-index:4;order:1;position:sticky;top:64px}.latex-editor{order:3}.latex-editor textarea{scroll-margin-top:calc(min(30vh,200px) + 80px)}.latex-symbols{order:5;margin-top:0}.latex-options{order:4;margin-top:0}.latex-note{order:2}}@media (width<=700px){main.ga2#top.latex-page .latex-tool{margin-inline:0}}@media (width<=600px){.figureslate-home-v2 main.latex-page .workspace-home .hero-benefits svg{display:block}}@media (width>=901px) and (height<=800px){.latex-frame{height:180px;min-height:180px}}
