.mte{position:relative;min-width:0}.mte-box{position:relative;display:block;width:100%;box-sizing:border-box;min-height:2.75em;max-height:60vh;overflow-y:auto;padding:7px 10px;border:1px solid var(--zn-line-strong, #cdd3dc);border-radius:8px;background:#fff;color:var(--zn-text, #1f2933);font-size:14px;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere;outline:none;cursor:text}.mte-box:focus{border-color:var(--primary, #2f8f5b);box-shadow:0 0 0 3px var(--primary-ring, #2f8f5b33)}.mte-box.empty:before{content:attr(data-placeholder);position:absolute;color:#a3aab2;pointer-events:none}.mte-fx{border-radius:4px;background:var(--primary-soft, #e8f4ed);cursor:pointer;-webkit-user-select:all;user-select:all}.mte-fx:hover{box-shadow:0 0 0 1px var(--primary, #2f8f5b)}.mte-fx.display{display:block}.mte-fx.bad{background:#fff1f0;box-shadow:0 0 0 1px #f3b4ae}.mte-fx .katex-display{margin:.4em 0}.mte-bar{position:fixed;z-index:1200;display:inline-flex;align-items:center;gap:2px;padding:3px;border-radius:9px;background:#1f2330;box-shadow:0 6px 18px #0000002e;white-space:nowrap;font:12px/1 Microsoft YaHei,PingFang SC,sans-serif}.mte-bar.above{transform:translateY(-100%)}.mte-bar>button,.mte-sym>button{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-width:0;height:26px;margin:0;padding:0 9px;border:0;border-radius:6px;background:transparent;box-shadow:none;color:#fff;cursor:pointer;font:inherit}.mte-bar>button:hover,.mte-bar>button.on{background:#ffffff29}.mte-bar>.mte-bar-fx{background:var(--mte-accent, #2f8f5b);font-weight:700}.mte-bar>.mte-bar-fx:hover{background:var(--mte-accent, #2f8f5b);filter:brightness(1.1)}.mte-sym{position:absolute;top:calc(100% + 4px);right:0;display:grid;grid-template-columns:repeat(8,30px);gap:2px;padding:6px;border-radius:10px;background:#1f2330;box-shadow:0 10px 28px #00000040}.mte-sym>button{padding:0;height:28px;font-size:15px;font-family:Times New Roman,SimSun,serif}.mte-sym>button:hover{background:#ffffff2e}.mte-fx-layer{display:contents}.modal.mte-fx{width:min(760px,calc(100vw - 32px))}.mte-fx-tools,.mte-fx-syms{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:8px}.mte-fx-tools button,.mte-fx-syms button{min-width:34px;height:32px;padding:0 9px;border:1px solid #e3ddd4;border-radius:8px;background:#faf8f5;color:var(--zn-text, #1f2933);font-size:14px}.mte-fx-tools button{border-color:var(--primary-ring, #cfe5d8);background:var(--primary-soft, #e8f4ed);font-weight:600}.mte-fx-tools button:hover,.mte-fx-syms button:hover{border-color:var(--primary, #2f8f5b);color:var(--primary, #2f8f5b)}.mte-fx-field{display:flex;align-items:center;min-height:74px;margin:10px 0 6px}.mte-fx-host{--mte-line: var(--primary, #2f8f5b);flex:1;min-width:0}.mte-fx-host:empty{display:none}.mte-fx-host .mte-mf{display:block;width:100%;box-sizing:border-box;padding:12px 14px;border:2px solid var(--mte-line);border-radius:10px;font-size:28px}.mte-fx-host .mte-mf:focus-within{outline:none;box-shadow:0 0 0 3px var(--primary-ring, #2f8f5b33)}.mte-fx-muted,.mte-fx-error{display:flex;align-items:center;gap:6px;margin:4px 0 0;color:var(--zn-muted, #6b7280);font-size:12.5px}.mte-fx-error{color:#b42318}.mte-fx-actions{display:flex;align-items:center;gap:10px;margin-top:14px}.mte-fx-actions .primary{gap:6px;padding:10px 18px;font-size:14px;white-space:nowrap}.mte-grow{flex:1}
