:root{color-scheme:light;font-family:-apple-system,BlinkMacSystemFont,SF Pro Text,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;--bg: #f2f4f6;--bg-elevated: #f7f8fa;--surface: #ffffff;--surface-sunken: #e9edf1;--surface-hover: #e9edf1;--surface-active: #dce8ef;--text: #1d232b;--text-muted: #4e5967;--text-faint: #687483;--border: #d5dae0;--border-strong: #b9c1cb;--accent: #1f638e;--accent-hover: #174f73;--accent-soft: #e5f0f6;--accent-border: #a8c8d9;--info: #1f638e;--success: #147554;--warning: #955400;--danger: #b53643;--focus-ring: #1473a9;--primary-foreground: #ffffff;--formula-surface: #ffffff;--formula-placeholder: #d9edf9;--formula-placeholder-selected: #cfe8f7;--formula-caret: #1f638e;--shadow-sm: 0 1px 2px rgba(24, 31, 40, .07);--shadow-md: 0 7px 20px rgba(24, 31, 40, .13), 0 1px 3px rgba(24, 31, 40, .08);--shadow-lg: 0 16px 40px rgba(24, 31, 40, .18), 0 2px 8px rgba(24, 31, 40, .08);--control-height: 30px;--panel-header-height: 52px;--z-workspace-footer: 50;--z-workspace-floating: 60;--z-workspace-resizer: 70;--z-workspace-header: 80;--z-menu-dismiss: 110;--z-app-header: 120;--z-app-menu: 120;--z-popover: 190;--z-context-menu: 2050;--z-modal: 2200;--z-panel-backdrop: 2200;--z-panel: 2210;--z-modal-nested: 2300;--z-toast: 2400;background:var(--bg);color:var(--text);font-synthesis:none;text-rendering:optimizeLegibility}:root[data-theme=dark]{color-scheme:dark;--bg: #16181b;--bg-elevated: #1c1f23;--surface: #202328;--surface-sunken: #131518;--surface-hover: #2b3036;--surface-active: #253b49;--text: #f2f4f6;--text-muted: #b8c0ca;--text-faint: #929daa;--border: #353b43;--border-strong: #4b535e;--accent: #72b7dd;--accent-hover: #91cae7;--accent-soft: #1d3440;--accent-border: #3e6679;--info: #72b7dd;--success: #62c99a;--warning: #e8b55a;--danger: #f08089;--focus-ring: #78c7ef;--primary-foreground: #0f2733;--formula-surface: #202328;--formula-placeholder: #5f8fa8;--formula-placeholder-selected: #77a9c1;--formula-caret: #72b7dd;--syntax-command: #a9ddf8;--syntax-keyword: #a9ddf8;--syntax-operator: #c8eaff;--syntax-number: #f0b7d4;--syntax-bracket: #f0cf85;--syntax-string: #e7b08e;--syntax-comment: #9ba8b5;--syntax-variable: #f2f4f6;--syntax-function: #b9e3f8;--syntax-error: #ff9aa4;--shadow-sm: 0 1px 2px rgba(0, 0, 0, .18);--shadow-md: 0 8px 24px rgba(0, 0, 0, .3), 0 1px 3px rgba(0, 0, 0, .22);--shadow-lg: 0 18px 46px rgba(0, 0, 0, .4), 0 2px 8px rgba(0, 0, 0, .24)}:root[data-theme=purple]{--icon-primary: #e3dae8;--icon-secondary: #b8aabd;--icon-muted: #8c7f92;--icon-disabled: #665d6b;--border-disabled: #403545;--separator: rgba(206, 195, 213, .18);--focus-soft: rgba(191, 164, 239, .13)}:root[data-theme=green]{--icon-primary: #d8e3dc;--icon-secondary: #a5b4ab;--icon-muted: #738178;--icon-disabled: #59655e;--border-disabled: #344139;--separator: rgba(185, 198, 190, .16);--focus-soft: rgba(120, 197, 149, .12)}*{box-sizing:border-box}html,body,#root{width:100%;height:100%;margin:0;overflow:hidden}body{background:var(--bg)}:root[data-theme=purple],:root[data-theme=green],:root[data-theme-palette]{scrollbar-color:var(--scrollbar-thumb) var(--scrollbar-track)}button,input,select,textarea{font:inherit}button{color:inherit}:root[data-theme=beige] input:disabled,:root[data-theme=beige] textarea:disabled,:root[data-theme=beige] select:disabled,:root[data-theme=beige] button:disabled,:root[data-theme=purple] input:disabled,:root[data-theme=purple] textarea:disabled,:root[data-theme=purple] select:disabled,:root[data-theme=purple] button:disabled,:root[data-theme=green] input:disabled,:root[data-theme=green] textarea:disabled,:root[data-theme=green] select:disabled,:root[data-theme=green] button:disabled,:root[data-theme-palette] input:disabled,:root[data-theme-palette] textarea:disabled,:root[data-theme-palette] select:disabled,:root[data-theme-palette] button:disabled{color:var(--text-disabled)}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}.visually-hidden{position:fixed;width:1px;height:1px;opacity:0;pointer-events:none}.app-shell{width:100%;height:100%;display:grid;color:var(--text)}.app-header{position:relative;display:grid;align-items:center;min-width:0;border-bottom:1px solid var(--border);user-select:none}.brand-area,.header-actions,.action-group,.document-title-area,.source-actions,.source-title,.canvas-controls,.status-bar>div,.settings-section-title,.theme-segment button,.text-button,.primary-small-button,.secondary-button,.primary-button{display:flex;align-items:center}.brand-area{min-width:0}.menu-button,.icon-button{display:inline-grid;place-items:center;flex:0 0 auto;padding:0;border:1px solid transparent;background:transparent;cursor:pointer}.visualtex-brand-logo{width:30px;height:30px;display:block}.document-title-area{justify-content:center;min-width:0}.document-title-area input{min-width:90px;text-align:center;transition:border .14s ease,background .14s ease}.document-title-area input:hover,.document-title-area input:focus{background:var(--surface-hover);border-color:var(--border);outline:none}.save-state{display:flex;align-items:center;gap:4px;white-space:nowrap;transition:color .18s ease}.save-state.is-saved{color:var(--success)}.header-actions{justify-content:flex-end;min-width:0}.action-group{border-right:1px solid var(--border)}.copy-control{position:relative;display:flex}.copy-primary{border:0;cursor:pointer;transition:background .14s ease,transform .14s ease}.copy-primary{display:flex;align-items:center;gap:7px}.copy-menu{position:absolute;z-index:100;top:42px;right:0;width:230px;border:1px solid var(--border);animation:menu-in .13s ease-out}.copy-menu-label{display:block;padding:7px 9px 5px}.copy-menu button{width:100%;display:flex;align-items:center;justify-content:space-between;padding:9px 10px;border:0;background:transparent;text-align:left;cursor:pointer}.copy-menu button span{display:flex;flex-direction:column;gap:2px}.copy-menu strong{font-weight:600}.formula-toolbar{position:relative;border-bottom:1px solid var(--border)}.formula-toolbar.is-collapsed{grid-template-rows:38px}.toolbar-tabs{align-items:end;overflow-x:auto;scrollbar-width:none}.toolbar-tabs::-webkit-scrollbar{display:none}.toolbar-tab{position:relative;display:inline-flex;align-items:center;flex:0 0 auto;background:transparent;cursor:pointer}.toolbar-tab.is-active:after{content:"";position:absolute;right:9px;bottom:-1px;left:9px;height:2px;border-radius:2px 2px 0 0;background:var(--accent)}.template-strip{align-items:stretch;scrollbar-width:thin}.template-button{width:92px;min-width:92px;display:flex;flex:0 0 92px;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:var(--text-muted);cursor:pointer;overflow:hidden;transition:background .13s ease,border .13s ease,color .13s ease,transform .13s ease}.template-button:hover{color:var(--text)}.template-button.is-wide{width:122px;min-width:122px;flex-basis:122px}.template-button.is-compact{width:142px;min-width:142px;flex-basis:142px}.template-button.is-compact .math-preview{font-size:15px;transform:scale(.88);transform-origin:center}.math-preview{width:100%;max-width:100%;min-width:0;min-height:28px;display:inline-flex;align-items:center;justify-content:center;color:var(--text);overflow:hidden;contain:layout paint;pointer-events:none;font-size:18px}.math-preview-fit-content{display:contents}.math-preview[data-intrinsic-width=true]{width:min(var(--math-preview-intrinsic-width, 280px),100%);max-width:100%;flex:0 1 auto}.math-preview[data-intrinsic-width=true] .math-preview-fit-content{width:max-content;max-width:none;display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center}.math-preview[data-fit=contain] .math-preview-fit-content{width:max-content;max-width:none;display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;transform:scale(var(--math-preview-fit-scale, 1));transform-origin:center}.math-preview .ML__latex{max-width:100%;pointer-events:none}.math-preview[data-fit=contain] .ML__latex{max-width:none}.formula-workspace{width:min(1120px,100%);min-height:100%;margin:0 auto;display:flex;flex-direction:column}.workspace-heading{display:flex;justify-content:space-between;margin-bottom:10px}.eyebrow{color:var(--accent);font-weight:800}.workspace-heading h1,.dialog-header h2,.history-header h2{margin:0;color:var(--text);font-weight:700;letter-spacing:-.3px}.canvas-tool-group{display:flex;align-items:center}.input-behavior-menu{position:relative;z-index:90}.canvas-input-behavior-trigger,.workspace-export-trigger{height:34px;display:flex;align-items:center;gap:6px;padding:0 10px;border:1px solid var(--border);border-radius:9px;background:var(--surface);color:var(--text-muted);box-shadow:var(--shadow-sm);cursor:pointer;font-size:13px;font-weight:700;white-space:nowrap}.canvas-input-behavior-trigger:hover,.canvas-input-behavior-trigger.is-active,.workspace-export-trigger:hover{border-color:var(--border-strong);color:var(--text)}.canvas-input-behavior-trigger>svg:first-child,.workspace-export-trigger>svg:first-child{color:var(--accent)}.canvas-input-behavior-trigger>svg:last-child{color:var(--text-faint);transition:transform .15s ease}.canvas-input-behavior-trigger.is-active>svg:last-child{transform:rotate(180deg)}.input-behavior-popover{position:fixed;top:0;left:0;right:auto;width:min(420px,calc(100vw - 16px));max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);box-sizing:border-box;padding:18px;border:1px solid var(--border-strong);border-radius:11px;z-index:1900;background:var(--surface);box-shadow:var(--shadow-md);overflow-y:auto;overscroll-behavior:contain}.input-behavior-heading{display:flex;flex-direction:column;gap:0;padding:1px 2px 8px}.input-behavior-heading strong{color:var(--text);font-size:16px;font-weight:700}.input-behavior-heading span{color:var(--text-faint);font-size:12px;line-height:1.45}.input-behavior-section-heading{margin-top:10px;padding-top:12px;border-top:1px solid var(--border)}.input-behavior-options{display:flex;flex-direction:column;gap:6px}.input-behavior-option{min-height:56px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;border:1px solid var(--border);border-radius:8px;background:var(--bg-elevated);cursor:pointer}.input-behavior-option:hover{border-color:var(--border-strong)}.input-behavior-option>span:first-child{min-width:0;display:flex;flex-direction:column;gap:2px}.input-behavior-option strong{color:var(--text);font-size:14px;font-weight:700}.input-behavior-option input{position:absolute;opacity:0;pointer-events:none}.input-behavior-switch{position:relative;width:34px;height:20px;flex:0 0 auto;border-radius:10px;background:var(--border-strong);transition:background .15s ease}.input-behavior-switch:after{content:"";position:absolute;top:3px;left:3px;width:14px;height:14px;border-radius:50%;background:var(--surface);box-shadow:var(--shadow-sm);transition:transform .15s ease}.input-behavior-option input:checked+.input-behavior-switch{background:var(--accent)}.input-behavior-option input:checked+.input-behavior-switch:after{transform:translate(14px)}.input-behavior-option input:focus-visible+.input-behavior-switch{outline:2px solid var(--focus-ring);outline-offset:2px}.canvas-ocr-model{display:flex;align-items:center;gap:6px}.canvas-ocr-model svg{flex:0 0 auto;color:var(--accent)}.canvas-ocr-model>span{color:var(--text-faint);font-weight:800;letter-spacing:.55px}.canvas-ocr-model select{padding:0 24px 0 7px;outline:none;cursor:pointer;font-weight:650}.canvas-ocr-model select:disabled{cursor:wait;opacity:.58}.canvas-controls{border:1px solid var(--border)}.canvas-controls>span{color:var(--text-muted);font-family:JetBrains Mono,monospace;text-align:center}.editor-surface{position:relative;display:flex;flex:1 0 260px;flex-direction:column;align-items:center;overflow:visible;transition:border-color .18s ease,box-shadow .18s ease}body.quick-ocr-hud-page{margin:0;overflow:hidden;background:transparent}body.quick-ocr-hud-page #root{width:100vw;height:100vh}.quick-ocr-hud{width:100%;height:100%;display:grid;grid-template-columns:38px minmax(0,1fr);align-items:center;gap:10px;padding:13px 15px;border:1px solid var(--border-strong);border-radius:14px;background:color-mix(in srgb,var(--surface) 96%,transparent);color:var(--text);box-shadow:0 14px 38px #14182233;backdrop-filter:blur(18px);box-sizing:border-box}.quick-ocr-hud-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:color-mix(in srgb,var(--accent) 12%,transparent);color:var(--accent)}.quick-ocr-hud.is-success .quick-ocr-hud-icon{background:color-mix(in srgb,var(--success) 14%,transparent);color:var(--success)}.quick-ocr-hud.is-error .quick-ocr-hud-icon{background:color-mix(in srgb,var(--danger) 14%,transparent);color:var(--danger)}.quick-ocr-hud-content{min-width:0;display:flex;flex-direction:column;gap:9px}.quick-ocr-hud-content strong{overflow:hidden;font-size:11px;font-weight:700;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}.quick-ocr-hud-track{height:5px;overflow:hidden;border-radius:999px;background:var(--bg-inset)}.quick-ocr-hud-track span{display:block;height:100%;border-radius:inherit;background:var(--accent);transition:width .18s ease}.quick-ocr-hud.is-success .quick-ocr-hud-track span{background:var(--success)}.quick-ocr-hud.is-error .quick-ocr-hud-track span{background:var(--danger)}.inline-ocr-progress{position:absolute;top:12px;right:14px;z-index:24;max-width:min(430px,calc(100% - 28px));display:flex;align-items:center;gap:9px;padding:8px 9px;border:1px solid color-mix(in srgb,var(--accent) 26%,var(--border));border-radius:11px;background:color-mix(in srgb,var(--surface) 94%,transparent);box-shadow:0 8px 28px #1c193721;backdrop-filter:blur(14px)}.inline-ocr-progress-icon{width:29px;height:29px;display:grid;flex:0 0 auto;place-items:center;border-radius:8px;background:color-mix(in srgb,var(--accent) 12%,transparent);color:var(--accent)}.inline-ocr-progress>div{min-width:0;display:flex;flex:1;flex-direction:column;gap:2px}.inline-ocr-progress strong{overflow:hidden;color:var(--text);font-weight:700;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.inline-ocr-progress>div>span{color:var(--text-faint);font-family:JetBrains Mono,monospace}.inline-ocr-progress.is-success{border-color:color-mix(in srgb,var(--success) 34%,var(--border))}.inline-ocr-progress.is-success .inline-ocr-progress-icon{background:color-mix(in srgb,var(--success) 13%,transparent);color:var(--success)}.inline-ocr-progress.is-error{border-color:color-mix(in srgb,var(--danger) 38%,var(--border))}.inline-ocr-progress.is-error .inline-ocr-progress-icon{background:color-mix(in srgb,var(--danger) 12%,transparent);color:var(--danger)}.inline-ocr-progress.is-cancelled .inline-ocr-progress-icon{background:color-mix(in srgb,var(--text-faint) 12%,transparent);color:var(--text-muted)}.inline-ocr-cancel,.inline-ocr-dismiss{height:25px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;gap:4px;border:1px solid var(--border);border-radius:7px;background:var(--bg-elevated);color:var(--text-muted);cursor:pointer;font-weight:650}.inline-ocr-cancel{padding:0 8px}.inline-ocr-dismiss{width:25px;padding:0}.inline-ocr-cancel:hover,.inline-ocr-dismiss:hover{border-color:var(--accent-border);color:var(--accent)}.inline-ocr-cancel:disabled{cursor:wait;opacity:.55}.status-live-dot{border-radius:50%;background:var(--success)}kbd{min-width:19px;height:18px;display:inline-grid;place-items:center;padding:0 5px;border:1px solid var(--border-strong);border-bottom-width:2px;border-radius:5px;background:var(--bg-elevated);color:var(--text-muted);font-family:JetBrains Mono,monospace;font-size:9px}.mathfield-host{position:relative;display:flex;align-items:center;justify-content:center}.visual-mathfield{position:relative;z-index:1;width:100%;min-height:92px;display:flex;align-items:center;justify-content:center;padding:22px 18px!important;border:0!important;border-radius:12px;outline:none!important;background:transparent!important;color:var(--text);text-align:center;--caret-color: var(--formula-caret);--selection-background-color: var(--formula-selection);--latex-color: var(--syntax-command);--contains-highlight-background-color: color-mix( in srgb, var(--accent) 10%, transparent );--selection-color: currentColor;--smart-fence-color: currentColor;--contains-highlight-color: var(--formula-caret);--highlight-text: color-mix(in srgb, var(--accent) 10%, transparent);--text-highlight-background-color: color-mix(in srgb, var(--accent) 10%, transparent);--placeholder-color: var(--text-faint);--composition-background-color: color-mix(in srgb, var(--accent) 16%, transparent);--composition-text-color: currentColor;transition:font-size .16s ease}.visual-mathfield::part(placeholder){color:var(--text-faint)}.visual-mathfield::part(menu-toggle),.visual-mathfield::part(virtual-keyboard-toggle){display:none}.source-panel{border:1px solid var(--border);overflow:hidden}.source-panel-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 10px 0 13px;border-bottom:1px solid var(--border)}.source-title{gap:7px;color:var(--text-muted);font-weight:700}.source-actions{gap:4px}.text-button,.primary-small-button,.secondary-button,.primary-button{justify-content:center;gap:6px;border-radius:8px;cursor:pointer}.text-button{min-height:28px;padding:0 8px;border:1px solid transparent;background:transparent;color:var(--text-muted);font-weight:600}.text-button:hover{border-color:var(--border);background:var(--surface);color:var(--text)}.primary-small-button{height:28px;padding:0 10px;border:0;font-weight:700}.codemirror-host{min-height:88px;max-height:180px;overflow:auto}.cm-editor{min-height:88px}.status-bar{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--border);background:var(--surface);user-select:none}.status-live-dot{box-shadow:none}.modal-backdrop,.panel-backdrop{position:fixed;inset:0;animation:fade-in .14s ease}.modal-backdrop{z-index:var(--z-modal)}.settings-dialog{position:absolute;top:50%;left:50%;width:min(570px,calc(100vw - 36px));max-height:calc(100vh - 48px);display:flex;flex-direction:column;border:1px solid var(--border);background:var(--surface);transform:translate(-50%,-50%);overflow:hidden;animation:dialog-in .17s ease-out}.help-manual-backdrop{z-index:var(--z-modal);display:grid;place-items:center;padding:18px}.help-manual-dialog{width:min(980px,calc(100vw - 36px));height:min(760px,calc(100vh - 36px));min-height:0;display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--border);border-radius:17px;background:var(--surface);box-shadow:var(--shadow-lg);color:var(--text);outline:none;animation:dialog-in .17s ease-out}.help-manual-header{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 17px;border-bottom:1px solid color-mix(in srgb,var(--border) 72%,var(--accent) 28%);background:color-mix(in srgb,var(--surface) 96%,var(--accent-soft) 4%)}.help-manual-header>div{min-width:0;display:flex;align-items:center;gap:10px}.help-manual-header>div>svg{flex:0 0 auto;color:var(--accent)}.help-manual-header span{min-width:0;display:flex;flex-direction:column;gap:2px}.help-manual-header strong{color:color-mix(in srgb,var(--text) 78%,var(--accent) 22%);font-size:15px}.help-manual-header small{color:var(--text-muted);font-size:10px}.help-manual-layout{min-height:0;flex:1;display:grid;grid-template-columns:210px minmax(0,1fr)}.help-manual-toc{min-height:0;display:flex;flex-direction:column;gap:9px;padding:15px 12px;border-right:1px solid color-mix(in srgb,var(--border) 76%,var(--accent) 24%);background:color-mix(in srgb,var(--bg-elevated) 94%,var(--accent-soft) 6%)}.help-manual-toc>strong{padding:0 7px;font-size:12px;color:color-mix(in srgb,var(--text-muted) 80%,var(--accent) 20%)}.help-manual-toc>div{min-height:0;display:flex;flex-direction:column;gap:2px;overflow-y:auto}.help-manual-toc button{width:100%;padding:7px 8px;border:0;border-radius:7px;background:transparent;color:var(--text-muted);font:inherit;font-size:11px;line-height:1.42;text-align:left}.help-manual-toc button:hover{background:color-mix(in srgb,var(--surface-hover) 76%,var(--accent-soft) 24%);color:var(--text)}.help-manual-toc button[data-level="1"]{margin-top:4px;color:color-mix(in srgb,var(--text) 84%,var(--accent) 16%);font-weight:700}.help-manual-toc button[data-level="2"]{padding-left:14px}.help-manual-toc button[data-level="3"]{padding-left:22px;color:var(--text-muted)}.help-manual-content{min-width:0;min-height:0;padding:24px 30px 42px;overflow:auto;scroll-behavior:smooth}.help-manual-content h1,.help-manual-content h2,.help-manual-content h3,.help-manual-content h4{scroll-margin-top:18px;line-height:1.28}.help-manual-content h1{margin:0 0 9px;color:color-mix(in srgb,var(--text) 70%,var(--accent) 30%);font-size:26px}.help-manual-content h2{margin:30px 0 11px;padding-bottom:8px;border-bottom:1px solid color-mix(in srgb,var(--border) 66%,var(--accent) 34%);color:color-mix(in srgb,var(--text) 80%,var(--accent) 20%);font-size:19px}.help-manual-content h3{margin:23px 0 9px;color:color-mix(in srgb,var(--text) 86%,var(--accent) 14%);font-size:16px}.help-manual-content h4{margin:19px 0 8px;color:var(--text);font-size:14px}.help-manual-content p,.help-manual-content li,.help-manual-content td,.help-manual-content th{font-size:12px;line-height:1.72}.help-manual-content p{margin:8px 0;color:color-mix(in srgb,var(--text-muted) 88%,var(--text) 12%)}.help-manual-content strong{color:color-mix(in srgb,var(--text) 86%,var(--accent) 14%);font-weight:700}.help-manual-content ul,.help-manual-content ol{margin:8px 0 12px;padding-left:22px;color:var(--text-muted)}.help-manual-content li+li{margin-top:3px}.help-manual-content code{padding:1px 5px;border:1px solid color-mix(in srgb,var(--border) 78%,var(--accent) 22%);border-radius:4px;background:color-mix(in srgb,var(--bg-elevated) 88%,var(--accent-soft) 12%);color:var(--text);font-family:SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:.95em}.help-manual-content pre{margin:11px 0 15px;padding:13px 15px;overflow-x:auto;border:1px solid color-mix(in srgb,var(--border) 78%,var(--accent) 22%);border-radius:9px;background:color-mix(in srgb,var(--bg-elevated) 92%,var(--accent-soft) 8%)}.help-manual-content pre code{padding:0;border:0;background:transparent;white-space:pre}.help-manual-content hr{margin:22px 0;border:0;border-top:1px solid var(--border)}.help-manual-table-wrap{max-width:100%;margin:10px 0 14px;overflow-x:auto;border:1px solid var(--border);border-radius:9px}.help-manual-content table{width:100%;border-collapse:collapse}.help-manual-content th,.help-manual-content td{padding:7px 9px;border-bottom:1px solid var(--border);color:var(--text-muted);text-align:left;vertical-align:top}.help-manual-content th{background:color-mix(in srgb,var(--bg-elevated) 90%,var(--accent-soft) 10%);color:color-mix(in srgb,var(--text) 84%,var(--accent) 16%);font-weight:700}.help-manual-content tbody tr:last-child td{border-bottom:0}@media(max-width:720px){.help-manual-layout{grid-template-columns:1fr}.help-manual-toc{display:none}.help-manual-content{padding:20px 18px 36px}}.dialog-header,.history-header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border)}.settings-section+.settings-section{border-top:1px solid var(--border)}.settings-section-title{align-items:flex-start}.settings-section-title h3{margin:0 0 3px;color:var(--text)}.settings-section-title p{margin:0;line-height:1.45}.settings-subdialog-trigger{width:100%;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:11px;padding:12px 13px;border:1px solid var(--border);border-radius:10px;background:var(--bg-elevated);color:var(--text);text-align:left}.settings-subdialog-trigger:hover{border-color:var(--border-strong);background:var(--surface-hover)}.settings-subdialog-trigger>svg:first-child{color:var(--accent)}.settings-subdialog-trigger>svg:last-child{color:var(--text-faint)}.settings-subdialog-trigger>span{min-width:0;display:flex;flex-direction:column;gap:3px}.settings-subdialog-trigger strong{font-size:11px;font-weight:700}.settings-subdialog-trigger small{color:var(--text-faint);font-size:8px;line-height:1.45}.settings-subdialog-backdrop{position:fixed;inset:0;z-index:var(--z-modal-nested);display:grid;place-items:center;padding:16px;background:var(--bg-scrim);backdrop-filter:blur(3px)}.formula-toolbar-customization,.formula-inset-customization,.formula-font-customization,.formula-spacing-customization{display:grid;border:1px solid var(--border);background:var(--bg-elevated)}.formula-inset-customization-header{display:flex;align-items:center;justify-content:space-between;gap:14px}.formula-inset-customization-header>div{min-width:0;display:flex;flex-direction:column;gap:3px}.formula-inset-customization-header strong{color:var(--text)}.formula-inset-customization-header small{line-height:1.45}.formula-inset-reset{margin:0;flex:0 0 auto}.formula-inset-range-grid{display:grid}.formula-inset-range{min-height:52px;margin:0;padding:8px 10px;gap:10px}.formula-inset-range input[type=range]{min-width:80px;width:100%}.formula-inset-preview-window{overflow:hidden;border:1px solid var(--border-strong);border-radius:10px;background:var(--surface);box-shadow:inset 0 1px color-mix(in srgb,var(--bg-elevated) 52%,transparent),var(--shadow-sm)}.formula-inset-preview-titlebar{height:25px;display:flex;align-items:center;gap:5px;padding-inline:9px;border-bottom:1px solid var(--border);background:linear-gradient(180deg,color-mix(in srgb,var(--surface) 92%,var(--bg-elevated) 8%),var(--bg-elevated))}.formula-inset-preview-titlebar i{width:6px;height:6px;border-radius:50%;background:var(--border-strong)}.formula-inset-preview-titlebar span{margin-left:4px;color:var(--text-faint);font-size:8px}.formula-inset-preview-toolbar{min-height:calc(var(--preview-toolbar-button-size, 52px) + 8px);display:flex;align-items:center;gap:0;padding:4px 8px;border-bottom:1px solid var(--border);background:var(--bg-elevated)}.formula-inset-preview-toolbar>span{width:var(--preview-toolbar-button-size, 52px);height:var(--preview-toolbar-button-size, 52px);flex:0 0 var(--preview-toolbar-button-size, 52px);padding:var(--preview-toolbar-button-padding, 2px);border:0;border-radius:0;outline:1px solid color-mix(in srgb,var(--border) 84%,transparent);outline-offset:-1px;background:linear-gradient(180deg,color-mix(in srgb,var(--surface) 91%,var(--bg-elevated) 9%),color-mix(in srgb,var(--bg-elevated) 88%,var(--surface) 12%));box-shadow:inset 0 1px color-mix(in srgb,var(--bg-elevated) 58%,transparent),inset 0 -1px color-mix(in srgb,var(--border) 44%,transparent)}.formula-inset-preview-toolbar .math-preview{width:100%;height:100%;min-height:0;font-size:clamp(14px,calc(var(--preview-toolbar-button-size, 52px) * .42),28px)}.formula-inset-preview-row{padding-block:var(--preview-formula-row-vertical-inset, 7px)}.formula-font-select-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.formula-font-setting{min-width:0;display:grid;gap:7px;padding:9px 10px;border:1px solid var(--border);border-radius:9px;background:var(--surface)}.formula-font-setting>span{min-width:0}.formula-font-setting strong{color:var(--text);font-size:10px}.formula-font-setting select{width:100%;height:30px;padding:0 28px 0 9px;border:1px solid var(--border-strong);border-radius:7px;outline:none;background:var(--bg-elevated);color:var(--text);font:inherit;font-size:10px;cursor:pointer}.formula-font-setting select:focus{border-color:var(--accent-border);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 10%,transparent)}.formula-font-live-preview{min-height:66px;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:14px;padding:10px 12px;border:1px solid var(--border);border-radius:9px;background:var(--formula-surface);overflow:hidden}.formula-font-live-preview>span:first-child{color:var(--text-faint);font-size:8px;font-weight:700;white-space:nowrap}.formula-font-live-preview .math-preview{min-width:0;min-height:42px;justify-content:flex-start;overflow:visible;font-size:19px}.formula-font-live-preview .ML__cmr.visualtex-formula-letter-glyph:not(.ML__it),.formula-font-live-preview .ML__mathbf.visualtex-formula-letter-glyph:not(.lcGreek){font-family:var(--visualtex-formula-upright-font-family, KaTeX_Main, serif)!important}.formula-font-live-preview .ML__cmr.visualtex-formula-letter-glyph.ML__it,.formula-font-live-preview .ML__mathit.visualtex-formula-letter-glyph,.formula-font-live-preview .lcGreek.ML__mathbf.visualtex-formula-letter-glyph,.formula-font-live-preview .ML__mathbfit.visualtex-formula-letter-glyph{font-family:var(--visualtex-formula-italic-font-family, KaTeX_Math, KaTeX_Main, serif)!important}.formula-font-live-preview .visualtex-chinese-glyph{font-family:var(--visualtex-formula-chinese-font-family, sans-serif)!important}.png-background-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.png-background-transparent,.png-background-color{min-height:44px;display:flex;align-items:center;gap:10px;padding:8px 10px;border:1px solid var(--border);border-radius:9px;background:var(--surface);color:var(--text-muted);text-align:left}.png-background-transparent{font:inherit;cursor:pointer}.png-background-transparent:hover,.png-background-color:hover,.png-background-transparent.is-active,.png-background-color.is-active{border-color:var(--accent-border);background:color-mix(in srgb,var(--accent-soft) 42%,var(--surface))}.png-background-transparent>span:last-child,.png-background-color>span:last-child{min-width:0}.png-background-transparent strong,.png-background-color strong{color:var(--text);font-size:10px}.png-transparent-swatch,.png-background-color input[type=color]{width:28px;height:28px;flex:0 0 28px;box-sizing:border-box;border:1px solid var(--border-strong);border-radius:6px}.png-transparent-swatch{background-color:var(--surface);background-image:linear-gradient(45deg,var(--border) 25%,transparent 25%),linear-gradient(-45deg,var(--border) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,var(--border) 75%),linear-gradient(-45deg,transparent 75%,var(--border) 75%);background-size:10px 10px;background-position:0 0,0 5px,5px -5px,-5px 0}.png-background-color{cursor:pointer}.png-background-color input[type=color]{padding:2px;background:var(--bg-elevated);cursor:pointer}@media(max-width:760px){.formula-toolbar-customization .formula-inset-range-grid{grid-template-columns:minmax(0,1fr)}}@media(max-width:560px){.formula-inset-range-grid,.formula-font-select-grid,.png-background-controls{grid-template-columns:minmax(0,1fr)}}.switch-row,.range-setting{display:flex;align-items:center;justify-content:space-between;gap:18px}.switch-row>span:first-child,.range-setting>span{display:flex;flex-direction:column;gap:2px}.switch-row strong,.range-setting strong{font-weight:700}.switch-row input{position:absolute;opacity:0;pointer-events:none}.switch-control{position:relative;width:36px;height:20px;flex:0 0 auto;border-radius:10px;transition:background .15s ease;cursor:pointer}.switch-control:after{content:"";position:absolute;top:3px;left:3px;width:14px;height:14px;border-radius:50%;background:var(--surface);box-shadow:var(--shadow-sm);transition:transform .15s ease}.switch-row input:checked+.switch-control{background:var(--accent)}.switch-row input:checked+.switch-control:after{transform:translate(16px)}.range-setting input[type=range]{width:190px;accent-color:var(--accent)}.theme-segment{gap:5px;border:1px solid var(--border)}.theme-segment button{flex:1;justify-content:center;gap:7px;height:32px;border:0;background:transparent;color:var(--text-muted);font-weight:600;cursor:pointer}.secondary-button{height:32px;padding:0 11px;border:1px solid var(--border);background:var(--surface);color:var(--text-muted);font-weight:600}.secondary-button:hover{background:var(--surface-hover);color:var(--text)}.danger-subtle:hover{border-color:color-mix(in srgb,var(--danger) 30%,var(--border));color:var(--danger)}.dialog-footer{min-height:56px;display:flex;align-items:center;justify-content:space-between;padding:0 20px;border-top:1px solid var(--border);background:var(--bg-elevated);color:var(--text-faint)}.primary-button{height:32px;padding:0 16px;border:0;font-weight:700}.history-panel{position:fixed;z-index:var(--z-panel);top:0;right:0;bottom:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;border-left:1px solid var(--border);background:var(--surface);transform:translate(105%);transition:transform .21s cubic-bezier(.2,.8,.2,1)}.history-panel.is-open{transform:translate(0)}.panel-backdrop{z-index:var(--z-panel-backdrop)}.history-list{overflow-y:auto}.history-item{width:100%;display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:7px;margin-bottom:7px;text-align:left;cursor:pointer;transition:border .14s ease,background .14s ease}.history-formula-stack{display:flex;flex-direction:column;gap:3px;overflow:hidden}.history-formula-stack small{color:var(--accent)}.history-item .math-preview{justify-content:flex-start;max-width:100%;min-height:26px;overflow-x:hidden}.history-item .math-preview-field{font-size:17px}.history-item>span:last-child{color:var(--text-faint)}.history-footer{padding:10px 13px;border-top:1px solid var(--border)}.danger-text:hover{color:var(--danger)}.empty-state{min-height:280px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:30px;color:var(--text-muted);text-align:center}.empty-icon{width:50px;height:50px;display:grid;place-items:center;margin-bottom:13px;border:1px solid var(--border);border-radius:15px;background:var(--bg-elevated);color:var(--accent)}.empty-state h3{margin:0 0 6px;font-size:12px}.empty-state p{max-width:210px;margin:0;color:var(--text-faint);font-size:9px;line-height:1.6}.toast{position:fixed;z-index:var(--z-toast);left:50%;bottom:42px;display:flex;align-items:center;gap:7px;padding:9px 13px;border:1px solid var(--border);background:var(--surface);color:var(--text);font-weight:600;transform:translate(-50%);animation:toast-in .18s ease-out}.toast svg{color:var(--success)}.multi-line-editor{min-height:250px;flex:0 0 auto;align-items:stretch;justify-content:flex-start;padding:28px 28px 43px}.mathfield-stack{display:flex;flex-direction:column;margin:0 auto;overflow:hidden}.multi-line-editor.is-source-preview-only .formula-line-mode-toggle:disabled{opacity:.34}.multi-line-editor.is-source-preview-only .formula-line.is-active .formula-line-mode-toggle:disabled{opacity:.68}.formula-line-number{display:grid;place-items:center;align-self:center;justify-self:center;border:1px solid transparent;color:var(--text-faint);user-select:none}.workspace.has-active-line-highlight .formula-line.is-active .formula-line-number{color:var(--accent)}.formula-line .mathfield-host{min-width:0;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb) var(--scrollbar-track);cursor:text}.formula-line .mathfield-host::-webkit-scrollbar{height:7px}.formula-line .mathfield-host::-webkit-scrollbar-track{border-radius:999px;background:var(--scrollbar-track)}.formula-line .mathfield-host::-webkit-scrollbar-thumb{border-radius:999px;background:var(--scrollbar-thumb)}.formula-line .mathfield-host::-webkit-scrollbar-thumb:hover{background:var(--scrollbar-thumb-hover)}.formula-line .mathfield-host.is-horizontally-overflowing{justify-content:flex-start!important;padding-block:2px}.formula-line .visual-mathfield{width:max-content;max-width:none;min-width:0;flex:0 0 auto;display:block;min-height:var(--formula-row-height, 69px);border-radius:0;text-align:left;cursor:text}.brand-area{position:relative}.menu-dismiss-layer{position:fixed;inset:0;z-index:35;padding:0;border:0;background:transparent}.app-menu-popover{position:absolute;z-index:120;top:45px;left:0;width:264px;border:1px solid var(--border);animation:menu-in .14s ease-out}.app-menu-heading{display:flex;flex-direction:column;gap:2px;padding:7px 9px 10px}.app-menu-heading strong{font-size:12px}.app-menu-popover>button{width:100%;height:36px;display:grid;grid-template-columns:22px 1fr auto;align-items:center;gap:6px;padding:0 9px;border:0;background:transparent;text-align:left;cursor:pointer}.app-menu-popover>button kbd{min-width:28px;height:17px;border:0;background:transparent}.app-menu-divider{height:1px;margin:6px 5px;background:var(--border)}.app-menu-language{min-height:42px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:4px 7px 4px 9px}.app-menu-language>span{display:flex;align-items:center;gap:7px;color:var(--text-muted)}.app-menu-language>div{display:flex;gap:2px;padding:2px;border:1px solid var(--border)}.app-menu-language button{height:24px;padding:0 7px;border:0;border-radius:5px;background:transparent;color:var(--text-faint);font-weight:700;cursor:pointer}.ocr-dialog{position:absolute;top:50%;left:50%;width:min(980px,calc(100vw - 36px));max-height:calc(100vh - 40px);display:grid;grid-template-rows:auto minmax(0,1fr) auto;border:1px solid var(--border);background:var(--surface);overflow:hidden;animation:dialog-in .17s ease-out}.ocr-dialog-header{min-height:72px}.ocr-heading,.ocr-runtime-summary,.ocr-runtime-details,.ocr-file-meta,.ocr-result-heading,.ocr-result-actions,.ocr-progress-label{display:flex;align-items:center}.ocr-heading{gap:11px}.ocr-heading-icon{width:36px;height:36px;display:grid;place-items:center;border:1px solid var(--accent-border);background:var(--accent-soft);color:var(--accent)}.ocr-dialog-body{min-height:0;display:grid;grid-template-columns:minmax(300px,.9fr) minmax(360px,1.1fr);gap:18px;padding:18px 20px;overflow-y:auto}.ocr-input-column,.ocr-output-column{min-width:0}.ocr-output-column{display:flex;flex-direction:column;gap:12px}.ocr-drop-zone{position:relative;min-height:258px;display:grid;place-items:center;overflow:hidden;border:1px dashed var(--border-strong);transition:border-color .15s ease,background .15s ease,box-shadow .15s ease}.ocr-drop-zone.is-dragging{border-color:var(--accent);background:var(--accent-soft);box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--accent) 16%,transparent)}.ocr-drop-zone.has-image{border-style:solid;background:linear-gradient(45deg,color-mix(in srgb,var(--border) 45%,transparent) 25%,transparent 25%),linear-gradient(-45deg,color-mix(in srgb,var(--border) 45%,transparent) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,color-mix(in srgb,var(--border) 45%,transparent) 75%),linear-gradient(-45deg,transparent 75%,color-mix(in srgb,var(--border) 45%,transparent) 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0}.ocr-drop-zone img{width:100%;height:258px;object-fit:contain;background:color-mix(in srgb,var(--formula-surface) 88%,transparent)}.ocr-image-actions{position:absolute;right:10px;bottom:10px}.ocr-image-actions button,.ocr-drop-empty button,.ocr-runtime-details button{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid var(--border);border-radius:8px;background:color-mix(in srgb,var(--surface) 94%,transparent);color:var(--text-muted);font-size:9px;font-weight:650;cursor:pointer;backdrop-filter:blur(12px)}.ocr-image-actions button{height:30px;padding:0 10px;box-shadow:var(--shadow-sm)}.ocr-drop-empty{max-width:280px;display:flex;flex-direction:column;align-items:center;gap:8px;padding:28px;color:var(--text-faint);text-align:center}.ocr-drop-empty strong{color:var(--text)}.ocr-drop-empty>span:not(.ocr-drop-icon){line-height:1.5}.ocr-drop-empty button{height:32px;margin-top:3px;padding:0 13px;border-color:var(--accent-border);background:var(--accent-soft);color:var(--accent)}.ocr-drop-empty small{display:inline-flex;align-items:center;gap:5px}.ocr-drop-icon{width:52px;height:52px;display:grid;place-items:center;margin-bottom:3px;border:1px solid var(--accent-border);background:var(--surface);color:var(--accent)}.ocr-file-meta{justify-content:space-between;gap:10px;min-height:31px;padding:0 4px;color:var(--text-faint)}.ocr-file-meta span:first-child{min-width:0;overflow:hidden;color:var(--text-muted);text-overflow:ellipsis;white-space:nowrap}.ocr-provider-card{display:grid;gap:10px;margin-top:10px;padding:11px;border:1px solid color-mix(in srgb,var(--accent) 20%,var(--border));border-radius:12px;background:color-mix(in srgb,var(--bg-elevated) 88%,var(--accent-soft))}.ocr-provider-heading{display:flex;align-items:center;gap:9px}.ocr-provider-heading>div{min-width:0;display:flex;flex-direction:column;gap:2px}.ocr-provider-heading strong{color:var(--text);font-size:10px}.ocr-provider-heading span:not(.ocr-provider-icon){overflow:hidden;color:var(--text-faint);font-size:8px;text-overflow:ellipsis;white-space:nowrap}.ocr-provider-icon{width:30px;height:30px;display:grid;flex:0 0 auto;place-items:center;border-radius:9px}.ocr-provider-icon.is-local{background:color-mix(in srgb,var(--success) 13%,transparent);color:var(--success)}.ocr-provider-icon.is-api{background:var(--accent-soft);color:var(--accent)}.ocr-provider-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;padding-top:2px}.ocr-provider-field{min-width:0;display:flex;flex-direction:column;gap:5px}.ocr-provider-field.is-wide,.ocr-provider-clear-secret{grid-column:1 / -1}.ocr-provider-field>span{color:var(--text-muted);font-size:8px;font-weight:700}.ocr-provider-field input,.ocr-provider-field select,.ocr-provider-field textarea{width:100%;min-width:0;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text);outline:none;font-size:9px}.ocr-provider-field input,.ocr-provider-field select{height:34px;padding:0 9px}.ocr-provider-field textarea{min-height:72px;padding:8px 9px;resize:vertical;line-height:1.45}.ocr-provider-field input:focus,.ocr-provider-field select:focus,.ocr-provider-field textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 10%,transparent)}.ocr-provider-field input:disabled,.ocr-provider-field select:disabled,.ocr-provider-field textarea:disabled{opacity:.62;cursor:not-allowed}.ocr-provider-clear-secret{display:inline-flex;align-items:center;gap:6px;color:var(--text-faint);font-size:8px;cursor:pointer}.ocr-provider-clear-secret input{accent-color:var(--accent)}.ocr-provider-actions{display:flex;align-items:center;justify-content:space-between;gap:9px;padding-top:2px}.ocr-provider-actions>span{min-width:0;display:inline-flex;align-items:flex-start;gap:5px;color:var(--text-faint);font-size:7.5px;line-height:1.45}.ocr-provider-actions>span svg{flex:0 0 auto;margin-top:1px;color:var(--accent)}.ocr-provider-actions button{min-width:112px;height:32px;display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;gap:6px;padding:0 10px}.ocr-api-runtime-card{display:grid;gap:10px}.ocr-api-provider-details{flex-wrap:wrap}.ocr-api-provider-details code{min-width:0;max-width:100%;overflow:hidden;padding:3px 6px;border-radius:6px;background:var(--surface);color:var(--text-muted);font-size:8px;text-overflow:ellipsis;white-space:nowrap}.ocr-model-field,.ocr-latex-editor{display:flex;flex-direction:column;gap:6px}.ocr-model-field{margin-top:12px}.ocr-model-field>span,.ocr-latex-editor>span{color:var(--text-muted);font-weight:700}.ocr-model-field select,.ocr-latex-editor textarea{width:100%;outline:none}.ocr-model-field select{height:36px;padding:0 10px}.ocr-model-field select:focus,.ocr-latex-editor textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 10%,transparent)}.ocr-model-field small{color:var(--text-faint);line-height:1.45}.ocr-model-warning{display:flex;align-items:flex-start;gap:7px;margin-top:9px;padding:9px 10px;border:1px solid color-mix(in srgb,var(--danger) 34%,var(--border));background:color-mix(in srgb,var(--danger) 8%,transparent);color:var(--text-muted);line-height:1.5}.ocr-model-warning svg{flex:0 0 auto;margin-top:1px;color:var(--danger)}.ocr-runtime-card,.ocr-result-card{border:1px solid var(--border)}.ocr-runtime-summary{align-items:flex-start;gap:9px}.ocr-runtime-summary>div{min-width:0;display:flex;flex-direction:column;gap:3px}.ocr-runtime-summary span{color:var(--text-faint);line-height:1.45}.ocr-runtime-icon{width:29px;height:29px;display:grid;flex:0 0 auto;place-items:center;background:color-mix(in srgb,var(--text-faint) 12%,transparent);color:var(--text-muted)}.ocr-runtime-icon.is-ready{background:color-mix(in srgb,var(--success) 14%,transparent);color:var(--success)}.ocr-runtime-details{flex-wrap:wrap;gap:6px;margin-top:10px;padding-top:10px;border-top:1px solid var(--border)}.ocr-runtime-details>span{padding:4px 7px;border:1px solid var(--border);background:var(--surface);color:var(--text-faint);font-family:JetBrains Mono,monospace}.ocr-runtime-details button{height:24px;padding:0 8px}.ocr-runtime-details button.is-danger:hover,.secondary-button.is-danger:hover{border-color:color-mix(in srgb,var(--danger) 36%,var(--border));color:var(--danger)}.ocr-install-panel{margin-top:10px;padding-top:10px;border-top:1px solid var(--border)}.ocr-install-panel p{margin:0 0 9px;color:var(--text-faint);line-height:1.55}.ocr-install-panel .primary-button{margin:0}.ocr-progress-label{justify-content:space-between;gap:10px;color:var(--text-muted)}.ocr-progress-track{height:6px;margin-top:7px;overflow:hidden;border-radius:999px;background:var(--border)}.ocr-progress-track span{height:100%;display:block;border-radius:inherit;background:var(--accent);transition:width .2s ease}.ocr-install-panel small{display:block;margin-top:6px;color:var(--text-faint)}.ocr-storage-location{display:grid;gap:7px;margin-top:10px;padding:9px;border:1px solid var(--border);border-radius:9px;background:color-mix(in srgb,var(--surface) 82%,transparent)}.ocr-storage-location.is-low-space{border-color:color-mix(in srgb,var(--warning) 52%,var(--border));background:color-mix(in srgb,var(--warning) 8%,var(--surface))}.ocr-storage-location-main{min-width:0;display:flex;align-items:flex-start;gap:7px}.ocr-storage-location-main>svg{flex:0 0 auto;margin-top:1px;color:var(--accent)}.ocr-storage-location-main>div{min-width:0;display:grid;gap:3px}.ocr-storage-location-main span{color:var(--text-muted);font-size:8px;font-weight:700}.ocr-storage-location-main code{min-width:0;overflow:hidden;color:var(--text);font-family:JetBrains Mono,monospace;font-size:7px;line-height:1.45;text-overflow:ellipsis;white-space:nowrap}.ocr-storage-location-meta{display:flex;flex-wrap:wrap;gap:5px}.ocr-storage-location-meta span{padding:3px 6px;border-radius:999px;background:var(--surface);color:var(--text-faint);font-size:7px}.ocr-storage-space-warning{color:var(--warning-text, var(--warning));font-size:7px;line-height:1.45}.ocr-storage-location-actions{display:flex;flex-wrap:wrap;gap:5px}.ocr-storage-location-actions button{min-height:25px;padding:0 8px}.ocr-progress-label.is-failed{color:var(--danger)}.ocr-progress-track.is-failed span{background:var(--danger)}.ocr-install-error{max-height:112px;margin:8px 0 0;padding:8px;overflow:auto;border:1px solid color-mix(in srgb,var(--danger) 32%,var(--border));border-radius:7px;background:color-mix(in srgb,var(--danger) 6%,var(--surface));color:var(--danger);white-space:pre-wrap;overflow-wrap:anywhere;font-family:JetBrains Mono,monospace;font-size:7px;line-height:1.5}.ocr-result-card{min-height:280px;display:flex;flex:1;flex-direction:column;overflow:hidden;background:var(--surface)}.ocr-result-heading{min-height:52px;justify-content:space-between;gap:10px;padding:10px 12px;border-bottom:1px solid var(--border)}.ocr-result-heading>div{display:flex;flex-direction:column;gap:2px}.ocr-result-heading>span{color:var(--text-faint);font-family:JetBrains Mono,monospace}.ocr-empty-result,.ocr-recognizing-state{min-height:220px;display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:24px;color:var(--text-faint);text-align:center}.ocr-empty-result span,.ocr-recognizing-state span{max-width:320px;line-height:1.5}.ocr-recognizing-state strong{color:var(--text);font-size:10px}.ocr-recognizing-state svg,.ocr-empty-result svg{color:var(--accent)}.ocr-formula-preview{min-height:110px;display:grid;place-items:center;padding:18px;overflow:auto;border-bottom:1px solid var(--border);background:var(--bg-elevated)}.ocr-formula-preview .math-preview{min-width:min-content;overflow:visible;font-size:30px}.ocr-latex-editor{flex:1;padding:11px 12px 12px}.ocr-latex-editor textarea{min-height:92px;flex:1;resize:vertical;padding:9px 10px;font-family:JetBrains Mono,SFMono-Regular,Consolas,monospace;line-height:1.55}.ocr-error-box{display:flex;align-items:flex-start;gap:8px;max-height:120px;overflow:auto;padding:9px 10px;border:1px solid color-mix(in srgb,var(--danger) 30%,var(--border));background:color-mix(in srgb,var(--danger) 7%,var(--surface));color:var(--danger)}.ocr-error-box svg{flex:0 0 auto}.ocr-error-box pre{margin:0;white-space:pre-wrap;word-break:break-word;font-family:JetBrains Mono,monospace;line-height:1.5}.ocr-dialog-footer{gap:12px}.ocr-dialog-footer>.secondary-button,.ocr-result-actions .secondary-button,.ocr-result-actions .primary-button{margin:0}.ocr-result-actions{justify-content:flex-end;gap:7px}.is-spinning{animation:spin .85s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@keyframes toolbar-open{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}@keyframes menu-in{0%{opacity:0;transform:translateY(-5px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes candidate-in{0%{opacity:0;transform:translateY(-5px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes dialog-in{0%{opacity:0;transform:translate3d(-50%,calc(-50% + 12px),0) scale(.98)}to{opacity:1;transform:translate3d(-50%,-50%,0) scale(1)}}@keyframes toast-in{0%{opacity:0;transform:translate(-50%,8px)}to{opacity:1;transform:translate(-50%)}}@media(max-width:1080px){.app-header{grid-template-columns:minmax(190px,1fr) minmax(120px,auto) minmax(420px,1fr);padding:0 12px;gap:8px}.save-state{display:none}.header-actions{gap:2px}.workspace{padding-right:18px;padding-left:18px}}@media(max-width:900px){.copy-primary{padding:0 10px}.template-button{min-width:76px;height:70px}.workspace-heading{align-items:flex-start;gap:10px}.canvas-ocr-model>span{display:none}.editor-surface{padding-right:26px;padding-left:26px}.inline-ocr-progress{top:8px;right:8px;max-width:calc(100% - 16px)}}.app-shell{grid-template-rows:52px minmax(0,1fr) 24px;background:var(--bg)}.app-header{z-index:80;grid-template-columns:minmax(220px,1fr) minmax(150px,auto) minmax(440px,1fr);gap:12px;min-height:52px;padding:0 12px;border-bottom-color:var(--border);box-shadow:none}.brand-area{gap:6px}.menu-button,.icon-button{width:var(--control-height);height:var(--control-height);transition:background .15s ease,color .15s ease,border-color .15s ease}.menu-button:active,.icon-button:active,.copy-primary:active,.template-button:active{transform:none}.icon-button.compact,.icon-button.small{width:28px;height:28px;border-radius:6px}.document-title-area{gap:8px}.document-title-area input{width:min(220px,23vw);height:30px;padding:0 9px;font-size:13px;font-weight:550}.save-state{font-size:11px}.header-actions{gap:6px;flex-wrap:nowrap}.file-actions{gap:4px;margin-left:0;margin-right:4px;padding:0;border:0;background:transparent}.export-format-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.export-format-options>button{min-width:0;min-height:84px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:9px 6px;border:1px solid var(--border);border-radius:9px;background:var(--bg-elevated);color:var(--text-muted);cursor:pointer}.export-format-options>button:hover:not(:disabled){border-color:var(--accent-border);background:var(--accent-soft);color:var(--accent)}.export-format-options>button:disabled{opacity:.55;cursor:default}.export-format-options>button>span{min-width:0;display:flex;flex-direction:column;align-items:center;gap:1px}.export-format-options strong{color:inherit;font-size:14px;font-weight:750}.export-format-options small{color:var(--text-faint);font-size:12px}.export-path-section{margin-top:10px;padding-top:10px;border-top:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:10px}.action-group{gap:1px;margin-right:3px;padding-right:4px}.header-actions .file-actions{gap:4px;margin-left:0;margin-right:4px;padding:0;border:0;background:transparent}.copy-control{margin-left:3px}.copy-primary{height:30px}.copy-primary{padding:0 11px;border-radius:7px;font-size:12px;font-weight:600}.copy-primary:has(+.copy-chevron){border-radius:7px 0 0 7px}.copy-menu strong,.copy-menu small{font-size:11px}.workspace{position:relative;min-width:0;min-height:0;display:grid;grid-template-columns:minmax(0,1fr);padding:0;overflow:hidden;background:var(--bg)}.workspace.has-sidebar{grid-template-columns:252px minmax(0,1fr)}.formula-toolbar{z-index:20;min-width:0;min-height:0;display:grid;grid-template-rows:var(--panel-header-height) auto minmax(0,1fr);border:0;border-right:1px solid var(--border);user-select:none}.formula-toolbar-header,.pane-header{min-width:0;height:var(--panel-header-height);display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 12px;border-bottom:1px solid var(--border)}.formula-toolbar-header>div{min-width:0;display:flex;flex-direction:column;gap:2px}.formula-toolbar-header>.formula-toolbar-actions{flex:0 0 auto;flex-direction:row;align-items:center;gap:4px}.formula-toolbar-actions .icon-button.is-active{color:var(--accent);background:var(--accent-soft)}.formula-toolbar-header strong,.pane-title-group strong{margin:0;color:var(--text);font-size:13px;font-weight:650;line-height:17px;letter-spacing:-.1px}.toolbar-tabs{display:grid;align-items:stretch;overflow:visible;border-bottom:1px solid var(--border)}.toolbar-tab{padding:0 5px;font-weight:500}.toolbar-tab:after{display:none}.toolbar-tab.is-active{border-color:var(--accent-border);font-weight:600}.formula-library-heading{display:flex;align-items:center;justify-content:space-between;padding:0 10px;color:var(--text-faint);font-size:11px}.formula-library-heading span:last-child{min-width:20px;height:18px;display:grid;place-items:center;border-radius:9px;background:var(--surface-sunken);font-family:SFMono-Regular,Consolas,monospace;font-size:10px}.template-strip{min-width:0;min-height:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-content:start;gap:3px;overflow-x:hidden;overflow-y:auto;background:transparent;animation:none}.template-button{height:54px;min-height:54px;padding:4px 2px;border:1px solid transparent;border-radius:6px;background:transparent;box-shadow:none}.template-button:hover{border-color:var(--accent-border);background:var(--accent-soft);box-shadow:none}.template-button .math-preview{font-size:24px}.formula-toolbar-footer{display:flex;align-items:center;padding:0 10px;border-top:1px solid var(--border);color:var(--text-faint);font-size:10px}.formula-workspace.editor-pane{width:auto;min-width:0;min-height:0;margin:0;display:grid;grid-template-rows:var(--panel-header-height) minmax(0,1fr);border-right:1px solid var(--border);background:var(--surface)}.formula-workspace.editor-pane>.workspace-heading{position:relative;z-index:80;overflow:visible}.workspace-heading{margin:0;align-items:center}.pane-title-group{min-width:0;display:flex;align-items:center;gap:8px}.formula-alignment-controls{display:flex;flex:0 0 auto;align-items:center;gap:2px;margin-left:4px;padding-left:8px;border-left:1px solid var(--border)}.workspace:not(.is-office-workspace) .editor-pane-header .formula-alignment-controls{margin-left:0;padding-left:0;border-left:0}.formula-alignment-button{color:var(--text-muted)}.formula-alignment-button.is-active{background:var(--accent-soft);color:var(--accent)}.pane-title-group>div>span{overflow:hidden;color:var(--text-faint);font-size:11px;line-height:14px;text-overflow:ellipsis;white-space:nowrap}.editor-pane-body{--editor-pane-inset: 14px;--source-pane-gap: 16px;--source-pane-height: clamp(172px, 32vh, 300px);min-width:0;min-height:0;display:grid;grid-template-rows:minmax(0,1fr) 36px;overflow:hidden;background:var(--bg-elevated)}.editor-pane-body.has-source{grid-template-rows:minmax(0,1fr) var(--source-pane-height)}.editor-pane-scroll{min-width:0;min-height:0;display:flex;flex-direction:column;overflow:auto;overflow-anchor:none;overscroll-behavior:contain;scrollbar-width:none}.editor-pane-scroll::-webkit-scrollbar{width:0;height:0}.editor-pane-scroll>.editor-surface{width:100%;flex:1 0 auto;min-height:max(320px,calc(100% - var(--editor-pane-inset)))}.canvas-tool-group{min-width:0;gap:6px}.quick-ocr-button,.silent-ocr-toggle{box-shadow:none}.canvas-ocr-model{height:30px;padding:0 2px 0 8px;box-shadow:none}.canvas-ocr-model>span{font-size:10px}.canvas-ocr-model select{width:138px;height:28px;font-size:11px}.canvas-controls{height:30px;gap:1px;padding:0;border-radius:7px;background:var(--surface)}.canvas-controls>span{min-width:40px;font-size:11px;font-variant-numeric:tabular-nums}.editor-surface{min-height:clamp(420px,58vh,680px);box-shadow:none}.formula-line-number{font-family:SFMono-Regular,Consolas,monospace}.source-pane-slot{min-width:0;min-height:0;padding:var(--source-pane-gap) var(--editor-pane-inset) var(--editor-pane-inset);overflow:hidden;background:var(--bg-elevated)}.source-panel{height:100%;min-height:0;display:grid;grid-template-rows:38px minmax(0,1fr);background:var(--surface);box-shadow:none}.source-panel-header{height:38px;min-height:0;background:var(--bg-elevated)}.source-title,.text-button,.primary-small-button{font-size:11px}.source-copy-button,.source-collapse-button{width:28px;padding:0}.source-panel .codemirror-host{width:100%;height:100%;min-height:0;max-height:none;overflow:hidden}.source-panel .cm-editor{height:100%;min-height:0}.source-panel .cm-scroller{overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.source-panel.is-compact{grid-template-rows:minmax(0,1fr);border-radius:0}.source-panel.is-compact.has-dirty-actions{grid-template-rows:34px minmax(0,1fr)}.source-panel.is-compact .source-panel-header{height:34px;justify-content:flex-end;padding-inline:8px}.inline-ocr-progress strong,.inline-ocr-progress>div>span,.inline-ocr-cancel,.inline-ocr-dismiss{font-size:10px}.status-bar{min-height:24px;padding:0 10px;background:color-mix(in srgb,var(--surface) 88%,var(--accent-soft))}.status-bar>div{gap:6px}.status-live-dot{width:6px;height:6px}.eyebrow{margin-bottom:3px;font-size:10px;letter-spacing:.8px}.workspace-heading h1,.dialog-header h2,.history-header h2{font-size:16px}.settings-section-title h3,.ocr-drop-empty strong{font-size:13px}.settings-section-title p,.switch-row strong,.range-setting strong,.theme-segment button,.secondary-button,.primary-button,.dialog-footer,.ocr-model-field>span,.ocr-latex-editor>span,.ocr-model-field select,.ocr-runtime-summary strong,.ocr-result-heading strong{font-size:12px}.switch-row small,.range-setting small,.ocr-drop-empty>span:not(.ocr-drop-icon),.ocr-drop-empty small,.ocr-file-meta,.ocr-model-field small,.ocr-model-warning,.ocr-runtime-summary span,.ocr-runtime-details>span,.ocr-install-panel p,.ocr-progress-label,.ocr-install-panel small,.ocr-result-heading>span,.ocr-empty-result span,.ocr-recognizing-state span,.ocr-latex-editor textarea,.ocr-error-box pre{font-size:11px}.history-panel{width:min(380px,92vw)}.history-item{box-shadow:none}.toast{min-height:34px;font-size:12px}@media(max-width:1180px){.save-state{display:none}.app-header{grid-template-columns:minmax(175px,1fr) minmax(130px,auto) minmax(410px,1fr);gap:7px}.copy-primary{padding:0 9px}.silent-ocr-toggle kbd{display:none}}@media(max-width:1040px){.app-header{grid-template-columns:minmax(150px,1fr) minmax(120px,auto) minmax(330px,1fr)}.workspace.has-sidebar{grid-template-columns:minmax(0,1fr)}.workspace.is-standard-layout.has-sidebar>.formula-toolbar{position:absolute;inset:0 auto 0 0;width:240px;box-shadow:10px 0 28px #14182229}.canvas-ocr-model>span{display:none}.quick-ocr-button{width:30px;padding:0}.quick-ocr-button>span,.silent-ocr-toggle>span:not(.silent-ocr-indicator){display:none}.silent-ocr-toggle{width:30px;padding:0}}@media(max-width:900px){.app-shell{grid-template-rows:52px minmax(0,1fr) 24px}.app-header{grid-template-columns:minmax(112px,1fr) minmax(110px,auto) auto;padding:0 8px}.document-title-area input{width:130px}.canvas-ocr-model select{width:116px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.office-first-run-backdrop{position:fixed;inset:0;z-index:var(--z-modal);display:grid;place-items:center;padding:24px;background:var(--bg-scrim);backdrop-filter:blur(9px);animation:fade-in .16s ease-out}.office-first-run-dialog{width:min(620px,calc(100vw - 48px));display:grid;gap:20px;padding:24px;border:1px solid var(--border-strong);border-radius:14px;background:var(--surface);box-shadow:var(--shadow-lg);animation:office-first-run-in .19s cubic-bezier(.2,.75,.25,1)}.office-first-run-dialog>header{display:flex;align-items:flex-start;gap:13px}.office-first-run-dialog>header>span{width:40px;height:40px;flex:0 0 auto;display:grid;place-items:center;border:1px solid var(--accent-border);border-radius:10px;background:var(--accent-soft);color:var(--accent)}.office-first-run-dialog>header div{min-width:0}.office-first-run-dialog>header strong{display:block;color:var(--text);font-size:18px;line-height:1.3}.office-first-run-dialog>header p{margin:6px 0 0;color:var(--text-muted);font-size:12px;line-height:1.55}.office-first-run-hosts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.office-first-run-hosts article{min-width:0;min-height:72px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;padding:12px;border:1px solid var(--border);border-radius:9px;background:var(--bg-elevated);color:var(--text-faint)}.office-first-run-hosts article.is-loaded{border-color:var(--accent-border);background:color-mix(in srgb,var(--accent-soft) 45%,var(--surface));color:var(--accent)}.office-first-run-hosts article.is-files-ready{border-color:color-mix(in srgb,var(--warning-text, #a85d00) 38%,var(--border));background:color-mix(in srgb,var(--warning-text, #a85d00) 7%,var(--surface));color:var(--warning-text, #a85d00)}.office-first-run-hosts article div{min-width:0;display:flex;flex-direction:column;gap:3px}.office-first-run-hosts strong{overflow:hidden;color:var(--text);font-size:12px;text-overflow:ellipsis;white-space:nowrap}.office-first-run-hosts small{color:var(--text-faint);font-size:10px}.office-first-run-note{padding:13px 14px;border:1px solid var(--border);border-radius:9px;background:var(--bg-elevated)}.office-first-run-note p{margin:0;color:var(--text-muted);font-size:11px;line-height:1.6}.office-first-run-note p+p{margin-top:8px}.office-first-run-note .is-warning{color:var(--warning-text, #a85d00)}.office-first-run-note .is-success{color:var(--success, #238636)}.office-first-run-note.is-important{border-color:color-mix(in srgb,var(--warning-text, #a85d00) 38%,var(--border));background:color-mix(in srgb,var(--warning-text, #a85d00) 6%,var(--surface))}.office-first-run-note.is-important p{color:var(--warning-text, #8a5200);font-weight:600}.office-first-run-dialog>footer{display:flex;justify-content:flex-end;gap:8px}.office-first-run-dialog>footer .primary-button,.office-first-run-dialog>footer .secondary-button{margin:0}.office-first-run-dialog.is-native-office{width:min(760px,calc(100vw - 48px));max-height:calc(100vh - 48px);overflow:auto}.office-first-run-powerpoint-guide,.native-powerpoint-settings-guide{display:grid;gap:14px;padding:14px;border:1px solid var(--border);border-radius:11px;background:var(--bg-elevated)}.native-powerpoint-settings-guide.is-required{border-color:var(--accent-border);background:color-mix(in srgb,var(--accent-soft) 34%,var(--surface))}.office-first-run-guide-actions{display:flex;flex-wrap:wrap;gap:8px}.powerpoint-native-guide{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(240px,.85fr);gap:12px;align-items:stretch}.powerpoint-native-guide.is-compact{grid-template-columns:minmax(0,1fr) minmax(210px,.82fr)}.powerpoint-native-app,.powerpoint-addins-dialog-mock{position:relative;min-width:0;overflow:hidden;border:1px solid var(--border-strong);border-radius:9px;background:var(--bg-elevated);color:var(--text);box-shadow:var(--shadow-md)}.powerpoint-native-titlebar{height:34px;display:flex;align-items:center;justify-content:center;border-bottom:1px solid var(--border);background:linear-gradient(var(--surface),var(--bg-elevated));font-size:11px}.powerpoint-window-controls{position:absolute;left:11px;display:flex;gap:6px}.powerpoint-window-controls i{width:10px;height:10px;border:1px solid rgba(0,0,0,.16);border-radius:50%;background:#ff5f57}.powerpoint-window-controls i:nth-child(2){background:#febc2e}.powerpoint-window-controls i:nth-child(3){background:#28c840}.powerpoint-native-menubar{height:32px;display:flex;align-items:center;gap:18px;padding:0 14px;border-bottom:1px solid var(--border);background:var(--surface);font-size:10px;white-space:nowrap}.powerpoint-native-menubar .is-active{padding:5px 8px;border-radius:5px;background:var(--accent-soft);color:var(--accent);font-weight:700}.powerpoint-native-tools-menu{width:min(220px,calc(100% - 28px));margin:7px 0 46px 126px;display:grid;padding:5px;border:1px solid var(--border-strong);border-radius:7px;background:color-mix(in srgb,var(--surface) 98%,transparent);box-shadow:var(--shadow-md);font-size:10px}.powerpoint-native-tools-menu span{padding:6px 9px;border-radius:4px}.powerpoint-native-tools-menu .is-highlighted{background:var(--accent);color:var(--primary-foreground);font-weight:700}.powerpoint-addins-dialog-mock{display:grid;grid-template-rows:36px minmax(112px,1fr) 42px;background:var(--bg-elevated)}.powerpoint-addins-dialog-mock>header{display:grid;place-items:center;border-bottom:1px solid var(--border);background:linear-gradient(var(--surface),var(--bg-elevated));font-size:11px}.powerpoint-addins-list{margin:14px;padding:6px;border:1px solid var(--border-strong);border-radius:4px;background:var(--surface)}.powerpoint-addins-list>span{display:flex;align-items:center;gap:8px;padding:7px 8px;border-radius:4px;font-size:10px}.powerpoint-addins-list>span.is-selected{background:var(--accent-soft)}.powerpoint-addins-list.is-empty{display:grid;place-items:center;border-style:dashed;background:var(--bg-elevated)}.powerpoint-addins-empty-copy{display:grid!important;justify-items:center;gap:4px!important;text-align:center;color:var(--text-muted)}.powerpoint-addins-empty-copy small{color:var(--warning);font-size:9px}.powerpoint-addins-list i{width:16px;height:16px;display:grid;place-items:center;border:1px solid var(--border-strong);border-radius:3px;background:var(--surface);color:var(--accent)}.powerpoint-addins-controls{display:flex;align-items:center;gap:6px;padding:7px 12px;border-top:1px solid var(--border)}.powerpoint-addins-controls>span{width:25px;height:23px;display:grid;place-items:center;padding:0;border:1px solid var(--border-strong);border-radius:4px;background:linear-gradient(var(--surface),var(--bg-elevated));color:var(--text);pointer-events:none}.powerpoint-addins-controls>span.is-next-action{border-color:var(--accent);background:var(--accent);color:var(--primary-foreground);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 16%,transparent)}.powerpoint-addins-controls small{margin-left:auto;color:var(--text-muted);font-size:9px}.powerpoint-guide-steps{grid-column:1 / -1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.powerpoint-guide-steps>span{min-width:0;display:flex;align-items:center;gap:6px;padding:8px 9px;border:1px solid var(--border);border-radius:7px;background:var(--surface);color:var(--text-muted);font-size:10px;line-height:1.45}.powerpoint-guide-steps b{width:18px;height:18px;flex:0 0 auto;display:grid;place-items:center;border-radius:50%;background:var(--accent);color:var(--primary-foreground);font-size:9px}.powerpoint-guide-steps .powerpoint-guide-path{grid-column:1 / -1;overflow:hidden;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;text-overflow:ellipsis;white-space:nowrap}.native-office-status-grid .office-status-card header strong{display:inline-flex;align-items:center;gap:7px}@keyframes office-first-run-in{0%{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}@media(max-width:720px),(max-height:560px){.office-first-run-dialog{width:calc(100vw - 24px);max-height:calc(100vh - 24px);overflow-y:auto;padding:18px}.office-first-run-hosts,.powerpoint-native-guide,.powerpoint-native-guide.is-compact,.powerpoint-guide-steps{grid-template-columns:1fr}.powerpoint-guide-steps .powerpoint-guide-path{grid-column:1}.powerpoint-native-tools-menu{margin-left:18px}}body{font-size:13px;line-height:1.45;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}button,input,select,textarea{letter-spacing:0}button:disabled,input:disabled,select:disabled,textarea:disabled{cursor:default!important;opacity:.46}.icon-button svg,.menu-button svg,.copy-primary svg,.text-button svg,.primary-button svg,.secondary-button svg{flex:0 0 auto;stroke-width:1.8}.app-header{background:color-mix(in srgb,var(--surface) 97%,var(--bg));backdrop-filter:none}.menu-button,.icon-button{border-radius:6px;color:var(--text-muted)}.menu-button:hover,.icon-button:hover{border-color:transparent;background:var(--surface-hover);color:var(--text)}.menu-button:active,.icon-button:active,.template-button:active,.text-button:active,.secondary-button:active{background:var(--surface-active);color:var(--text)}.menu-button.is-active,.icon-button.is-active,.sidebar-toggle.is-active{border-color:transparent;background:var(--accent-soft);color:var(--accent)}.formula-toolbar-header strong,.dialog-header h2,.history-header h2{font-weight:650;letter-spacing:-.15px}.document-title-area input,.canvas-ocr-model,.canvas-ocr-model select,.ocr-model-field select,.ocr-latex-editor textarea{border:1px solid var(--border);border-radius:6px;background:var(--surface);color:var(--text)}.document-title-area input:hover,.canvas-ocr-model:hover,.canvas-ocr-model select:hover,.ocr-model-field select:hover,.ocr-latex-editor textarea:hover{border-color:var(--border-strong);background:var(--surface)}.document-title-area input:focus-visible,.canvas-ocr-model select:focus-visible,.ocr-model-field select:focus-visible,.ocr-latex-editor textarea:focus-visible{border-color:var(--focus-ring);outline:none;box-shadow:0 0 0 2px color-mix(in srgb,var(--focus-ring) 22%,transparent)}.save-state{color:var(--success)}.copy-primary,.primary-button,.primary-small-button{border-color:transparent;background:var(--accent);color:var(--primary-foreground)}.copy-primary:hover,.primary-button:hover,.primary-small-button:hover{background:var(--accent-hover);color:var(--primary-foreground)}.copy-primary:active,.primary-button:active,.primary-small-button:active{background:var(--accent-active)}.copy-primary:focus-visible,.primary-button:focus-visible,.primary-small-button:focus-visible{outline-color:var(--focus-ring);outline-offset:2px}.copy-menu,.app-menu-popover{border-color:var(--border-strong);border-radius:8px;background:var(--surface);box-shadow:var(--shadow-md);backdrop-filter:none}.copy-menu,.app-menu-popover{padding:6px}.copy-menu-label,.app-menu-heading span{color:var(--text-faint);font-size:11px;font-weight:500;letter-spacing:0;text-transform:none}.copy-menu button,.app-menu-popover>button{min-height:34px;border-radius:5px;color:var(--text-muted);font-size:12px}.copy-menu button:hover,.copy-menu button:focus-visible,.app-menu-popover>button:hover,.app-menu-popover>button:focus-visible{background:var(--surface-hover);color:var(--text)}.copy-menu small,.app-menu-popover>button kbd{color:var(--text-faint);font-family:SFMono-Regular,Menlo,Consolas,monospace;font-size:10px}.app-menu-language>span,.app-menu-language button{font-size:11px}.app-menu-language>div,.theme-segment{border-radius:7px;background:var(--surface-sunken)}.theme-segment{display:flex;align-items:center}.app-menu-language button.is-active,.theme-segment button.is-active{background:var(--surface);color:var(--accent);box-shadow:var(--shadow-sm)}.formula-toolbar{background:var(--bg-elevated)}.formula-toolbar-header,.pane-header{padding-inline:14px;background:var(--surface)}.toolbar-tabs{grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;padding:6px 7px 7px}.toolbar-tab{min-width:0;height:31px;justify-content:center;gap:4px;padding-inline:5px;border:0;border-radius:5px;color:var(--text-muted);font-size:11px;text-align:center;white-space:nowrap}.toolbar-tab svg{width:14px;height:14px;flex:0 0 auto}.toolbar-tab:hover{background:var(--surface-hover);color:var(--text)}.toolbar-tab.is-active{border:0;background:var(--accent-soft);color:var(--accent);box-shadow:inset 2px 0 0 var(--accent)}.editor-pane-scroll{padding:var(--editor-pane-inset) var(--editor-pane-inset) 0;background:var(--bg-elevated)}.editor-surface{justify-content:flex-start;padding:12px 34px 26px;border:1px solid var(--border);border-radius:7px;background:var(--formula-surface)}.editor-surface:focus-within{border-color:var(--border-strong);box-shadow:0 0 0 2px color-mix(in srgb,var(--focus-ring) 14%,transparent)}.workspace.is-source-editor-focused .formula-line,.workspace.is-source-editor-focused .formula-line:hover,.workspace.is-source-editor-focused .formula-line.is-active,.workspace.is-source-editor-focused .formula-line.is-multi-line-selected,.workspace.is-source-editor-focused .formula-line.is-multi-line-selected.is-active{background:transparent!important;box-shadow:none!important;outline:0!important}.multi-line-editor.is-source-preview-only{cursor:default}:root.visualtex-source-editor-focused #mathlive-suggestion-popover{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important}.formula-line-number{width:27px;height:20px;border-radius:4px;background:var(--bg-elevated);font-size:10px;font-weight:600}.source-panel{border-color:var(--border);border-radius:7px}.status-bar{color:var(--text-faint);font-size:11px}.modal-backdrop,.panel-backdrop{background:var(--bg-scrim);backdrop-filter:blur(3px)}.settings-dialog,.ocr-dialog{border-color:var(--border-strong);border-radius:10px;box-shadow:var(--shadow-lg)}.dialog-header,.history-header{min-height:56px;padding:13px 16px}.eyebrow{display:none}.dialog-header h2,.history-header h2{font-size:16px;line-height:22px}.settings-section+.settings-section{margin-top:16px;padding-top:16px}.settings-section-title{gap:9px;margin-bottom:8px;color:var(--text-muted)}.settings-section-title h3{font-size:13px;font-weight:600}.settings-section-title p,.switch-row small,.range-setting small{color:var(--text-faint);font-size:11px}.switch-row,.range-setting{min-height:50px;padding:8px 4px;border:0;border-radius:0;background:transparent}.range-setting{margin-top:0;border-top:1px solid var(--border)}.switch-row strong,.range-setting strong,.theme-segment button,.primary-button,.secondary-button{font-size:12px}.switch-row input:focus-visible+.switch-control{outline:2px solid var(--focus-ring);outline-offset:2px}.switch-control{background:var(--border-strong)}.theme-segment{padding:3px;border-color:var(--border)}.theme-segment button,.primary-button,.secondary-button{min-height:32px;border-radius:6px}.history-panel{box-shadow:-10px 0 28px #0a0d112e}.history-list{padding:6px 10px}.history-item{min-height:76px;margin:0;padding:10px 4px;border:0;border-bottom:1px solid var(--border);border-radius:0;background:transparent}.history-item:hover,.history-item:focus-visible{border-color:var(--border);background:var(--surface-hover)}.history-formula-stack small,.history-item>span:last-child{font-size:11px}.ocr-heading-icon,.ocr-drop-icon,.ocr-runtime-icon{border-radius:7px;box-shadow:none}.ocr-drop-zone{border-radius:8px;background:var(--bg-elevated)}.ocr-runtime-card{padding:11px 0;border:0;border-bottom:1px solid var(--border);border-radius:0;background:transparent}.ocr-result-card{border-radius:8px}.ocr-model-warning,.ocr-error-box{border-radius:6px}.ocr-runtime-details>span{border-radius:4px;font-size:10px}.toast{border-radius:7px;box-shadow:var(--shadow-md)}@media(max-width:1040px){.formula-toolbar{box-shadow:8px 0 24px #0a0d112e}}@media(max-width:900px){.app-header{gap:5px}.editor-pane-body{--editor-pane-inset: 10px}.editor-surface{padding:9px 22px 22px}.multi-line-editor.has-line-numbers .formula-line{grid-template-columns:40px minmax(0,1fr)}}@media(max-width:720px){.app-header{grid-template-columns:auto minmax(92px,1fr) auto;padding-inline:6px}.document-title-area input{width:min(150px,30vw);padding-inline:7px;font-size:12px}.copy-primary{width:31px;padding:0;font-size:0}.copy-primary svg{display:block}.canvas-ocr-model{display:none}.formula-toolbar{width:min(252px,calc(100vw - 44px))}.editor-pane-body{--editor-pane-inset: 7px}.editor-surface{min-height:380px;padding:7px 12px 18px}.multi-line-editor.has-line-numbers .formula-line{grid-template-columns:34px minmax(0,1fr)}.settings-dialog,.ocr-dialog{width:calc(100vw - 16px);max-height:calc(100vh - 16px)}.ocr-dialog-body{grid-template-columns:minmax(0,1fr);padding:14px}.ocr-provider-fields{grid-template-columns:minmax(0,1fr)}.ocr-provider-field,.ocr-provider-field.is-wide,.ocr-provider-clear-secret{grid-column:1}.ocr-provider-actions{align-items:stretch;flex-direction:column}.ocr-provider-actions button{width:100%}.range-setting input[type=range]{width:min(42vw,170px)}}@media(max-width:520px){.document-title-area input{width:min(140px,38vw)}.pane-header{padding-inline:9px}.pane-title-group{gap:6px}.canvas-controls>span{min-width:34px}}@media(max-height:620px){.editor-pane-body{--source-pane-height: clamp(148px, 30vh, 220px)}.settings-dialog,.ocr-dialog{max-height:calc(100vh - 12px)}.dialog-header,.history-header{min-height:50px;padding-block:9px}}@media(max-width:720px),(max-height:520px){:root{--panel-header-height: 46px}.app-shell{grid-template-rows:48px minmax(0,1fr) 22px}.app-header{min-height:48px}.formula-toolbar-header,.pane-header{padding-inline:10px}.editor-pane-body{--editor-pane-inset: 6px;grid-template-rows:minmax(0,1fr) 32px}.editor-surface{min-height:320px;padding-block:18px}.status-bar{min-height:22px}}.update-backdrop{z-index:var(--z-modal)}.update-dialog{position:absolute;top:50%;left:50%;display:grid;grid-template-rows:auto minmax(0,1fr) auto;width:min(560px,calc(100vw - 24px));max-height:calc(100vh - 24px);overflow:hidden;border:1px solid var(--border-strong);border-radius:10px;background:var(--surface);box-shadow:var(--shadow-lg);transform:translate(-50%,-50%);animation:update-dialog-in .18s ease-out}.update-dialog-header{min-height:62px}.update-title-group{display:flex;align-items:center;min-width:0;gap:10px}.update-title-group>div{min-width:0}.update-title-group h2{margin:0 0 2px;font-size:15px;line-height:1.35}.update-title-group>div>span{display:block;color:var(--text-muted);font-size:11px}.update-dialog-icon{display:grid;flex:0 0 auto;width:34px;height:34px;place-items:center;border:1px solid var(--border);border-radius:8px;background:var(--bg-elevated);color:var(--text-secondary)}.update-dialog-icon.is-available{border-color:var(--accent-border);background:var(--accent-soft);color:var(--accent)}.update-dialog-icon.is-error{border-color:color-mix(in srgb,var(--danger) 34%,var(--border));background:color-mix(in srgb,var(--danger) 8%,var(--surface));color:var(--danger)}.update-dialog-content{overflow:auto;padding:18px}.update-dialog-content>p{margin:0 0 14px;color:var(--text-secondary);font-size:13px;line-height:1.6}.update-dialog-content code{display:block;overflow-wrap:anywhere;padding:9px 10px;border:1px solid color-mix(in srgb,var(--danger) 25%,var(--border));border-radius:6px;background:color-mix(in srgb,var(--danger) 6%,var(--surface));color:var(--danger);font-size:11px}.update-version-row{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px;margin-bottom:14px;padding:12px 14px;border:1px solid var(--border);border-radius:7px;background:var(--bg-elevated)}.update-version-row>span{display:grid;gap:2px}.update-version-row>span:last-child{text-align:right}.update-version-row small{color:var(--text-muted);font-size:10px}.update-version-row strong{color:var(--text-primary);font-size:14px;font-variant-numeric:tabular-nums}.update-version-row>svg{color:var(--text-muted)}.update-install-panel{display:grid;gap:8px;margin-bottom:14px}.update-install-note{margin:0;color:var(--text-primary);font-size:13px;line-height:1.5}.update-progress{overflow:hidden;height:6px;border-radius:3px;background:var(--bg-elevated);box-shadow:inset 0 0 0 1px var(--border)}.update-progress>span{display:block;height:100%;border-radius:inherit;background:var(--accent);transition:width .2s linear}.update-progress-text{color:var(--text-secondary);font-size:12px;font-variant-numeric:tabular-nums}.update-release-heading{display:grid;gap:3px;margin-bottom:14px}.update-release-heading strong{color:var(--text-primary);font-size:14px;line-height:1.4}.update-release-heading small{color:var(--text-muted);font-size:10px}.update-release-notes{display:grid;gap:12px}.update-release-notes section{padding:12px 13px;border:1px solid var(--border);border-radius:7px;background:var(--bg-elevated)}.update-release-notes h3{display:flex;align-items:center;gap:7px;margin:0 0 8px;color:var(--text-primary);font-size:12px;line-height:1.4}.update-release-notes h3 svg{flex:0 0 auto;color:var(--accent)}.update-release-notes ul{display:grid;gap:6px;margin:0;padding-left:18px}.update-release-notes li{color:var(--text-secondary);font-size:12px;line-height:1.55}.update-project-card{display:grid;gap:9px;margin-top:16px;padding:12px 13px;border:1px solid var(--border);border-radius:7px;background:var(--bg-elevated)}.update-project-author,.update-project-link,.update-project-card>p{display:flex;align-items:center;gap:8px}.update-project-author>span{display:grid;gap:1px}.update-project-author small{color:var(--text-muted);font-size:12px}.update-project-author strong{color:var(--text-primary);font-size:12px}.update-project-link{width:fit-content;max-width:100%;padding:0;border:0;background:transparent;color:var(--accent);font:inherit;font-size:12px;cursor:pointer}.update-project-link span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.update-project-link:hover span{text-decoration:underline}.update-project-card>p{margin:0;color:var(--text-secondary);font-size:12px;line-height:1.45}.update-project-card svg{flex:0 0 auto}.update-community-card{display:grid;gap:12px;margin-top:14px;padding:13px;border:1px solid var(--accent-border);border-radius:8px;background:color-mix(in srgb,var(--accent-soft) 42%,var(--surface))}.update-community-copy{min-width:0;display:flex;align-items:flex-start;gap:10px}.update-community-icon{width:32px;height:32px;display:grid;flex:0 0 auto;place-items:center;border-radius:8px;background:var(--accent);color:var(--primary-foreground)}.update-community-copy>div{min-width:0}.update-community-copy strong{display:block;color:var(--text-primary);font-size:12px;line-height:1.4}.update-community-copy p{color:var(--text-secondary);font-size:11px;line-height:1.55}.update-community-copy .update-community-disclaimer{margin:6px 0 5px;color:var(--text-primary);font-weight:700}.update-community-number{display:inline-flex;align-items:center;gap:4px;padding:4px 7px;border:1px solid var(--accent-border);border-radius:5px;background:var(--surface);color:var(--text-secondary);font-size:11px}.update-community-number b{color:var(--accent);font-family:SFMono-Regular,Menlo,Consolas,monospace;font-size:11px;letter-spacing:.2px}.update-community-qr-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:9px;min-width:0}.update-community-qr-card{min-width:0;display:grid;grid-template-rows:auto 1fr;gap:7px;justify-items:stretch;margin:0;padding:8px;overflow:hidden;border:1px solid var(--border);border-radius:8px;background:var(--surface)}.update-community-qr-row img{width:100%;height:142px;display:block;object-fit:contain;border-radius:6px;background:#fff}.update-community-qr-row figcaption{color:var(--text-primary);font-size:10px;font-weight:700;line-height:1.3;text-align:center}.update-preference-row{display:flex;align-items:flex-start;gap:9px;margin-top:16px;padding-top:14px;border-top:1px solid var(--border);cursor:pointer}.update-preference-row input{width:15px;height:15px;margin:2px 0 0;accent-color:var(--accent)}.update-preference-row>span{display:grid;gap:3px}.update-preference-row strong{font-size:12px}.update-preference-row small{color:var(--text-muted);font-size:11px;line-height:1.45}.update-dialog-footer{justify-content:flex-end;gap:8px}.settings-update-button{justify-self:start}@keyframes update-dialog-in{0%{opacity:0;transform:translate(-50%,calc(-50% + 7px)) scale(.985)}}@media(max-width:520px),(max-height:520px){.update-dialog{width:calc(100vw - 16px);max-height:calc(100vh - 16px)}.update-dialog-content{padding:14px}.update-community-qr-row{gap:6px}.update-community-qr-card{padding:6px}.update-community-qr-row img{height:108px}}@media(prefers-reduced-motion:reduce){.update-dialog{animation:none}.update-progress>span{transition:none}}.formula-line .visual-mathfield{padding:var(--formula-row-vertical-inset, 5px) 20px!important}.formula-line .visual-mathfield::part(container),.formula-line .visual-mathfield::part(content){min-height:0}.formula-line .visual-mathfield::part(container){display:flex;align-items:center}.multi-line-editor:not(.has-line-numbers)[data-formula-alignment=left] .visual-mathfield{padding-left:0!important}html body #mathlive-suggestion-popover{min-width:250px;max-width:min(380px,calc(var(--vtx-popover-viewport, 100vw) - 24px));overflow:hidden;border:1px solid var(--border-strong)!important;border-radius:10px!important;background:var(--surface)!important;color:var(--text)!important;box-shadow:var(--shadow-md)!important;isolation:isolate}html body #mathlive-suggestion-popover.is-animated{animation:none!important;transition:none!important}html body #mathlive-suggestion-popover.top-tip:after{border-bottom-color:var(--surface)!important}html body #mathlive-suggestion-popover.bottom-tip:after{border-top-color:var(--surface)!important}html body #mathlive-suggestion-popover ul{max-height:min(320px,var(--visualtex-suggestion-max-height, 320px));padding:6px!important;background:var(--surface);overscroll-behavior:contain}html body #mathlive-suggestion-popover li{width:100%!important;min-height:48px;align-items:center;gap:12px;margin:0!important;padding:7px 9px!important;border:1px solid transparent;border-radius:7px!important;color:var(--text);transition:none!important}html body #mathlive-suggestion-popover li+li{margin-top:3px!important}html body #mathlive-suggestion-popover li{flex:0 0 auto}html body #mathlive-suggestion-popover .ML__popover__index{flex:0 0 1.1em;align-self:center;color:var(--text-faint);font:600 12px/1 -apple-system,BlinkMacSystemFont,SF Pro Text,system-ui,sans-serif;font-variant-numeric:tabular-nums;text-align:center}html body #mathlive-suggestion-popover li.ML__popover__current .ML__popover__index{color:var(--accent)}html body #mathlive-suggestion-popover .ML__popover__latex{min-width:0;flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}html body #mathlive-suggestion-popover .ML__popover__command{flex:0 0 auto}html body #mathlive-suggestion-popover .visualtex-native-preview-unavailable{color:var(--text-faint);font:12px/1.2 -apple-system,BlinkMacSystemFont,SF Pro Text,PingFang SC,system-ui,sans-serif}html body #mathlive-suggestion-popover li:hover,html body #mathlive-suggestion-popover li.is-pressed,html body #mathlive-suggestion-popover li.is-active{border-color:var(--accent-border)!important;background:var(--accent-soft)!important;color:var(--text)!important}html body #mathlive-suggestion-popover .ML__popover__command{min-width:72px;color:var(--text);font-size:1.3rem!important}html body #mathlive-suggestion-popover li.has-visualtex-command-preview .ML__popover__command{min-width:126px;min-height:34px;display:inline-flex;align-items:center;justify-content:center;overflow:visible;padding-block:3px;font-size:1.1rem!important}html body #mathlive-suggestion-popover li.has-visualtex-command-preview .ML__popover__command>span{max-width:100%}html body #mathlive-suggestion-popover .visualtex-native-preview-placeholder{width:.72em;min-width:.72em;height:.86em;display:inline-block;overflow:hidden;border-radius:.08em;background:var(--formula-placeholder);color:transparent;line-height:0;vertical-align:-.08em}html body #mathlive-suggestion-popover li.ML__popover__current{border-color:var(--accent-border)!important;border-radius:7px!important;background:transparent!important;color:var(--text)!important;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 16%,transparent)}html body #mathlive-suggestion-popover li.ML__popover__current .ML__popover__latex{color:var(--text-muted)!important}html body #mathlive-suggestion-popover li.ML__popover__current .ML__popover__command{color:var(--text)!important}html body #mathlive-suggestion-popover .ML__popover__latex{color:var(--text-muted);font-size:12px}html body #mathlive-suggestion-popover .ML__popover__keybinding{color:var(--text-faint);opacity:1!important}:root[data-theme=light] body #mathlive-suggestion-popover,:root[data-theme=light] body #mathlive-suggestion-popover ul{background:#fff!important}:root[data-theme=light] body #mathlive-suggestion-popover li.is-active,:root[data-theme=light] body #mathlive-suggestion-popover li.is-pressed,:root[data-theme=light] body #mathlive-suggestion-popover li:hover{background:#f4f9ff!important}:root[data-theme=light] body #mathlive-suggestion-popover li.ML__popover__current{border-color:#9fc8e5!important;background:#fff!important;box-shadow:inset 0 0 0 1px #1f638e1a}.matrix-builder{grid-column:1 / -1;display:grid;grid-template-columns:minmax(108px,1fr) 116px;align-items:stretch;gap:7px;padding:8px;border:1px solid var(--border);border-radius:4px;background:var(--surface)}.matrix-builder-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.matrix-builder-heading strong{color:var(--text);font-size:12px;font-weight:650}.matrix-control-label{color:var(--text-faint);font-size:9px;font-weight:600;line-height:14px;white-space:nowrap}.matrix-size-badge{min-width:44px;height:22px;display:grid;place-items:center;padding:0 7px;border:1px solid var(--accent-border);border-radius:6px;background:var(--surface);color:var(--accent);font-family:SFMono-Regular,Menlo,Consolas,monospace;font-size:10px;font-variant-numeric:tabular-nums}.matrix-delimiter-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}.matrix-size-picker{min-width:0;display:grid;gap:4px}.matrix-delimiter-options button{min-width:0;min-height:58px;display:grid;place-items:center;gap:0;padding:2px 3px;border:1px solid var(--border);border-radius:7px;background:var(--surface);color:var(--text-muted);cursor:pointer}.matrix-delimiter-options button:hover,.matrix-delimiter-options button:focus-visible{border-color:var(--accent-border);background:var(--surface-hover)}.matrix-delimiter-options button.is-active{border-color:var(--accent-border);background:var(--accent-soft);color:var(--accent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 24%,transparent)}.matrix-delimiter-options .math-preview{min-height:48px;font-size:17px}.matrix-size-grid{width:min(100%,116px);display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;margin-inline:auto;padding:5px;border:1px solid var(--border);border-radius:7px;background:var(--surface)}.matrix-size-cell{min-width:0;aspect-ratio:1;padding:0;border:1px solid var(--border-strong);border-radius:2px;background:var(--bg-elevated);cursor:pointer;transition:background 80ms ease,border-color 80ms ease,box-shadow 80ms ease}.matrix-size-cell:hover,.matrix-size-cell:focus-visible,.matrix-size-cell.is-previewed{border-color:var(--accent-border);background:var(--accent-soft)}.matrix-size-cell.is-selected-corner{box-shadow:inset 0 0 0 1px var(--accent)}.matrix-size-cell:focus-visible{outline:2px solid var(--focus-ring);outline-offset:1px}.matrix-insert-button{width:100%;min-height:31px;border:1px solid transparent;border-radius:6px;background:var(--accent);color:var(--primary-foreground);font-size:11px;font-weight:650;cursor:pointer}.matrix-insert-button:hover,.matrix-insert-button:focus-visible{background:var(--accent-hover)}@media(max-width:900px){.formula-line .visual-mathfield{padding-inline:14px!important}}@media(max-width:720px){.formula-line .visual-mathfield{padding-inline:9px!important}}.code-format-primary{min-width:158px;justify-content:center;white-space:nowrap}.code-format-menu{width:min(420px,calc(100vw - 24px));max-height:min(720px,calc(100vh - 92px));overflow-x:hidden;overflow-y:auto;padding:8px!important;overscroll-behavior:contain;scrollbar-gutter:stable}.code-format-menu-header{position:sticky;z-index:2;top:-8px;display:grid;gap:3px;margin:-8px -8px 8px;padding:12px 14px 10px;border-bottom:1px solid var(--border);background:var(--surface)}.code-format-menu-header .copy-menu-label{padding:0;color:var(--text);font-size:12px;font-weight:700}.code-format-menu-header>small{color:var(--text-faint);font-family:inherit;font-size:10px;line-height:1.4}.code-format-menu button{min-height:42px;display:grid;grid-template-columns:minmax(0,1fr) 18px;align-items:center;gap:10px;padding:7px 10px!important;border:1px solid transparent;border-radius:7px}.code-format-menu button+button{margin-top:3px}.code-format-menu button:hover,.code-format-menu button:focus-visible{border-color:color-mix(in srgb,var(--accent-border) 58%,var(--border));background:color-mix(in srgb,var(--accent-soft) 42%,var(--surface))}.code-format-menu button.is-selected{border-color:var(--accent-border);background:color-mix(in srgb,var(--accent-soft) 62%,var(--surface));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 8%,transparent)}:root[data-theme=light] .code-format-menu button.is-selected{background:#f2f8ff}.latex-profile-menu{width:min(392px,calc(100vw - 24px));max-height:none;overflow:visible}.latex-profile-options{display:grid;gap:7px}.latex-profile-row{min-height:32px;display:grid;grid-template-columns:68px minmax(0,1fr);align-items:center;gap:8px}.latex-profile-row>span{color:var(--text-faint);font-size:10px;font-weight:650}.latex-profile-segments{min-width:0;display:flex;align-items:center;gap:3px}.code-format-menu.latex-profile-menu .latex-profile-segments>button,.code-format-menu.latex-profile-menu .latex-profile-toggle{min-height:27px;width:auto;display:inline-flex;grid-template-columns:none;align-items:center;justify-content:center;gap:5px;margin:0;padding:4px 8px!important;border:1px solid var(--border);border-radius:5px;background:transparent;color:var(--text-muted);font-family:SFMono-Regular,Menlo,Consolas,monospace;font-size:9px;font-weight:650;line-height:1;white-space:nowrap}.code-format-menu.latex-profile-menu .latex-profile-segments>button.is-selected,.code-format-menu.latex-profile-menu .latex-profile-toggle.is-selected{border-color:var(--accent-border);background:var(--accent-soft);color:var(--accent);box-shadow:none}.latex-profile-toggle{justify-self:start}.latex-profile-toggle>span{font-size:10px;font-weight:800}.latex-profile-summary{margin-top:8px;padding:7px 9px;border-top:1px solid var(--border);color:var(--text-faint);font-family:SFMono-Regular,Menlo,Consolas,monospace;font-size:9px;line-height:1.35}@media(max-width:900px){.code-format-primary{min-width:0}.code-format-primary span{display:none}}.mathfield-stack,.mathfield-host,.formula-line .mathfield-host{width:100%;max-width:none}.mathfield-stack{margin-inline:0}.ocr-modal-backdrop{-webkit-backdrop-filter:none;backdrop-filter:none;background:var(--bg-scrim)}.ocr-dialog{transform:translate3d(-50%,-50%,0);backface-visibility:hidden}@media(max-height:640px){.code-format-menu{max-height:calc(100vh - 72px)}}.office-dialog-page{min-width:0;min-height:100%;margin:0;background:var(--bg-elevated);color:var(--text)}.office-resident-editor-workspace{min-width:0;min-height:0;display:grid;grid-template-rows:minmax(0,1fr) auto;overflow:hidden}.office-display-mode-setting{display:inline-flex;align-items:center;padding:2px;border:1px solid var(--border);border-radius:8px;background:var(--bg-elevated)}.office-display-mode-setting button{min-width:48px;min-height:28px;padding:4px 10px;border:0;border-radius:6px;background:transparent;color:var(--text-muted);font:inherit;font-size:11px;cursor:pointer}.office-display-mode-setting button.is-active{background:var(--surface);color:var(--accent);box-shadow:var(--shadow-sm)}.office-font-size-setting{min-height:32px;display:inline-flex;align-items:center;gap:5px;padding:3px 8px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text-muted);font-size:12px}.office-font-size-setting select{width:152px;min-height:26px;padding:2px 22px 2px 7px;border:0;border-radius:4px;outline:none;background:var(--bg-elevated);color:var(--text);font:inherit;cursor:pointer}.office-font-size-setting select:focus{box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 24%,transparent)}.office-auto-commit-setting{display:flex;align-items:center;gap:8px;color:var(--text-muted);font-size:11px;cursor:pointer}.office-auto-commit-setting input{width:15px;height:15px;accent-color:var(--accent)}.office-dialog-action-divider{width:1px;height:22px;margin-inline:2px;background:var(--border)}.editor-pane-header.is-office-editor-header .canvas-controls{gap:0;padding:0;border-radius:7px}.office-dialog-state{min-height:100vh;display:grid;place-content:center;justify-items:center;gap:10px;padding:28px;background:var(--bg-elevated);color:var(--text-muted);text-align:center}.office-dialog-state.is-error{color:var(--danger)}.office-dialog-state p{max-width:560px;margin:0;color:var(--text-muted);line-height:1.6}@media(max-width:560px){.editor-pane-header.is-office-editor-header{gap:3px;padding-inline:4px}.editor-pane-header.is-office-editor-header .pane-title-group,.editor-pane-header.is-office-editor-header .office-inline-options,.editor-pane-header.is-office-editor-header .office-inline-actions,.editor-pane-header.is-office-editor-header .canvas-tool-group{gap:3px}.editor-pane-header.is-office-editor-header .office-font-size-setting{width:72px;min-width:72px;padding-inline:3px}.editor-pane-header.is-office-editor-header .office-font-size-setting>span{display:none}.editor-pane-header.is-office-editor-header .office-font-size-setting select{width:64px;padding-right:16px}.editor-pane-header.is-office-editor-header .canvas-controls>span{display:none}.editor-pane-header.is-office-editor-header .canvas-controls{width:56px;min-width:56px}.office-inline-actions .primary-button,.office-inline-actions .secondary-button{padding-inline:7px;font-size:10px}.office-dialog-action-divider{margin-inline:1px}}.office-integration-section{display:grid;gap:14px}.office-settings-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.office-settings-heading>div:first-child{min-width:0}.office-settings-loading,.office-settings-warning{display:flex;align-items:center;gap:9px;padding:10px 12px;border:1px solid var(--border);border-radius:8px;background:var(--bg-elevated);color:var(--text-muted);font-size:11px;line-height:1.5}.office-settings-warning{align-items:flex-start;border-color:color-mix(in srgb,var(--warning) 34%,var(--border));background:color-mix(in srgb,var(--warning) 8%,var(--surface));color:var(--text)}.office-settings-warning>svg{flex:0 0 auto;margin-top:2px;color:var(--warning)}.office-settings-warning>span{min-width:0;display:grid;gap:5px}.office-full-disk-access-help{display:grid;gap:8px;justify-items:start}.office-full-disk-access-help ol{margin:0;padding-left:18px;display:grid;gap:4px;font-size:11px;line-height:1.5}.office-full-disk-access-help button{display:inline-flex;align-items:center;gap:5px}.office-settings-warning strong{font-size:10px;line-height:1.5}.office-settings-warning details,.office-install-paths{color:var(--text-faint);font-size:9px}.office-settings-warning summary,.office-install-paths summary{width:fit-content;cursor:pointer;user-select:none}.office-settings-warning code,.office-install-paths code{display:block;margin-top:5px;padding:6px 8px;border-radius:6px;background:color-mix(in srgb,var(--surface) 78%,transparent);font-family:SFMono-Regular,Menlo,Consolas,monospace;font-size:8px;line-height:1.45;overflow-wrap:anywhere;white-space:normal}.office-status-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.office-status-card{min-width:0;display:grid;gap:8px;padding:12px;border:1px solid var(--border);border-radius:9px;background:var(--bg-elevated)}.office-platform-status-line{min-width:0;display:flex;align-items:center;gap:7px;color:var(--text-muted);font-size:10px;line-height:1.45}.office-platform-status-line>span{min-width:0;overflow-wrap:anywhere}.office-status-card header{display:flex;align-items:center;justify-content:space-between;gap:10px}.office-status-card header strong{min-width:0;display:inline-flex;align-items:center;gap:7px;color:var(--text);font-size:11px}.office-status-card>p{margin:0;color:var(--text-muted);font-size:10px;line-height:1.5}.office-status-card dl{display:grid;gap:5px;margin:0}.office-status-card dl>div{min-width:0;display:flex;align-items:baseline;justify-content:space-between;gap:12px}.office-status-card dt,.office-status-card dd{margin:0;font-size:9px;line-height:1.4}.office-status-card dt{color:var(--text-faint)}.office-status-card dd{min-width:0;overflow:hidden;color:var(--text-muted);text-align:right;text-overflow:ellipsis;white-space:nowrap}.office-state-ok{flex:0 0 auto;color:var(--success)}.office-state-warning{flex:0 0 auto;color:var(--warning)}.office-state-neutral{flex:0 0 auto;color:var(--text-faint)}.office-install-paths{margin-top:1px;border-top:1px solid var(--border);padding-top:7px}.office-package-status{grid-column:1 / -1;padding:9px 11px;border:1px solid var(--border);border-radius:8px;background:color-mix(in srgb,var(--success) 5%,var(--surface))}.office-settings-actions{display:flex;flex-wrap:wrap;gap:8px}.office-settings-actions .primary-button,.office-settings-actions .secondary-button{min-height:32px;height:auto;margin-top:0;padding:6px 10px;font-size:10px}@media(max-width:720px){.office-status-grid{grid-template-columns:minmax(0,1fr)}.office-settings-actions>button{flex:1 1 180px}}.formula-toolbar-header{justify-content:flex-start;padding:0 8px}.formula-toolbar-view-tabs{width:100%;min-width:0;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;border-bottom:1px solid var(--border)}.formula-toolbar-view-tabs button{min-width:0;height:36px;padding:0 10px;border:0;border-radius:0;background:transparent;color:var(--text-muted);font:inherit;font-size:12px;font-weight:600;cursor:pointer}.formula-toolbar-view-tabs button:hover{background:var(--surface-hover);color:var(--text)}.formula-toolbar-view-tabs button.is-active{background:transparent;color:var(--accent);box-shadow:inset 0 -2px 0 var(--accent)}.formula-tiles-panel{min-width:0;min-height:0;grid-row:2 / 4;display:grid;grid-template-rows:auto auto minmax(0,1fr);overflow:hidden;background:var(--bg-elevated)}.formula-tile-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr)) auto;gap:0;padding:0 8px;border-bottom:1px solid var(--border)}.formula-tile-tabs button{min-width:0;height:36px;border:0;border-radius:0;background:transparent;color:var(--text-muted);font:inherit;font-size:12px;font-weight:600;cursor:pointer}.formula-tile-tabs button:hover{background:var(--surface-hover);color:var(--text)}.formula-tile-tabs button.is-active{background:transparent;color:var(--accent);box-shadow:inset 0 -2px 0 var(--accent)}.formula-tile-tabs .formula-tile-collapse-button{width:32px;min-width:32px;display:grid;place-items:center;padding:0;border-left:1px solid var(--border);color:var(--text-muted)}.formula-tile-tabs .formula-tile-collapse-button:hover,.formula-tile-tabs .formula-tile-collapse-button:focus-visible{background:var(--surface-hover);color:var(--accent);outline:none}.custom-formula-tile-controls{display:grid;gap:5px;padding:8px;border-bottom:1px solid var(--border);background:var(--surface)}.save-current-formula-tile{min-height:34px;padding:7px 10px;border:1px solid var(--accent-border);border-radius:7px;background:var(--accent-soft);color:var(--accent);font:inherit;font-size:11px;font-weight:650;cursor:pointer}.save-current-formula-tile:hover:not(:disabled){background:color-mix(in srgb,var(--accent-soft) 70%,var(--accent) 10%)}.save-current-formula-tile:disabled{border-color:var(--border);background:var(--surface-sunken);color:var(--text-faint);cursor:not-allowed}.custom-formula-tile-controls span{color:var(--text-faint);font-size:9px;line-height:1.4;text-align:center}:root[data-theme=purple] .formula-tile-button.is-custom.has-custom-color,:root[data-theme=green] .formula-tile-button.is-custom.has-custom-color{border-color:color-mix(in srgb,var(--custom-tile-color) 24%,var(--tile-border));background:color-mix(in srgb,var(--custom-tile-color) 8%,var(--tile-bg))}:root[data-theme-palette] .formula-tiles-panel,:root[data-theme-palette] .formula-tile-list{background:var(--bg-raised)}:root[data-theme-palette] .formula-tile-button.is-custom.has-custom-color{border-color:color-mix(in srgb,var(--custom-tile-color) 24%,var(--tile-border));background:color-mix(in srgb,var(--custom-tile-color) 8%,var(--tile-bg))}.formula-editor-context-menu{position:fixed;z-index:var(--z-context-menu);min-width:176px;padding:4px;border:1px solid var(--border-strong);border-radius:7px;background:var(--surface);box-shadow:var(--shadow-md)}.formula-editor-context-menu button{width:100%;min-height:32px;display:flex;align-items:center;gap:8px;padding:6px 9px;border:0;border-radius:5px;background:transparent;color:var(--text);font:inherit;font-size:11px;font-weight:600;text-align:left;cursor:pointer}.formula-editor-context-menu button>svg{flex:0 0 auto;color:var(--accent)}.formula-editor-context-menu button:hover,.formula-editor-context-menu button:focus-visible{background:color-mix(in srgb,var(--accent-soft) 72%,transparent);outline:none}.formula-editor-context-menu button:disabled{opacity:.55;cursor:default}.formula-tile-context-menu{position:fixed;z-index:var(--z-context-menu);min-width:144px;padding:4px;border:1px solid var(--border-strong);border-radius:7px;background:var(--surface);box-shadow:var(--shadow-md)}.formula-tile-context-menu button{width:100%;min-height:32px;padding:6px 10px;border:0;border-radius:5px;background:transparent;color:var(--danger, #b42318);font:inherit;font-size:11px;font-weight:600;text-align:left;cursor:pointer}.formula-tile-context-menu button:hover,.formula-tile-context-menu button:focus-visible{background:color-mix(in srgb,var(--danger, #b42318) 9%,transparent);outline:none}.formula-tile-preview.math-preview[data-fluid-height=true]{width:100%;height:var(--math-preview-fluid-height, 56px);min-height:var(--math-preview-fluid-height, 56px);font-size:19px;overflow:hidden}.formula-tile-preview .visualtex-tile-placeholder{display:inline-block;box-sizing:border-box;vertical-align:-.08em;border:.05em solid color-mix(in srgb,var(--text) 84%,transparent);border-radius:0;background:transparent;color:transparent;line-height:0;opacity:.88}.formula-tile-preview .visualtex-tile-placeholder .ML__rule{visibility:hidden}.formula-tile-empty{display:grid;gap:5px;padding:24px 14px;border:1px dashed var(--border-strong);border-radius:8px;color:var(--text-muted);text-align:center}.formula-tile-empty strong{color:var(--text);font-size:12px}.formula-tile-empty span{color:var(--text-faint);font-size:10px;line-height:1.5}.formula-hotkey-modal-backdrop{z-index:var(--z-modal-nested)}.formula-hotkey-recorder-dialog,.formula-hotkey-manager-dialog{position:absolute;top:50%;left:50%;display:flex;flex-direction:column;border:1px solid var(--border);border-radius:17px;background:var(--surface);box-shadow:var(--shadow-lg);transform:translate(-50%,-50%);overflow:hidden;animation:dialog-in .17s ease-out;outline:none}.formula-hotkey-recorder-dialog{width:min(520px,calc(100vw - 36px));max-height:calc(100vh - 48px)}.formula-hotkey-manager-dialog{width:min(760px,calc(100vw - 36px));max-height:calc(100vh - 48px)}.formula-hotkey-recorder-content{display:grid;gap:13px;padding:18px 20px;overflow-y:auto}.formula-hotkey-target-card{min-height:76px;display:grid;grid-template-columns:88px 1fr;align-items:center;gap:13px;padding:10px 12px;border:1px solid var(--border);border-radius:11px;background:var(--bg-elevated)}.formula-hotkey-target-preview,.formula-hotkey-binding-preview{display:flex;align-items:center;justify-content:center;border:1px solid var(--border);border-radius:8px;background:var(--surface);overflow:hidden}.formula-hotkey-target-preview{min-height:54px;font-size:18px}.formula-hotkey-target-card>div:last-child{min-width:0;display:grid;gap:4px}.formula-hotkey-target-card strong{color:var(--text);font-size:13px}.formula-hotkey-target-card span,.formula-hotkey-target-card code{color:var(--text-faint);font-size:10px}.formula-hotkey-target-card code,.formula-hotkey-binding-copy code{font-family:SFMono-Regular,Menlo,Consolas,monospace}.formula-hotkey-capture-box{min-height:112px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:16px;border:1px dashed var(--accent-border);border-radius:12px;background:color-mix(in srgb,var(--accent-soft) 52%,var(--surface));color:var(--accent);text-align:center}.formula-hotkey-capture-box kbd,.formula-hotkey-binding-row>kbd,.office-hotkey-action-row>kbd,.formula-hotkey-context-heading span{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;border:1px solid var(--border-strong);border-bottom-width:2px;border-radius:6px;background:var(--surface);color:var(--text);font-family:SFMono-Regular,Menlo,Consolas,monospace;font-weight:700;line-height:1;white-space:nowrap}.formula-hotkey-capture-box kbd{min-height:36px;padding:7px 12px;font-size:18px}.formula-hotkey-capture-box strong{color:var(--text);font-size:13px}.formula-hotkey-capture-box span{color:var(--text-faint);font-size:10px;line-height:1.5}.formula-hotkey-message{display:flex;align-items:flex-start;gap:8px;padding:9px 11px;border:1px solid var(--border);border-radius:9px;font-size:10px;line-height:1.5}.formula-hotkey-message svg{flex:0 0 auto;margin-top:1px}.formula-hotkey-message.is-warning{border-color:color-mix(in srgb,var(--warning) 40%,var(--border));background:color-mix(in srgb,var(--warning) 9%,var(--surface));color:color-mix(in srgb,var(--warning) 72%,var(--text))}.formula-hotkey-message.is-danger{border-color:color-mix(in srgb,var(--danger, #b42318) 38%,var(--border));background:color-mix(in srgb,var(--danger, #b42318) 8%,var(--surface));color:var(--danger, #b42318)}.formula-hotkey-message.is-success{border-color:color-mix(in srgb,var(--success) 38%,var(--border));background:color-mix(in srgb,var(--success) 8%,var(--surface));color:color-mix(in srgb,var(--success) 76%,var(--text))}.formula-hotkey-recorder-footer>div{display:flex;align-items:center;gap:8px}.formula-hotkey-recorder-footer .secondary-button,.formula-hotkey-recorder-footer .primary-button{height:36px;min-height:36px;margin-top:0;box-sizing:border-box}.formula-hotkey-manager-summary{padding:14px 20px 0}.formula-hotkey-manager-summary>div{display:flex;align-items:center;gap:10px;padding:11px 13px;border:1px solid var(--border);border-radius:10px;background:var(--bg-elevated);color:var(--accent)}.formula-hotkey-manager-summary span{display:grid;gap:2px}.formula-hotkey-manager-summary strong{color:var(--text);font-size:11px}.formula-hotkey-manager-summary small{color:var(--text-faint);font-size:9px}.formula-hotkey-manager-content{min-height:210px;display:grid;gap:14px;padding:14px 20px 18px;overflow-y:auto}.office-hotkey-group,.formula-editor-hotkey-group{display:grid;gap:8px}.formula-hotkey-section-heading{min-height:26px;display:flex;align-items:center;gap:7px;color:var(--accent)}.formula-hotkey-section-heading strong{color:var(--text);font-size:11px}.formula-hotkey-section-heading span{margin-left:auto;color:var(--text-faint);font-size:9px}.office-hotkey-action-list{display:grid;gap:6px}.office-hotkey-action-row{min-height:56px;display:grid;grid-template-columns:42px minmax(170px,1fr) auto 68px;align-items:center;gap:11px;padding:7px 10px;border:1px solid var(--border);border-radius:10px;background:var(--bg-elevated)}.office-hotkey-action-icon{width:36px;height:36px;display:grid;place-items:center;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--accent)}.office-hotkey-action-row>kbd{min-width:54px;min-height:26px;justify-self:center;padding:5px 8px;font-size:11px}.office-hotkey-unassigned{min-width:54px;justify-self:center;color:var(--text-faint);font-size:9px;text-align:center}.office-hotkey-action-row .formula-hotkey-binding-actions{min-width:63px;justify-content:flex-end}.anywhere-english-input-row{cursor:pointer}.anywhere-english-input-row>input{position:absolute;opacity:0;pointer-events:none}.anywhere-english-input-row>.switch-control{justify-self:center}.anywhere-english-input-row>input:checked+.switch-control{background:var(--accent)}.anywhere-english-input-row>input:checked+.switch-control:after{transform:translate(16px)}.anywhere-english-input-row>input:focus-visible+.switch-control{outline:2px solid var(--focus-ring);outline-offset:2px}.office-hotkey-target-card .formula-hotkey-target-preview{color:var(--accent)}.formula-hotkey-empty-state{min-height:190px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:24px;border:1px dashed var(--border-strong);border-radius:11px;color:var(--text-faint);text-align:center}.formula-hotkey-empty-state strong{color:var(--text);font-size:13px}.formula-hotkey-empty-state span{max-width:420px;font-size:10px;line-height:1.55}.formula-hotkey-binding-list{display:grid;gap:8px}.formula-hotkey-binding-row{display:grid;grid-template-columns:70px minmax(150px,1fr) auto auto;align-items:center;gap:11px;min-height:70px;padding:8px 10px;border:1px solid var(--border);border-radius:10px;background:var(--bg-elevated)}.formula-hotkey-binding-preview{height:50px;font-size:16px}.formula-hotkey-binding-copy{min-width:0;display:grid;gap:4px}.formula-hotkey-binding-copy strong{color:var(--text);font-size:11px}.formula-hotkey-binding-copy span{overflow:hidden;color:var(--text-faint);font-size:9px;text-overflow:ellipsis;white-space:nowrap}.formula-hotkey-binding-row>kbd{min-width:54px;min-height:26px;justify-self:center;padding:5px 8px;font-size:11px}.formula-hotkey-binding-actions{display:flex;gap:5px}.formula-hotkey-binding-actions .is-danger{color:var(--danger, #b42318)}.formula-hotkey-context-menu{min-width:216px;padding:5px}.formula-hotkey-context-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 8px 8px;border-bottom:1px solid var(--border);margin-bottom:4px}.formula-hotkey-context-heading strong{min-width:0;overflow:hidden;color:var(--text);font-size:10px;text-overflow:ellipsis;white-space:nowrap}.formula-hotkey-context-heading span{flex:0 0 auto;padding:3px 5px;font-size:8px}.formula-tile-context-menu .formula-hotkey-context-action{display:flex;align-items:center;gap:7px;color:var(--text)}.formula-tile-context-menu .formula-hotkey-context-action:hover,.formula-tile-context-menu .formula-hotkey-context-action:focus-visible{background:var(--accent-soft)}.formula-tile-context-menu .formula-hotkey-context-action.is-danger{color:var(--danger, #b42318)}.formula-tile-context-menu .formula-hotkey-context-action.is-danger:hover,.formula-tile-context-menu .formula-hotkey-context-action.is-danger:focus-visible{background:color-mix(in srgb,var(--danger, #b42318) 9%,transparent)}.formula-hotkey-context-divider{height:1px;margin:4px 5px;background:var(--border)}.custom-formula-tile-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px}.save-current-formula-tile,.create-formula-tile-section{display:inline-flex;align-items:center;justify-content:center;gap:6px}.create-formula-tile-section{min-height:34px;padding:7px 10px;border:1px solid var(--border);border-radius:7px;background:var(--surface);color:var(--text-muted);font:inherit;font-size:10px;font-weight:650;cursor:pointer}.create-formula-tile-section:hover:not(:disabled){border-color:var(--accent-border);color:var(--accent)}.create-formula-tile-section:disabled{opacity:.5;cursor:not-allowed}.custom-formula-section-editor{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:5px}.custom-formula-section-editor input{min-width:0;height:30px;padding:0 9px;border:1px solid var(--accent-border);border-radius:7px;background:var(--bg-elevated);color:var(--text);font:inherit;font-size:10px;outline:none}.formula-tile-list.is-custom{display:block;padding:4px 3px 8px}.registered-custom-symbol-toolbar-section{min-width:0;display:grid;gap:5px;margin-bottom:8px;padding-bottom:8px;border-bottom:1px solid color-mix(in srgb,var(--border) 72%,transparent)}.registered-custom-symbol-toolbar-section>header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 2px}.registered-custom-symbol-toolbar-section>header strong{color:var(--text-secondary);font-size:8px;font-weight:720}.registered-custom-symbol-toolbar-section>header span{color:var(--text-faint);font-size:7px}.registered-custom-symbol-toolbar-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(58px,1fr));gap:5px}.formula-tile-button.is-registered-custom-symbol{position:relative;width:100%;min-width:0;min-height:58px;padding-bottom:14px;padding-right:20px}.registered-custom-symbol-toolbar-delete{width:20px;display:grid;place-items:center;padding:0;opacity:.82}.registered-custom-symbol-toolbar-delete:hover{opacity:1}.registered-custom-symbol-toolbar-command{position:absolute;left:4px;right:4px;bottom:3px;overflow:hidden;color:var(--text-faint);font-family:var(--font-mono, ui-monospace, monospace);font-size:6px;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}.custom-formula-sections{min-width:0;display:grid;gap:8px}.custom-formula-sections.is-empty-hidden{display:none}.custom-formula-section{min-width:0;display:grid;gap:3px;padding:0;border:0;background:transparent}.custom-formula-section+.custom-formula-section{padding-top:3px;border-top:1px solid color-mix(in srgb,var(--border) 72%,transparent)}.custom-formula-section.is-active{border-color:color-mix(in srgb,var(--accent-border) 58%,var(--border))}.custom-formula-section-header{min-width:0;min-height:25px;display:flex;align-items:center;justify-content:space-between;gap:4px;padding:0 1px}.custom-formula-section-select{min-width:0;flex:1 1 auto;display:flex;align-items:center;gap:6px;padding:2px 3px;border:0;border-radius:4px;background:transparent;color:var(--text-muted);font:inherit;text-align:left;cursor:pointer}.custom-formula-section-select:hover{background:var(--surface-hover);color:var(--text)}.custom-formula-section-select strong{min-width:0;overflow:hidden;color:inherit;font-size:11px;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}.custom-formula-section-select span{flex:0 0 auto;min-width:18px;padding:1px 5px;border-radius:999px;background:var(--surface-sunken);color:var(--text-faint);font-size:8px;text-align:center}.custom-formula-section.is-active .custom-formula-section-select{color:var(--accent)}.custom-formula-section-actions{min-width:0;display:flex;align-items:center;justify-content:flex-end;gap:2px}.custom-formula-section-delete-copy{max-width:150px;overflow:hidden;color:var(--danger, #b42318);font-size:8px;font-weight:650;line-height:1.25;text-align:right;text-overflow:ellipsis;white-space:nowrap}.custom-formula-section-actions .is-danger{color:var(--danger, #b42318)}.custom-formula-tile-grid{min-width:0;display:grid;gap:3px}.custom-formula-tile-row{min-width:0;width:100%;display:flex;align-items:stretch;gap:3px}.custom-formula-tile-row.is-loose{justify-content:flex-start}.custom-formula-section-empty{width:100%;min-height:36px;padding:8px;border:1px dashed var(--border);border-radius:7px;background:transparent;color:var(--text-faint);font:inherit;font-size:9px;cursor:pointer}.custom-formula-section-empty:hover{border-color:var(--accent-border);color:var(--accent)}.formula-tile-button.is-custom{width:auto;max-width:100%;min-width:0;min-height:48px;display:inline-flex;align-items:center;justify-content:center;padding:2px 4px;border-radius:4px}.formula-tile-button.is-custom .formula-tile-preview.math-preview[data-fluid-height=true]{width:100%;min-width:0;height:var(--math-preview-fluid-height, 46px);min-height:var(--math-preview-fluid-height, 46px);font-size:18px;contain:layout paint}.formula-tile-button.is-custom.has-custom-color{border-color:color-mix(in srgb,var(--custom-tile-color) 38%,var(--border));background:color-mix(in srgb,var(--custom-tile-color) 14%,var(--surface))}.formula-tile-button.is-custom.has-custom-color:hover,.formula-tile-button.is-custom.has-custom-color:focus-visible{border-color:color-mix(in srgb,var(--custom-tile-color) 62%,var(--accent-border));background:color-mix(in srgb,var(--custom-tile-color) 22%,var(--surface))}.custom-tile-context-options{display:grid;gap:8px;padding:4px 7px 6px}.custom-tile-context-label{display:flex;align-items:center;gap:6px;color:var(--text-muted);font-size:9px;font-weight:650}.custom-tile-color-palette{display:grid;grid-template-columns:repeat(9,22px);gap:4px}.formula-tile-context-menu .custom-tile-color-swatch{width:22px;min-width:22px;height:22px;min-height:22px;padding:0;border:2px solid transparent;border-radius:6px;color:transparent}.formula-tile-context-menu .custom-tile-color-swatch:hover,.formula-tile-context-menu .custom-tile-color-swatch:focus-visible{background:inherit;border-color:var(--text-faint)}.formula-tile-context-menu .custom-tile-color-swatch.is-active{border-color:var(--accent);box-shadow:0 0 0 1px var(--surface),0 0 0 2px var(--accent)}.custom-tile-color-swatch.is-auto{background:linear-gradient(135deg,transparent 46%,var(--danger, #b42318) 47% 53%,transparent 54%),var(--surface-sunken)}.custom-tile-color-picker{position:relative;width:22px;height:22px;display:grid;place-items:center;border:1px dashed var(--border-strong);border-radius:6px;color:var(--text-muted);cursor:pointer;overflow:hidden}.custom-tile-color-picker input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.custom-tile-section-picker{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px;color:var(--text-muted);font-size:9px;font-weight:650}.custom-tile-section-picker select{min-width:0;height:28px;padding:0 7px;border:1px solid var(--border);border-radius:6px;background:var(--bg-elevated);color:var(--text);font:inherit;font-size:9px}@media(max-width:680px){.formula-hotkey-binding-row{grid-template-columns:58px minmax(0,1fr) auto}.office-hotkey-action-row{grid-template-columns:42px minmax(0,1fr) auto}.office-hotkey-action-row .formula-hotkey-binding-actions{grid-column:2 / -1}.formula-hotkey-binding-actions{grid-column:2 / -1;justify-content:flex-end}.formula-hotkey-recorder-footer{align-items:stretch;gap:8px}.formula-hotkey-recorder-footer>div{justify-content:flex-end}}.theme-choice-setting{display:grid;gap:8px}.theme-choice-setting>span{display:grid;gap:3px}.theme-choice-setting>span strong{color:var(--text);font-size:12px;font-weight:650}.theme-choice-setting>span small{color:var(--text-faint);font-size:10px;line-height:1.45}.theme-choice-segment{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch}.theme-choice-segment button{min-width:0;height:52px;flex-direction:column;gap:4px;padding:5px 3px;line-height:1.1}.theme-choice-swatch{height:16px;display:grid;grid-template-columns:repeat(3,1fr);overflow:hidden;border:1px solid var(--border);border-radius:5px;background:var(--surface)}.theme-choice-swatch i{display:block;min-width:0}[data-theme-choice=light] .theme-choice-swatch i:nth-child(1){background:#f2f4f6}[data-theme-choice=light] .theme-choice-swatch i:nth-child(2){background:#fff}[data-theme-choice=light] .theme-choice-swatch i:nth-child(3){background:#1f638e}[data-theme-choice=beige] .theme-choice-swatch i:nth-child(1){background:#e4d5bf}[data-theme-choice=beige] .theme-choice-swatch i:nth-child(2){background:#fff9ef}[data-theme-choice=beige] .theme-choice-swatch i:nth-child(3){background:#785536}[data-theme-choice=dark] .theme-choice-swatch i:nth-child(1){background:#16181b}[data-theme-choice=dark] .theme-choice-swatch i:nth-child(2){background:#202328}[data-theme-choice=dark] .theme-choice-swatch i:nth-child(3){background:#72b7dd}[data-theme-choice=purple] .theme-choice-swatch i:nth-child(1){background:#120e16}[data-theme-choice=purple] .theme-choice-swatch i:nth-child(2){background:#433252}[data-theme-choice=purple] .theme-choice-swatch i:nth-child(3){background:#bfa4ef}[data-theme-choice=green] .theme-choice-swatch i:nth-child(1){background:#0d120f}[data-theme-choice=green] .theme-choice-swatch i:nth-child(2){background:#2a3b32}[data-theme-choice=green] .theme-choice-swatch i:nth-child(3){background:#78c595}@media(max-width:680px){.theme-choice-segment{grid-template-columns:repeat(2,minmax(0,1fr))}}.editor-layout-setting{display:grid;gap:8px}.editor-layout-setting>span{display:grid;gap:3px}.editor-layout-setting>span strong{color:var(--text);font-size:12px;font-weight:650}.editor-layout-setting>span small{color:var(--text-faint);font-size:10px;line-height:1.45}.editor-layout-segment{width:100%}.classic-editor-pane-body{min-width:0;min-height:0;display:grid;grid-template-rows:minmax(0,1fr) 7px minmax(132px,var(--classic-dock-height, 240px));overflow:hidden;background:var(--bg-elevated)}.classic-editor-pane-body.is-dock-collapsed{grid-template-rows:minmax(0,1fr) 36px}.classic-bottom-dock{min-width:0;min-height:0;container-type:inline-size;display:grid;grid-template-rows:36px minmax(0,1fr);overflow:hidden;border-top:1px solid var(--border);background:var(--bg-elevated)}.classic-bottom-dock.is-collapsed{grid-template-rows:36px}.classic-bottom-tabs{min-width:0;display:grid;grid-template-columns:minmax(34px,1fr) auto minmax(34px,1fr);align-items:stretch;gap:3px;padding:0 8px;border-bottom:1px solid var(--border);background:var(--surface)}.classic-bottom-tab-group{min-width:0;display:flex;align-items:stretch;justify-content:center;gap:3px}.classic-bottom-tab-group button{height:36px;min-width:112px;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:0 14px;border:0;border-radius:0;background:transparent;color:var(--text-muted);font:inherit;font-size:12px;font-weight:600;cursor:pointer}.classic-bottom-tab-group button:hover{background:var(--surface-hover);color:var(--text)}.classic-bottom-tab-group button.is-active{background:transparent;color:var(--accent);box-shadow:inset 0 -2px 0 var(--accent)}.classic-bottom-actions{min-width:0;display:flex;align-items:center;justify-self:end;gap:3px}.classic-bottom-copy,.classic-bottom-collapse{align-self:center;margin-bottom:3px;color:var(--text-muted)}.classic-bottom-copy:hover,.classic-bottom-collapse:hover{color:var(--accent)}.classic-bottom-content{min-width:0;min-height:0;overflow:hidden}.workspace-panel-resizer{position:relative;z-index:12;min-width:0;min-height:0;border:0;background:var(--bg-elevated);touch-action:none;outline:none}.workspace-panel-resizer:before{content:"";position:absolute;border-radius:999px;background:var(--border-strong);opacity:.72;transition:background-color .12s ease,opacity .12s ease,transform .12s ease}.workspace-panel-resizer:hover:before,.workspace-panel-resizer:focus-visible:before{background:var(--accent);opacity:1}.classic-tile-resizer{width:7px;cursor:col-resize}.classic-tile-resizer:before{inset:8px 2px;width:3px}.classic-tile-resizer:hover:before,.classic-tile-resizer:focus-visible:before{transform:scaleX(1.35)}.classic-dock-resizer{height:7px;cursor:row-resize}.classic-dock-resizer:before{inset:2px 10px;height:3px}.classic-dock-resizer:hover:before,.classic-dock-resizer:focus-visible:before{transform:scaleY(1.35)}body[data-workspace-resize=tiles],body[data-workspace-resize=tiles] *{cursor:col-resize!important;user-select:none!important}body[data-workspace-resize=dock],body[data-workspace-resize=dock] *{cursor:row-resize!important;user-select:none!important}.classic-source-pane-slot{width:100%;height:100%;padding:0}.classic-source-pane-slot .source-panel{border-radius:0}.formula-toolbar.is-view-fixed{grid-template-rows:minmax(0,1fr)}.formula-toolbar.is-horizontal .toolbar-tab{background:color-mix(in srgb,var(--surface) 82%,var(--toolbar-category-tint, var(--toolbar-category-common)) 18%)}.formula-toolbar.is-horizontal .toolbar-tab+.toolbar-tab:before{content:"";position:absolute;left:-3px;top:5px;bottom:5px;width:1px;background:color-mix(in srgb,var(--border) 58%,var(--border-strong) 42%);pointer-events:none}.formula-toolbar.is-horizontal .toolbar-tab:hover{background:color-mix(in srgb,var(--surface-hover) 68%,var(--toolbar-category-tint, var(--toolbar-category-common)) 32%)}.formula-toolbar.is-horizontal .toolbar-tab.is-active{background:color-mix(in srgb,var(--surface) 58%,var(--toolbar-category-tint, var(--toolbar-category-common)) 42%)}.formula-toolbar.is-horizontal .template-strip{grid-template-rows:repeat(var(--toolbar-row-count, 3),minmax(max(30px,calc(var(--formula-toolbar-button-size, 52px) - 8px)),1fr));padding:4px 8px}.formula-toolbar.is-horizontal .template-button.is-wide-preview{grid-column:span 2;width:100%;min-width:0}.formula-toolbar.is-horizontal .template-button .math-preview{font-size:clamp(16px,calc(var(--formula-toolbar-button-size, 52px) * .46),32px)}.formula-toolbar.is-horizontal .template-strip.is-continuous-categories::-webkit-scrollbar{width:0;height:0}.formula-toolbar.is-horizontal .toolbar-category-section{grid-template-rows:repeat(var(--toolbar-row-count, 3),minmax(max(30px,calc(var(--formula-toolbar-button-size, 52px) - 8px)),1fr));background:color-mix(in srgb,var(--bg-elevated) 84%,var(--toolbar-category-tint) 16%)}.formula-toolbar.is-horizontal .toolbar-category-section .template-button{outline-color:color-mix(in srgb,var(--border) 58%,var(--toolbar-category-tint) 42%);background:linear-gradient(180deg,color-mix(in srgb,color-mix(in srgb,var(--surface) 91%,var(--bg-elevated) 9%) 82%,var(--toolbar-category-tint) 18%),color-mix(in srgb,color-mix(in srgb,var(--bg-elevated) 88%,var(--surface) 12%) 76%,var(--toolbar-category-tint) 24%))}.formula-toolbar.is-horizontal .toolbar-category-section .template-button:hover,.formula-toolbar.is-horizontal .toolbar-category-section .template-button:focus-visible{outline-color:color-mix(in srgb,var(--accent-border) 54%,var(--toolbar-category-tint) 46%);background:linear-gradient(180deg,color-mix(in srgb,var(--accent-soft) 62%,var(--toolbar-category-tint) 38%),color-mix(in srgb,var(--accent-soft) 68%,var(--toolbar-category-tint) 32%))}.formula-toolbar.is-horizontal .toolbar-static-preview{contain:strict}.formula-toolbar.is-horizontal .toolbar-static-preview .math-preview-fit-content{transform:scale(.92)}.formula-toolbar.is-horizontal .template-strip.is-continuous-categories[data-scrolling=true] .toolbar-category-section{pointer-events:none}.formula-toolbar.is-horizontal .template-strip.is-continuous-categories[data-scrolling=true] .toolbar-category-section .template-button{transition:none;box-shadow:none;background:color-mix(in srgb,var(--surface) 76%,var(--toolbar-category-tint) 24%)}.formula-toolbar.is-horizontal .toolbar-category-section+.toolbar-category-section:before{content:"";position:absolute;left:-7px;top:0;bottom:0;width:1px;background:color-mix(in srgb,var(--border) 58%,var(--border-strong) 42%)}.formula-toolbar.is-horizontal .template-button.is-enlarged-cases-preview .math-preview{font-size:clamp(22px,calc(var(--formula-toolbar-button-size, 52px) * .68),42px)}.formula-toolbar .matrix-builder{border-color:color-mix(in srgb,var(--border) 56%,var(--toolbar-category-tint) 44%);background:linear-gradient(180deg,color-mix(in srgb,var(--surface) 76%,var(--toolbar-category-tint) 24%),color-mix(in srgb,var(--bg-elevated) 68%,var(--toolbar-category-tint) 32%));box-shadow:inset 0 1px color-mix(in srgb,var(--surface) 72%,transparent)}.formula-toolbar .matrix-size-badge{border-color:color-mix(in srgb,var(--border-strong) 48%,var(--toolbar-category-tint) 52%);background:color-mix(in srgb,var(--surface) 72%,var(--toolbar-category-tint) 28%);color:color-mix(in srgb,var(--text) 78%,var(--toolbar-category-tint) 22%)}.formula-toolbar .matrix-delimiter-options button{border-color:color-mix(in srgb,var(--border) 66%,var(--toolbar-category-tint) 34%);background:color-mix(in srgb,var(--surface) 82%,var(--toolbar-category-tint) 18%);color:var(--text-muted)}.formula-toolbar .matrix-delimiter-options button:hover,.formula-toolbar .matrix-delimiter-options button:focus-visible{border-color:color-mix(in srgb,var(--accent-border) 52%,var(--toolbar-category-tint) 48%);background:color-mix(in srgb,var(--surface-hover) 66%,var(--toolbar-category-tint) 34%)}.formula-toolbar .matrix-delimiter-options button.is-active{border-color:color-mix(in srgb,var(--accent-border) 44%,var(--toolbar-category-tint) 56%);background:color-mix(in srgb,var(--accent-soft) 68%,var(--toolbar-category-tint) 32%);color:var(--text);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 38%,var(--toolbar-category-tint) 62%)}.formula-toolbar .matrix-size-grid{border-color:color-mix(in srgb,var(--border) 62%,var(--toolbar-category-tint) 38%);background:color-mix(in srgb,var(--surface) 78%,var(--toolbar-category-tint) 22%)}.formula-toolbar .matrix-size-cell{border-color:color-mix(in srgb,var(--border-strong) 70%,var(--toolbar-category-tint) 30%);background:color-mix(in srgb,var(--bg-elevated) 84%,var(--toolbar-category-tint) 16%)}.formula-toolbar .matrix-size-cell:hover,.formula-toolbar .matrix-size-cell:focus-visible,.formula-toolbar .matrix-size-cell.is-previewed{border-color:color-mix(in srgb,var(--accent-border) 42%,var(--toolbar-category-tint) 58%);background:color-mix(in srgb,var(--accent-soft) 48%,var(--toolbar-category-tint) 52%)}.formula-toolbar .matrix-size-cell.is-selected-corner{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 56%,var(--toolbar-category-tint) 44%)}.formula-toolbar .matrix-insert-button{border-color:color-mix(in srgb,var(--accent) 80%,var(--toolbar-category-tint) 20%);background:color-mix(in srgb,var(--accent) 86%,var(--toolbar-category-tint) 14%)}.formula-toolbar .matrix-insert-button:hover,.formula-toolbar .matrix-insert-button:focus-visible{background:color-mix(in srgb,var(--accent-hover) 82%,var(--toolbar-category-tint) 18%)}.formula-toolbar.is-horizontal .matrix-builder{grid-template-columns:minmax(0,214px) minmax(116px,126px)}.formula-toolbar.is-horizontal .matrix-delimiter-options{gap:0}.formula-toolbar.is-horizontal .matrix-size-picker{gap:3px}.formula-toolbar.is-horizontal .matrix-size-grid{width:98px}.formula-toolbar.is-horizontal[data-toolbar-row-count="2"] .matrix-builder{grid-template-columns:minmax(0,190px) 78px}.formula-toolbar.is-horizontal[data-toolbar-row-count="2"] .matrix-control-label{display:none}.formula-toolbar.is-horizontal[data-toolbar-row-count="2"] .matrix-size-picker{gap:1px}.formula-toolbar.is-horizontal[data-toolbar-row-count="2"] .matrix-size-grid{width:74px}:root[data-theme=beige] .formula-alignment-button.is-active,:root[data-theme=beige] .formula-toolbar-actions .icon-button.is-active{background:var(--accent-soft-beige);color:var(--accent-primary)}:root[data-theme=beige] .formula-toolbar-view-tabs button.is-active,:root[data-theme=beige] .formula-tile-tabs button.is-active,:root[data-theme=beige] .toolbar-tab.is-active,:root[data-theme=beige] .classic-bottom-tab-group button.is-active,:root[data-theme=beige] .formula-toolbar.is-horizontal .toolbar-tab.is-active{color:var(--accent-primary);box-shadow:inset 0 -2px 0 var(--accent-primary)}:root[data-theme=beige] .formula-tile-button.is-custom.has-custom-color,:root[data-theme=beige] .formula-tile-button.is-custom.has-custom-color:hover,:root[data-theme=beige] .formula-tile-button.is-custom.has-custom-color:focus-visible{border-color:var(--border-default);background:var(--bg-paper)}:root[data-theme-palette] .workspace.has-active-line-highlight .formula-line:hover,:root[data-theme-palette] .workspace.has-active-line-highlight .formula-line.is-active{background:color-mix(in srgb,var(--formula-surface) 82%,var(--bg-current-line) 18%)}:root[data-theme-palette] .workspace.has-active-line-highlight .formula-line.is-active{box-shadow:inset 2px 0 0 var(--formula-active-line)}:root[data-theme-palette] .formula-alignment-button.is-active,:root[data-theme-palette] .formula-toolbar-actions .icon-button.is-active{background:var(--accent-soft);color:var(--accent)}:root[data-theme-palette] .formula-toolbar-view-tabs button.is-active,:root[data-theme-palette] .formula-tile-tabs button.is-active,:root[data-theme-palette] .toolbar-tab.is-active,:root[data-theme-palette] .classic-bottom-tab-group button.is-active,:root[data-theme-palette] .formula-toolbar.is-horizontal .toolbar-tab.is-active{color:var(--accent);box-shadow:inset 0 -2px 0 var(--accent)}@media(max-width:980px){.workspace.is-classic-layout.has-sidebar{grid-template-columns:minmax(0,1fr) 7px minmax(220px,var(--classic-tile-width, 300px))}.classic-bottom-tab-group button{min-width:96px}}@media(max-width:760px){.office-dialog-shell .workspace.is-office-workspace.is-classic-layout.has-sidebar>.classic-tile-resizer{z-index:36}.classic-editor-pane-body{grid-template-rows:minmax(0,1fr) 7px minmax(132px,var(--classic-dock-height, 240px))}.classic-editor-pane-body.is-dock-collapsed{grid-template-rows:minmax(0,1fr) 36px}}.doc-import-shell{--doc-import-radius: 12px;--doc-import-page: var(--formula-surface);--doc-import-page-ink: var(--text-primary);--doc-import-page-muted: var(--text-secondary);--doc-import-page-rule: var(--border-default);width:100vw;height:100vh;min-width:860px;min-height:620px;display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;border:1px solid color-mix(in srgb,var(--border-default) 86%,var(--text-secondary));background:var(--bg-global);color:var(--text-primary);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--surface-primary) 80%,transparent),0 14px 38px color-mix(in srgb,var(--text-primary) 14%,transparent)}.doc-import-toolbar,.doc-import-footer{position:relative;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:11px 16px;border-color:var(--border-subtle);background:color-mix(in srgb,var(--surface-primary) 97%,var(--bg-global))}.doc-import-toolbar{min-height:62px;border-bottom:1px solid var(--border-subtle);box-shadow:0 1px color-mix(in srgb,var(--border-subtle) 70%,transparent)}.doc-import-footer{min-height:58px;border-top:1px solid color-mix(in srgb,var(--border-default) 88%,var(--text-secondary));background:color-mix(in srgb,var(--surface-secondary) 82%,var(--surface-primary));box-shadow:0 -1px color-mix(in srgb,var(--surface-primary) 85%,transparent),0 -8px 22px color-mix(in srgb,var(--text-primary) 7%,transparent)}.doc-import-title-block{min-width:300px;display:flex;align-items:center;gap:11px}.doc-import-title-block>svg{width:36px;height:36px;flex:0 0 auto;padding:8px;border:1px solid color-mix(in srgb,var(--accent-primary) 45%,var(--border-default));border-radius:9px;background:color-mix(in srgb,var(--accent-primary) 10%,var(--surface-primary));color:var(--accent-primary)}.doc-import-title-block>div,.doc-import-pane-heading>div{min-width:0;display:grid;gap:2px}.doc-import-title-block strong{color:var(--text-primary);font-size:15px;font-weight:700;letter-spacing:-.15px}.doc-import-title-block span{overflow:hidden;color:var(--text-secondary);font-size:11px;text-overflow:ellipsis;white-space:nowrap}.doc-import-options,.doc-import-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.doc-import-options{justify-content:flex-end}.doc-import-options label{height:36px;display:inline-flex;align-items:center;gap:7px;padding:0 4px 0 10px;border:1px solid var(--border-default);border-radius:8px;background:var(--surface-primary);color:var(--text-secondary);font-size:11px}.doc-import-options select,.doc-import-secondary,.doc-import-primary,.document-import-formula-card select,.document-import-formula-card input,.document-import-formula-card textarea,.source-pane textarea{border:1px solid var(--border-default);border-radius:8px;outline:none;color:var(--text-primary);background:var(--surface-primary);font:inherit}.doc-import-options select{min-width:130px;height:28px;padding:0 28px 0 9px;border:0;border-radius:6px;background:var(--surface-secondary, var(--bg-elevated));cursor:pointer;font-size:11px;font-weight:600}.doc-import-options .doc-import-global-number-toggle{gap:8px;padding:0 10px;border-color:color-mix(in srgb,var(--accent-primary, var(--accent)) 38%,var(--border-default, var(--border)));background:color-mix(in srgb,var(--accent-primary, var(--accent)) 8%,var(--surface-primary, var(--surface)));color:var(--text-primary, var(--text));cursor:pointer;font-weight:650;white-space:nowrap}.doc-import-global-number-toggle:has(input:checked){border-color:color-mix(in srgb,var(--accent-primary, var(--accent)) 62%,var(--border-default, var(--border)));background:color-mix(in srgb,var(--accent-primary, var(--accent)) 15%,var(--surface-primary, var(--surface)))}.doc-import-global-number-toggle input{width:14px;height:14px;margin:0;accent-color:var(--accent-primary, var(--accent))}.doc-import-options .doc-import-global-number-toggle:has(input:disabled){cursor:default;opacity:.58}.doc-import-secondary,.doc-import-primary{height:34px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 14px;cursor:pointer}.doc-import-secondary{border-color:color-mix(in srgb,var(--border-default) 92%,var(--text-secondary));background:var(--surface-primary);color:var(--text-primary);font-weight:650}.doc-import-secondary:hover:not(:disabled){border-color:color-mix(in srgb,var(--accent-primary) 48%,var(--border-default));background:color-mix(in srgb,var(--accent-primary) 7%,var(--surface-primary))}.doc-import-primary{min-width:132px;border-color:color-mix(in srgb,var(--accent-primary, var(--accent)) 82%,var(--border-strong));background:var(--accent-primary, var(--accent));color:var(--primary-foreground);font-weight:750;box-shadow:0 1px 3px color-mix(in srgb,var(--text-primary, var(--text)) 24%,transparent),inset 0 0 0 1px color-mix(in srgb,var(--primary-foreground) 14%,transparent)}.doc-import-primary:hover:not(:disabled){border-color:color-mix(in srgb,var(--accent-hover) 82%,var(--border-strong));background:var(--accent-hover)}.doc-import-primary:focus-visible,.doc-import-secondary:focus-visible,.doc-import-global-number-toggle:has(input:focus-visible){outline:2px solid var(--focus-ring);outline-offset:2px}.doc-import-secondary:disabled{cursor:default;border-color:color-mix(in srgb,var(--border-default) 78%,transparent);background:color-mix(in srgb,var(--surface-secondary) 72%,var(--surface-primary));color:color-mix(in srgb,var(--text-secondary) 78%,var(--surface-primary));opacity:1}.doc-import-primary:disabled{cursor:default;border-color:color-mix(in srgb,var(--accent-primary, var(--accent)) 28%,var(--border-default, var(--border)));background:color-mix(in srgb,var(--accent-primary, var(--accent)) 22%,var(--surface-secondary, var(--bg-elevated)));color:color-mix(in srgb,var(--text-primary, var(--text)) 68%,var(--surface-secondary, var(--bg-elevated)));box-shadow:none;opacity:1}.doc-import-workspace{min-height:0;display:grid;grid-template-columns:minmax(340px,.95fr) minmax(430px,1.05fr);gap:12px;padding:12px;overflow:hidden;background:color-mix(in srgb,var(--bg-global) 84%,var(--surface-secondary))}.doc-import-pane{min-width:0;min-height:0;display:grid;grid-template-rows:58px minmax(0,1fr);overflow:hidden;border:1px solid var(--border-default);border-radius:var(--doc-import-radius);background:var(--surface-primary);box-shadow:0 2px 10px #1418220f}.doc-import-pane-header{min-width:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 13px;border-bottom:1px solid var(--border-subtle);background:color-mix(in srgb,var(--surface-primary) 95%,var(--surface-secondary))}.doc-import-pane-heading{min-width:0;display:flex;align-items:center;gap:9px}.doc-import-pane-icon{width:30px;height:30px;display:grid;flex:0 0 auto;place-items:center;border:1px solid color-mix(in srgb,var(--accent-primary) 35%,var(--border-default));border-radius:8px;background:color-mix(in srgb,var(--accent-primary) 9%,var(--surface-primary));color:var(--accent-primary)}.doc-import-pane-icon.is-preview{background:color-mix(in srgb,var(--success) 10%,var(--surface-primary));border-color:color-mix(in srgb,var(--success) 34%,var(--border-default));color:var(--success)}.doc-import-pane-heading strong{overflow:hidden;color:var(--text-primary);font-size:13px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.doc-import-pane-heading small{overflow:hidden;color:var(--text-secondary);font-size:10px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.doc-import-source-meta,.doc-import-preview-counts{display:flex;align-items:center;justify-content:flex-end;gap:4px}.doc-import-pane-stat,.doc-import-preview-counts>span{flex:0 0 auto;padding:4px 7px;border:1px solid var(--border-default);border-radius:999px;background:var(--surface-secondary);color:var(--text-secondary);font-size:10px;font-variant-numeric:tabular-nums;white-space:nowrap}.doc-import-preview-counts>span:first-child{border-color:color-mix(in srgb,var(--accent-primary) 35%,var(--border-default));background:color-mix(in srgb,var(--accent-primary) 8%,var(--surface-primary));color:var(--accent-primary)}.source-pane textarea{width:100%;height:100%;min-width:0;min-height:0;resize:none;padding:22px 24px 52px;overflow:auto;border:0;border-radius:0;background:linear-gradient(to right,color-mix(in srgb,var(--accent-primary) 3%,transparent),transparent 72px),var(--surface-primary);caret-color:var(--accent-primary);font:13px/1.78 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;tab-size:2;white-space:pre}.source-pane textarea:focus,.document-import-formula-card select:focus,.document-import-formula-card input:focus,.document-import-formula-card textarea:focus{border-color:var(--accent-primary);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent-primary) 18%,transparent)}.doc-import-preview-scroll{min-height:0;overflow:auto;background:var(--doc-import-page);scrollbar-gutter:stable}.doc-import-preview-document{width:100%;min-height:max(620px,calc(100vh - 210px));padding:24px clamp(24px,3vw,42px) 50px;background:var(--doc-import-page);color:var(--doc-import-page-ink);font-family:Cambria,Times New Roman,Microsoft YaHei,serif;font-size:13pt;line-height:1.58}.document-import-text-preview{white-space:pre-wrap;overflow-wrap:anywhere;color:var(--doc-import-page-ink);font:13pt/1.58 Cambria,Times New Roman,Microsoft YaHei,serif}.document-import-text-preview[data-paragraph-start=true]{margin-top:.72em}.document-import-text-preview.is-heading1,.document-import-text-preview.is-heading2,.document-import-text-preview.is-heading3,.document-import-text-preview.is-heading4{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Microsoft YaHei,sans-serif;font-weight:700;line-height:1.34}.document-import-text-preview.is-heading1{margin-top:1.2em;font-size:20pt}.document-import-text-preview.is-heading2{margin-top:1.15em;font-size:17pt}.document-import-text-preview.is-heading3{margin-top:1em;font-size:15pt}.document-import-text-preview.is-heading4{margin-top:.9em;font-size:13pt}.document-import-text-preview.is-quote{margin-block:.55em;padding:.45em .8em;border-left:3px solid var(--info);border-radius:0 6px 6px 0;background:color-mix(in srgb,var(--info) 7%,var(--doc-import-page));color:var(--doc-import-page-muted)}.document-import-text-preview.is-code{padding:.3em .6em;border:1px solid var(--doc-import-page-rule);[data-button-shortcuts] .office-formula-shortcut-list{grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:6px}[data-button-shortcuts] .office-formula-shortcut-row{min-height:44px;padding:5px 8px}border-radius:6px;background:color-mix(in srgb,var(--surface-secondary) 72%,var(--doc-import-page));font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:10px}.document-import-text-preview.is-bullet,.document-import-text-preview.is-number{display:flex;gap:8px;padding-left:12px}.document-import-list-marker{flex:0 0 16px;color:var(--accent-primary);text-align:right}.document-import-formula-card{margin:11px 0;overflow:hidden;border:1px solid var(--doc-import-page-rule);border-radius:9px;background:var(--doc-import-page);box-shadow:0 1px 5px color-mix(in srgb,var(--text-primary) 5%,transparent)}.document-import-formula-card.is-inline{margin-block:7px}.document-import-formula-card>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 9px;border-bottom:1px solid var(--doc-import-page-rule);background:color-mix(in srgb,var(--surface-secondary) 72%,var(--doc-import-page));color:var(--doc-import-page-muted);font:10px/1.3 -apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.document-import-formula-card>header>div,.document-import-formula-card header label{display:flex;align-items:center;gap:7px}.document-import-formula-card select{height:28px;padding:0 7px;font-size:10px}.document-import-formula-card input[type=number]{width:62px;height:28px;padding:0 6px;font-size:10px}.document-import-formula-preview{min-height:64px;display:flex;align-items:center;justify-content:center;padding:13px 18px;overflow-x:auto;color:var(--doc-import-page-ink)}.document-import-formula-card.is-inline .document-import-formula-preview{justify-content:flex-start;min-height:48px;padding-block:9px}.document-import-formula-card>textarea{display:block;width:calc(100% - 18px);min-height:52px;margin:0 9px 9px;padding:8px 9px;resize:vertical;font:11px/1.5 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace}.document-import-formula-error,.doc-import-messages .error,.document-import-state.is-error svg{color:var(--danger-text, #b3261e)}.document-import-empty,.document-import-state{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:var(--text-secondary);text-align:center}.document-import-empty strong,.document-import-state strong{color:var(--text-primary)}.document-import-empty span,.document-import-state p{max-width:440px;margin:0;font-size:11px}.document-import-state{width:100vw;height:100vh;background:var(--bg-global)}.doc-import-messages{min-width:0;flex:1;display:flex;align-items:center;gap:12px;overflow-x:auto;color:var(--text-secondary);font-size:11px;white-space:nowrap}.doc-import-messages>span{display:inline-flex;align-items:center;gap:6px}.doc-import-messages .ok{color:var(--success)}@media(max-width:980px){.doc-import-workspace{grid-template-columns:1fr;grid-template-rows:minmax(300px,.9fr) minmax(360px,1.1fr)}.doc-import-title-block span,.doc-import-pane-heading small,.doc-import-preview-counts>span:not(:first-child){display:none}}.formula-toolbar-customization,.formula-inset-customization,.formula-font-customization,.formula-spacing-customization{gap:14px;padding:15px 16px;border-radius:14px}.formula-inset-customization-header strong{font-size:13px;line-height:1.35}.formula-inset-reset{min-height:32px;padding-inline:12px}.formula-toolbar-customization .formula-inset-range-grid,.formula-inset-range-grid{grid-template-columns:minmax(0,1fr);gap:8px}.formula-inset-range-grid>.formula-inset-range:last-child:nth-child(odd){grid-column:auto}.configuration-transfer-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.configuration-transfer-actions .secondary-button{width:100%;justify-content:center;gap:8px}.configuration-file-input{display:none}.configuration-transfer-status{margin:9px 0 0;color:var(--text-muted);font-size:11px;line-height:1.45}.theme-mode-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.theme-mode-row>strong{color:var(--text);font-size:13px;font-weight:700;line-height:1.35}.theme-mode-segment{width:auto;min-width:142px}.theme-color-details{overflow:hidden;border:1px solid var(--border);border-radius:11px;background:var(--surface)}.theme-color-details>summary{min-height:38px;display:flex;align-items:center;padding:0 11px;color:var(--text);cursor:pointer;font-size:11px;font-weight:700;list-style:none;user-select:none}.theme-color-details>summary::-webkit-details-marker{display:none}.theme-color-details>summary:after{content:"›";margin-left:auto;color:var(--text-faint);font-size:16px;transform:rotate(90deg);transition:transform .12s ease}.theme-color-details:not([open])>summary:after{transform:rotate(0)}.theme-color-details[open]>summary{border-bottom:1px solid var(--border)}.theme-color-grid{display:grid;grid-template-columns:minmax(0,1fr)}.theme-color-row{min-width:0;min-height:42px;display:grid;grid-template-columns:minmax(120px,1fr) auto;align-items:center;gap:10px;padding:6px 9px 6px 11px;border-bottom:1px solid color-mix(in srgb,var(--border) 72%,transparent)}.theme-color-row:last-child{border-bottom:0}.theme-color-row>strong{min-width:0;color:var(--text);font-size:10.5px;font-weight:650;line-height:1.25}.theme-color-control{min-width:0;display:grid;grid-template-columns:30px 84px;align-items:center;gap:6px}.theme-color-control input[type=color]{width:30px;height:28px;padding:2px;border:1px solid var(--border);border-radius:8px;background:var(--surface);cursor:pointer}.theme-color-control input[type=color]::-webkit-color-swatch-wrapper{padding:0}.theme-color-control input[type=color]::-webkit-color-swatch{border:0;border-radius:5px}.theme-color-control input[type=text]{width:84px;min-width:0;height:28px;padding:0 7px;border:1px solid var(--border);border-radius:8px;outline:none;background:var(--bg-elevated);color:var(--text);font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:9.5px;font-variant-numeric:tabular-nums;text-transform:uppercase}.theme-color-control input[type=text]:focus{border-color:var(--accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--focus-ring) 18%,transparent)}.theme-studio-preview{overflow:hidden;border:1px solid var(--theme-preview-border-strong);border-radius:12px;background:var(--theme-preview-bg);color:var(--theme-preview-text);box-shadow:0 8px 24px color-mix(in srgb,var(--theme-preview-text) 10%,transparent)}.theme-preview-titlebar{min-height:36px;display:grid;grid-template-columns:72px minmax(0,1fr) auto;align-items:center;gap:8px;padding:0 10px;border-bottom:1px solid var(--theme-preview-border);background:var(--theme-preview-elevated)}.theme-preview-titlebar>strong{overflow:hidden;color:var(--theme-preview-text);font-size:10px;text-align:center;text-overflow:ellipsis;white-space:nowrap}.theme-preview-window-dots{display:flex;gap:5px}.theme-preview-window-dots i{width:7px;height:7px;border-radius:999px;background:var(--theme-preview-border-strong)}.theme-preview-window-dots i:nth-child(2){background:var(--theme-preview-warning)}.theme-preview-window-dots i:nth-child(3){background:var(--theme-preview-success)}.theme-preview-status{color:var(--theme-preview-faint);font-size:8px;font-weight:650}.theme-preview-body{min-height:168px;display:grid;grid-template-columns:42px minmax(0,1fr)}.theme-preview-sidebar{display:flex;flex-direction:column;align-items:center;gap:10px;padding:12px 8px;border-right:1px solid var(--theme-preview-border);background:var(--theme-preview-surface)}.theme-preview-sidebar span{width:19px;height:19px;border:1px solid var(--theme-preview-border);border-radius:6px;background:var(--theme-preview-sunken)}.theme-preview-sidebar span.is-active{border-color:var(--theme-preview-accent);background:var(--theme-preview-accent-soft);box-shadow:inset 3px 0 0 var(--theme-preview-accent)}.theme-preview-main{min-width:0;display:grid;grid-template-rows:38px minmax(0,1fr)}.theme-preview-toolbar{display:flex;align-items:center;gap:7px;padding:0 10px;border-bottom:1px solid var(--theme-preview-border);background:var(--theme-preview-elevated)}.theme-preview-toolbar>span{width:34px;height:8px;border-radius:999px;background:var(--theme-preview-border)}.theme-preview-toolbar>span:nth-child(2){width:48px}.theme-preview-toolbar>span:nth-child(3){width:24px}.theme-preview-toolbar>button{width:28px;height:24px;margin-left:auto;border:1px solid var(--theme-preview-border);border-radius:7px;background:var(--theme-preview-surface);color:var(--theme-preview-accent);font-size:10px;font-weight:750}.theme-preview-editor{min-width:0;display:grid;align-content:center;gap:12px;padding:16px;background:var(--theme-preview-bg)}.theme-preview-formula-card{min-height:62px;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;border:1px solid var(--theme-preview-border);border-radius:10px;background:var(--theme-preview-formula)}.theme-preview-formula-card:before{content:"";position:absolute;inset:7px;border:1px dashed color-mix(in srgb,var(--theme-preview-border) 72%,transparent);border-radius:7px}.theme-preview-formula-text{position:relative;z-index:1;color:var(--theme-preview-text);font-family:Georgia,Times New Roman,serif;font-size:16px;font-style:italic}.theme-preview-formula-card i{position:absolute;right:20%;bottom:10px;width:28px;height:7px;border-radius:4px;background:var(--theme-preview-placeholder)}.theme-preview-controls{display:flex;align-items:center;gap:7px}.theme-preview-controls button{min-height:25px;padding:0 10px;border:1px solid var(--theme-preview-accent);border-radius:7px;background:var(--theme-preview-accent);color:#fff;font-size:8px;font-weight:700}.theme-preview-controls span{width:9px;height:9px;border-radius:999px;background:var(--theme-preview-border-strong)}.theme-preview-controls span.success{background:var(--theme-preview-success)}.theme-preview-controls span.warning{background:var(--theme-preview-warning)}.theme-preview-controls span.danger{background:var(--theme-preview-danger)}@media(max-width:640px){.configuration-transfer-actions{grid-template-columns:minmax(0,1fr)}}.open-custom-symbol-designer{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:28px;padding:0 9px;border:1px solid var(--border);border-radius:7px;background:var(--bg-elevated);color:var(--text-secondary);font-size:9px;font-weight:650}.open-custom-symbol-designer:hover,.open-custom-symbol-designer:focus-visible{border-color:var(--border-strong);background:var(--surface-hover);color:var(--text)}.visualtex-native-placeholder-preview{background:var(--formula-placeholder)}.workspace.is-classic-layout.is-office-workspace>.formula-workspace.editor-pane>.editor-pane-header.is-office-editor-header{display:flex}.formula-inset-customization-header small{color:var(--text-faint);font-size:9px}.formula-spacing-configs{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.formula-spacing-configs select,.formula-spacing-configs input[type=text]{flex:1 1 160px;min-width:0;min-height:32px;border:1px solid var(--border);border-radius:7px;background:var(--surface);color:var(--text);padding:0 8px}.formula-spacing-group{display:grid;gap:6px;padding:8px 9px 9px;border:1px solid var(--border);border-radius:8px;min-width:0}.formula-spacing-group-title{color:var(--text-muted);font-size:9px;font-weight:600}.formula-spacing-customization .formula-inset-reset{display:inline-flex;align-items:center;gap:6px}.formula-spacing-customization .settings-subdialog-trigger>span{display:grid;gap:2px;min-width:0}.formula-spacing-customization .settings-subdialog-trigger strong{font-size:10px}.formula-spacing-customization .settings-subdialog-trigger small{color:var(--text-faint);font-size:8px}.formula-spacing-studio-backdrop{z-index:3200}.formula-spacing-studio{--formula-spacing-mark-bg: color-mix(in srgb, var(--accent) 22%, transparent);--formula-spacing-mark-ring: color-mix(in srgb, var(--accent) 78%, transparent);width:min(1240px,calc(100vw - 36px));height:min(880px,calc(100vh - 36px));display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;overflow:hidden;border:1px solid var(--border-strong);border-radius:14px;background:var(--surface);box-shadow:var(--shadow-lg)}.formula-spacing-studio .dialog-header{padding:14px 18px 12px}.formula-spacing-studio .dialog-header h2 small{display:block;margin-top:3px;color:var(--text-faint);font-size:9px;font-weight:500;letter-spacing:0}.formula-spacing-studio-toolbar{padding:10px 18px;border-bottom:1px solid var(--border)}.formula-spacing-studio-toolbar .formula-spacing-studio-reset{margin-left:auto;display:inline-flex;align-items:center;gap:6px}.formula-spacing-studio-body{min-height:0;display:grid;grid-template-columns:minmax(0,1.6fr) minmax(300px,1fr)}.formula-spacing-specimen{min-width:0;min-height:0;display:grid;align-content:start;gap:4px;padding:10px 14px 14px;overflow:auto;border-right:1px solid var(--border);background:var(--formula-surface);container-type:inline-size}.formula-spacing-specimen-row{min-width:0;margin:0;display:grid;gap:2px;padding:6px 12px 8px;border:1px solid transparent;border-radius:10px;transition:background-color .12s,border-color .12s}.formula-spacing-specimen-row.is-active{border-color:color-mix(in srgb,var(--accent) 45%,transparent);background:color-mix(in srgb,var(--accent) 6%,transparent)}.formula-spacing-specimen-row figcaption{color:var(--text-faint);font-size:9px;font-weight:600}.formula-spacing-specimen-row .math-preview{max-width:100%;padding:4px 2px;overflow-x:auto;overflow-y:hidden;font-size:clamp(18px,3.6cqi,34px)}.formula-spacing-controls{min-width:0;min-height:0;display:grid;align-content:start;gap:10px;padding:12px 14px 18px;overflow:auto}.formula-spacing-group.is-active{border-color:color-mix(in srgb,var(--accent) 45%,var(--border))}.formula-spacing-slider{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"label reset" "range reset";align-items:center;column-gap:6px;row-gap:2px;padding:5px 4px 6px 8px;border-radius:7px}.formula-spacing-slider.is-active{background:color-mix(in srgb,var(--accent) 9%,transparent)}.formula-spacing-slider-label{grid-area:label;min-width:0;display:flex;align-items:baseline;justify-content:space-between;gap:8px}.formula-spacing-slider-label strong{min-width:0;font-size:10px;font-weight:600}.formula-spacing-slider-label small{color:var(--text-muted);font-size:9px;font-variant-numeric:tabular-nums}.formula-spacing-slider.is-adjusted .formula-spacing-slider-label small{color:var(--accent);font-weight:700}.formula-spacing-slider input[type=range]{grid-area:range;width:100%;accent-color:var(--accent)}.formula-spacing-slider-reset{grid-area:reset;width:26px;height:26px}.formula-spacing-slider-reset:disabled{visibility:hidden}@media(max-width:860px){.formula-spacing-studio-body{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(150px,44%) minmax(0,1fr)}.formula-spacing-specimen{border-right:0;border-bottom:1px solid var(--border)}}@media(max-width:760px){.formula-spacing-studio{width:calc(100vw - 20px);height:calc(100vh - 20px)}.formula-spacing-studio-toolbar .formula-spacing-studio-reset{margin-left:0}}.redraw-skipped-list{display:grid;gap:6px;width:min(100%,640px);max-height:46vh;margin:0;padding:0;overflow:auto;list-style:none;text-align:left}.redraw-skipped-list li{display:grid;gap:2px;padding:6px 8px;border:1px solid var(--border);border-radius:7px}.redraw-skipped-list code{overflow-wrap:anywhere;font-size:12px}.redraw-skipped-list span{color:var(--text-muted, inherit);font-size:12px}[data-button-shortcuts] [data-button-shortcut-message]{margin:0;padding:6px 10px;border-radius:7px;background:var(--bg-elevated);font-size:12px}[data-button-shortcuts] .office-hotkey-action-list+.office-hotkey-action-list{margin-top:6px}.setting-value{font-size:inherit;font-weight:400;color:var(--text-muted)}small:not(:is([class*=-demo],[class*=-preview]) small){font-size:inherit!important}.office-integration-section :is(strong,span,button,small,p,dt,dd,li,label,code){font-size:12px!important}.formula-hotkey-manager-dialog :is(strong,span,kbd,code,button,small,p,label):not(.eyebrow){font-size:12px!important}.ocr-drop-empty :is(span,button,small),.ocr-provider-heading :is(strong,span),.ocr-provider-field>:is(span,select),.ocr-model-drop-zone :is(strong,span,button,small),.ocr-install-actions button,.ocr-runtime-summary span,.ocr-storage-location :is(strong,span,code,button,small),.ocr-model-field :is(span,small),.export-dialog :is(.export-copy-png-row,.export-path-field) :is(span,button,small),.update-dialog-content :is(p,.update-community-number){font-size:12px!important}.office-mcp-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;border:1px solid var(--border);border-radius:9px;background:color-mix(in srgb,var(--bg-elevated) 82%,transparent)}.office-mcp-row strong{color:var(--text);font-size:13px}.office-mcp-toggle{flex:0 0 auto;min-width:86px;justify-content:center}.office-mcp-select{height:var(--control-height);min-width:150px;padding:0 8px;border:1px solid var(--border);border-radius:7px;background:var(--surface);color:var(--text);font-size:12px}.office-mcp-clients{display:flex;flex-direction:column;gap:8px}.office-mcp-clients>strong{color:var(--text);font-size:13px}.office-mcp-client-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.office-mcp-client-head>strong{color:var(--text);font-size:13px}.office-mcp-client-where{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--text-muted);font-size:12px}.office-mcp-client-where>span{min-width:0;overflow-wrap:anywhere}.office-mcp-client-where>button{flex:0 0 auto}.office-mcp-snippet{max-height:300px;margin:0;padding:10px 12px;overflow:auto;border:1px solid var(--border);border-radius:9px;background:var(--surface);color:var(--text);font:12px/1.5 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere;user-select:text}.office-mcp-snippet.is-prose{font-family:inherit;font-size:13px}.office-mcp-actions{display:flex;flex-wrap:wrap;gap:8px}.office-mcp-connections{display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px 12px;margin:0;font-size:12px}.office-mcp-connections dt{color:var(--text-muted)}.office-mcp-connections dd{margin:0;color:var(--text);overflow-wrap:anywhere}.office-mcp-audit{display:flex;flex-direction:column;gap:4px;max-height:260px;margin:0;padding:8px 10px;overflow:auto;list-style:none;border:1px solid var(--border);border-radius:9px;background:var(--surface);font-size:12px}.office-mcp-audit li{display:grid;grid-template-columns:auto auto auto minmax(0,1fr);gap:10px;color:var(--text)}.office-mcp-audit li.is-error{color:var(--danger)}.office-mcp-audit li>span:last-child{overflow-wrap:anywhere}.settings-dialog.is-paged{width:min(920px,calc(100vw - 36px));height:min(720px,calc(100vh - 48px));max-height:none}.settings-dialog.is-paged .dialog-header h2{margin:0}.settings-layout{flex:1 1 auto;min-height:0;display:grid;grid-template-columns:196px minmax(0,1fr)}.settings-nav{display:flex;flex-direction:column;gap:2px;padding:12px 10px;overflow-y:auto;border-right:1px solid var(--border);background:var(--bg-elevated)}.settings-nav button{display:flex;align-items:center;gap:10px;width:100%;min-height:34px;padding:0 10px;border:0;border-radius:7px;background:transparent;color:var(--text-muted);font-size:13px;text-align:left;cursor:pointer}.settings-nav button:hover{background:var(--hover);color:var(--text)}.settings-nav button.is-active{background:var(--active);color:var(--accent);font-weight:600}.settings-page{min-width:0;overflow-y:auto;padding:16px 22px 24px}.settings-page-header{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:32px;margin-bottom:14px}.settings-page-header h3{margin:0;color:var(--text);font-size:16px;font-weight:600}.settings-group{display:flex;flex-direction:column;gap:8px}.settings-group+.settings-group,.settings-page>.settings-group~.formula-spacing-settings,.settings-page>*+.settings-section{margin-top:22px}.settings-group>h4{margin:0 0 2px;color:var(--text-muted);font-size:12px;font-weight:600}.settings-page .switch-row strong,.settings-page .range-setting strong,.settings-page .editor-layout-setting strong,.settings-page .theme-mode-row strong{font-size:12px}.settings-group>.editor-layout-setting>span:first-child,.settings-group>.theme-choice-setting>span:first-child{display:none}.theme-custom-details{display:flex;flex-direction:column;gap:10px;margin-top:4px;padding:10px 12px;border:1px solid var(--border);border-radius:10px}.theme-custom-details>summary{color:var(--text);font-size:12px;font-weight:600;cursor:pointer}.theme-custom-details[open]>summary{margin-bottom:10px}.theme-custom-details>*+*{margin-top:10px}.theme-custom-details>button{align-self:flex-start}.settings-page .shortcut-manager-scroll{max-height:none;overflow:visible;padding:0}.office-default-font-size-setting.is-compact{max-width:320px}@media(max-width:720px){.settings-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}.settings-nav{flex-direction:row;flex-wrap:wrap;border-right:0;border-bottom:1px solid var(--border)}.settings-nav button{width:auto}}.settings-page .theme-color-details>summary,.settings-page .theme-color-row strong,.settings-page .formula-font-setting strong,.settings-page .settings-subdialog-trigger strong,.settings-page .formula-spacing-customization strong,.settings-page .office-formula-shortcut-host-header strong,.settings-page .office-formula-shortcut-copy strong,.settings-page .office-formula-shortcut-capture kbd,.settings-page .formula-hotkey-binding-copy strong,.settings-page .formula-hotkey-binding-copy span,.settings-page .formula-hotkey-binding-copy code,.settings-page .formula-hotkey-binding-row kbd,.settings-page .formula-row-hotkey-off,.settings-page .office-formula-format-select span,.settings-page .formula-hotkey-manager-summary strong{font-size:12px}.settings-page .formula-inset-preview-titlebar span,.settings-page .formula-font-live-preview>span:first-child,.settings-page .theme-preview-status{display:none}.settings-page .theme-preview-toolbar button,.settings-page .theme-preview-controls button{font-size:12px}.shortcut-tabs{position:sticky;top:-16px;z-index:1}.settings-page[data-settings-page-content=agents] .settings-section-title h3,.settings-page[data-settings-page-content=agents] .office-settings-heading h3{display:none}.settings-update-button{align-self:flex-start}.settings-page :is([data-button-shortcuts],[data-anywhere-shortcuts],[data-office-formula-shortcuts])>.settings-section-title{display:none}.settings-page .office-formula-shortcut-clear:disabled{visibility:hidden}.settings-dialog .settings-page .formula-spacing-customization .settings-subdialog-trigger strong{font-size:12px}.settings-group>.secondary-button,.settings-group>.configuration-transfer-actions{align-self:flex-start}.settings-page .theme-preview-titlebar strong,.settings-page .office-hotkey-unassigned,.settings-page .office-hotkey-action-row kbd,.settings-page .formula-hotkey-section-heading strong,.settings-page .png-background-controls strong,.settings-page details>summary{font-size:12px}html body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover){--suggestion-zindex: 1200;z-index:1200!important}:root{--cand-band: #e2edf5;--cand-band-current: #c9dfef;--cand-picture-current: #eef4f8;--cand-head: #1d4f71;--cand-head-hover: #245e86;--cand-head-current: #2b78ad;--cand-head-text: #ffffff;--cand-cell: #eef4f8;--cand-cell-current: #d9eaf6;--cand-mark: var(--accent);--cand-text: var(--text)}:root[data-theme=beige]{--cand-band: #efe5d9;--cand-band-current: #e1d5c6;--cand-picture-current: #f6eee3;--cand-head: #60442b;--cand-head-hover: #6e5137;--cand-head-current: #88694e;--cand-cell: #f6eee3;--cand-cell-current: #e9dfd1}:root[data-theme=dark]{--cand-band: #26394a;--cand-band-current: #2f5470;--cand-picture-current: #363d47;--cand-head: #132c40;--cand-head-hover: #1a3a52;--cand-head-current: #2c6f99;--cand-cell: #363d47;--cand-cell-current: #27495f}:root[data-theme=purple]{--cand-band: #4b3b5c;--cand-band-current: #5f4d76;--cand-picture-current: #453851;--cand-head: #2e2639;--cand-head-hover: #443955;--cand-head-current: #786495;--cand-cell: #453851;--cand-cell-current: #5a486f}:root[data-theme=green]{--cand-band: #314b3d;--cand-band-current: #3e604c;--cand-picture-current: #35443d;--cand-head: #1e2f24;--cand-head-hover: #2c4636;--cand-head-current: #4d7a5f;--cand-cell: #35443d;--cand-cell-current: #3b5a48}:root[data-candidate-style=bar] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover){min-width:0;max-width:calc(var(--vtx-popover-viewport, 100vw) - 16px);border:0!important;border-radius:0!important;background:var(--surface)!important;box-shadow:0 6px 18px #0000003d!important}:root[data-candidate-style=bar] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover).top-tip:after,:root[data-candidate-style=bar] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover).bottom-tip:after{display:none}:root[data-candidate-style=bar] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) ul{flex-flow:row nowrap!important;align-items:stretch!important;column-gap:1px;max-height:none;padding:0!important;overflow-x:auto;overflow-y:hidden;background:var(--surface)!important}:root[data-candidate-style=bar] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) li,:root[data-candidate-style=bar] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) li+li{width:auto!important;min-height:0;display:grid!important;grid-template-columns:auto auto;grid-template-rows:auto 1fr;gap:0;align-items:stretch!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}:root[data-candidate-style=bar] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) .ML__popover__index,:root[data-candidate-style=bar] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) .ML__popover__latex{grid-row:1;align-self:stretch;display:flex;align-items:center;min-width:0;padding:5px 0;background:var(--cand-head);color:var(--cand-head-text)!important;font:13px/1.2 Menlo,Consolas,JetBrains Mono,monospace!important;text-align:left;white-space:nowrap}:root[data-candidate-style=bar] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) .ML__popover__index{grid-column:1;flex:none;padding-left:7px}:root[data-candidate-style=bar] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) .ML__popover__index:not(:empty):after{content:"."}:root[data-candidate-style=bar] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) .ML__popover__latex{grid-column:2;padding-right:8px;overflow:visible}:root[data-candidate-style=bar] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) .ML__popover__label,:root[data-candidate-style=bar] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) .ML__popover__keybinding{display:none!important}:root[data-candidate-style=bar] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) .ML__popover__command,:root[data-candidate-style=bar] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) li.has-visualtex-command-preview .ML__popover__command{grid-row:2;grid-column:1 / span 2;align-self:stretch!important;min-width:0!important;min-height:34px;display:flex;align-items:center;justify-content:center;padding:4px 8px;background:color-mix(in srgb,var(--cand-text) 7%,var(--surface));color:var(--cand-text)!important;font-size:1.15rem!important}:root[data-candidate-style=bar] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) li.ML__popover__current .ML__popover__index,:root[data-candidate-style=bar] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) li.ML__popover__current .ML__popover__latex{background:var(--cand-head-current);color:var(--cand-head-text)!important}:root[data-candidate-style=bar] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) li.ML__popover__current .ML__popover__command{background:var(--cand-cell-current);color:var(--cand-text)!important}:root[data-candidate-style=bar] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) li:hover .ML__popover__index,:root[data-candidate-style=bar] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) li:hover .ML__popover__latex{background:var(--cand-head-hover)}:root[data-candidate-style=row] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover){min-width:0;max-width:calc(var(--vtx-popover-viewport, 100vw) - 16px);background:var(--surface)!important}:root[data-candidate-style=row] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover).top-tip:after,:root[data-candidate-style=row] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover).bottom-tip:after{display:none}:root[data-candidate-style=row] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) ul{flex-flow:row nowrap!important;align-items:stretch!important;column-gap:1px;max-height:none;padding:0!important;overflow-x:auto;overflow-y:hidden;background:var(--surface)!important}:root[data-candidate-style=row] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) li,:root[data-candidate-style=row] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) li+li,:root[data-candidate-style=row] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) li.ML__popover__current,:root[data-candidate-style=row] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) li:hover,:root[data-candidate-style=row] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) li.is-active,:root[data-candidate-style=row] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) li.is-pressed{width:auto!important;min-height:0;display:grid!important;grid-template-columns:auto auto;grid-template-rows:auto 1fr;gap:0;align-items:stretch!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}:root[data-candidate-style=row] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) .ML__popover__index,:root[data-candidate-style=row] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) .ML__popover__latex{grid-row:1;align-self:stretch;display:flex;align-items:center;padding:5px 0;background:var(--cand-head);color:var(--cand-head-text)!important;white-space:nowrap}:root[data-candidate-style=row] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) .ML__popover__index{grid-column:1;flex:none;padding-left:8px;padding-right:5px;text-align:left}:root[data-candidate-style=row] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) .ML__popover__latex{grid-column:2;padding-right:9px;overflow:visible}:root[data-candidate-style=row] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) .ML__popover__label,:root[data-candidate-style=row] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) .ML__popover__keybinding{display:none!important}:root[data-candidate-style=row] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) .ML__popover__command,:root[data-candidate-style=row] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) li.has-visualtex-command-preview .ML__popover__command{grid-row:2;grid-column:1 / span 2;align-self:stretch!important;min-width:0!important;min-height:36px;display:flex;align-items:center;justify-content:center;padding:4px 8px;background:var(--cand-cell);color:var(--cand-text)!important;font-size:1.15rem!important}:root[data-candidate-style=row] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) li.ML__popover__current .ML__popover__index,:root[data-candidate-style=row] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) li.ML__popover__current .ML__popover__latex{background:var(--cand-head-current);color:var(--cand-head-text)!important}:root[data-candidate-style=row] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) li.ML__popover__current .ML__popover__command{background:var(--cand-cell-current)}:root[data-candidate-style=row] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) li:not(.ML__popover__current):hover .ML__popover__index,:root[data-candidate-style=row] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) li:not(.ML__popover__current):hover .ML__popover__latex{background:var(--cand-head-hover)}html body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) .ML__popover__name{display:none}:root[data-candidate-style=list] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover){--cand-picture: var(--surface);--cand-band-width: 196px;background:var(--surface)!important}:root[data-candidate-style=list] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) ul{row-gap:1px;padding:0!important;background:var(--surface)!important}:root[data-candidate-style=list] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) li,:root[data-candidate-style=list] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) li+li,:root[data-candidate-style=list] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) li:hover,:root[data-candidate-style=list] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) li.is-active,:root[data-candidate-style=list] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) li.is-pressed,:root[data-candidate-style=list] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) li.ML__popover__current{display:grid!important;grid-template-columns:28px calc(var(--cand-band-width) - 28px) minmax(120px,1fr);align-items:center;gap:0;min-height:0;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:linear-gradient(to right,var(--cand-band) 0 var(--cand-band-width),var(--cand-picture) var(--cand-band-width))!important}:root[data-candidate-style=list] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) li.ML__popover__current{background:linear-gradient(to right,var(--cand-band-current) 0 var(--cand-band-width),var(--cand-picture-current) var(--cand-band-width))!important}:root[data-candidate-style=list] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) li:not(.ML__popover__current):hover{background:linear-gradient(to right,color-mix(in srgb,var(--cand-band) 55%,var(--cand-band-current)) 0 var(--cand-band-width),var(--cand-picture) var(--cand-band-width))!important}:root[data-candidate-style=list] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) .ML__popover__index{justify-self:center;color:var(--cand-mark)!important}:root[data-candidate-style=list] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) .ML__popover__latex{display:block;padding:0 10px 0 0;overflow:hidden;color:var(--cand-text)!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}:root[data-candidate-style=list] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) .ML__popover__command,:root[data-candidate-style=list] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) li.has-visualtex-command-preview .ML__popover__command{min-width:0!important;min-height:46px;display:flex;align-items:center;justify-content:center;padding:4px 10px;color:var(--cand-text)!important}:root[data-candidate-style=card] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover){min-width:360px;border-radius:12px!important}:root[data-candidate-style=card] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) ul{padding:6px!important}:root[data-candidate-style=card] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) li,:root[data-candidate-style=card] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) li+li,:root[data-candidate-style=card] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) li:hover,:root[data-candidate-style=card] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) li.is-active,:root[data-candidate-style=card] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) li.is-pressed,:root[data-candidate-style=card] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) li.ML__popover__current{display:grid!important;grid-template-columns:84px minmax(0,1fr) auto;grid-template-rows:auto auto;align-items:center;column-gap:12px;row-gap:1px;min-height:52px;margin:0!important;padding:5px 10px 5px 6px!important;border:0!important;border-radius:9px!important;box-shadow:none!important;background:transparent!important}:root[data-candidate-style=card] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) li:hover{background:color-mix(in srgb,var(--cand-band) 50%,transparent)!important}:root[data-candidate-style=card] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) li.ML__popover__current{background:var(--cand-band)!important}:root[data-candidate-style=card] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) li>*{grid-row:1;justify-self:start;text-align:left}:root[data-candidate-style=card] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) .ML__popover__command,:root[data-candidate-style=card] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) li.has-visualtex-command-preview .ML__popover__command{grid-column:1;grid-row:1 / span 2;justify-self:stretch;width:84px;min-width:0!important;height:42px;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:0!important;border-radius:8px;background:color-mix(in srgb,var(--cand-text) 6%,var(--surface));color:var(--cand-text)!important;font-size:.78rem!important}:root[data-candidate-style=card] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) li.ML__popover__current .ML__popover__command{background:var(--surface);box-shadow:0 0 0 1px var(--accent-border)}:root[data-candidate-style=card] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) .ML__popover__latex{grid-column:2;grid-row:1;align-self:end;max-width:100%;color:var(--cand-text)!important;font:13px/1.25 JetBrains Mono,Menlo,Consolas,monospace!important}:root[data-candidate-style=card] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) li:not(:has(.ML__popover__name)) .ML__popover__latex{grid-row:1 / span 2;align-self:center}:root[data-candidate-style=card] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) .ML__popover__match{color:var(--cand-mark);font-weight:700}:root[data-candidate-style=card] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) .ML__popover__name{grid-column:2;grid-row:2;align-self:start;display:block;color:var(--text-muted);font:12px/1.3 -apple-system,BlinkMacSystemFont,PingFang SC,Microsoft YaHei,system-ui,sans-serif;white-space:nowrap}:root[data-candidate-style=card] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) .ML__popover__index{grid-column:3;grid-row:1 / span 2;justify-self:end;display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 4px;border:1px solid var(--border-strong);border-bottom-width:2px;border-radius:4px;color:var(--text-faint)!important;font:600 11px/1 -apple-system,BlinkMacSystemFont,system-ui,sans-serif}:root[data-candidate-style=card] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) .ML__popover__index:empty{visibility:hidden}:root[data-candidate-style=card] body :is(#mathlive-suggestion-popover,#visualtex-native-input-suggestion-popover) li.ML__popover__current .ML__popover__index{border-color:var(--accent-border);color:var(--cand-mark)!important}.settings-inline-choice{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;padding:0 4px}.settings-inline-choice>strong{font-size:13px;font-weight:600}.settings-inline-choice .theme-segment{flex:0 0 380px}.settings-inline-choice .theme-segment button{flex:1 1 auto;white-space:nowrap}.candidate-style-preview{display:flex;justify-content:flex-end;margin-bottom:12px;padding:0 4px 12px}.candidate-style-preview .vtx-cmd-menu{position:relative;z-index:auto;flex:none;max-width:100%;pointer-events:none}:root:not([data-candidate-style=card]) .candidate-style-preview .vtx-cmd-desc{display:none}
