.stem-editor-shell{--stem-editor-min-height:14rem}.stem-editor-shell .stem-editor-fallback{min-height:var(--stem-editor-min-height)}.stem-editor-shell .jodit-container:not(.jodit_inline){overflow:hidden;border:1px solid var(--input);border-radius:calc(var(--radius) + 8px);background:color-mix(in oklch,var(--background) 96%,transparent);box-shadow:0 10px 30px -24px rgb(15 23 42/.4);transition:border-color .15s ease,box-shadow .15s ease}.stem-editor-shell .jodit-workplace,.stem-editor-shell .jodit-wysiwyg{background:transparent}.stem-editor-shell .jodit-status-bar,.stem-editor-shell .jodit-toolbar__box{border-color:color-mix(in oklch,var(--border) 78%,transparent);background:color-mix(in oklch,var(--muted) 82%,var(--background))}.stem-editor-shell .jodit-toolbar-button__button,.stem-editor-shell .jodit-toolbar-editor-collection_mode_horizontal .jodit-toolbar-button{border-radius:calc(var(--radius) + 2px)}.stem-editor-shell .jodit-toolbar-button__button:hover,.stem-editor-shell .jodit-toolbar-button__button[aria-pressed=true],.stem-editor-shell .jodit-toolbar-editor-collection_mode_horizontal .jodit-toolbar-button:hover{background:color-mix(in oklch,var(--primary) 12%,var(--background))}.stem-editor-shell .jodit-wysiwyg{min-height:var(--stem-editor-min-height);padding:1rem;color:var(--foreground)}.stem-editor-shell .jodit-placeholder{color:color-mix(in oklch,var(--muted-foreground) 86%,transparent)}.stem-editor-shell .jodit-container:focus-within:not(.jodit_inline){border-color:color-mix(in oklch,var(--primary) 60%,white);box-shadow:0 0 0 3px color-mix(in oklch,var(--primary) 18%,transparent),0 10px 30px -24px rgb(15 23 42/.4)}.stem-editor-shell[data-disabled=true] .jodit-wysiwyg{background:color-mix(in oklch,var(--muted) 65%,var(--background))}.stem-editor-shell .stem-chem,.stem-editor-shell .stem-math{display:inline;padding:0 2px;user-select:none;white-space:nowrap;cursor:default;border-radius:4px;transition:background .15s ease,outline-color .15s ease}.stem-editor-shell .stem-chem:hover,.stem-editor-shell .stem-math:hover{background:color-mix(in oklch,var(--primary) 10%,transparent);outline:1px solid color-mix(in oklch,var(--primary) 22%,transparent)}.stem-editor-shell .stem-math[data-display=block]{display:block;margin:.8em 0;padding:.4em;text-align:center}.stem-editor-shell .stem-chem-error,.stem-editor-shell .stem-math-error{padding:2px 4px;color:#dc2626;font-family:monospace;background:#fef2f2;border:1px solid #fecaca;border-radius:3px}.stem-editor-shell .stem-structure{display:inline-block;user-select:none;vertical-align:middle;cursor:default;border:1px solid transparent;border-radius:4px;transition:border-color .15s ease}.stem-editor-shell .stem-structure:hover{border-color:color-mix(in oklch,var(--primary) 24%,transparent)}.stem-editor-shell .stem-structure svg{display:block;max-width:100%}.stem-chem-popup,.stem-math-popup{display:flex;flex-direction:column;gap:8px;min-width:380px;padding:12px;font-family:inherit}.stem-popup-row{display:flex;gap:6px;align-items:center}.stem-popup-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:4px}.stem-btn,.stem-mode-btn{padding:6px 14px;font-size:.9em;color:rgb(55 65 81);cursor:pointer;background:white;border:1px solid rgb(209 213 219);border-radius:10px;transition:background .1s ease,border-color .1s ease,color .1s ease}.stem-btn:hover,.stem-mode-btn:hover{background:rgb(249 250 251)}.stem-btn--primary,.stem-mode-btn--active{color:var(--primary-foreground);background:var(--primary);border-color:var(--primary)}.stem-btn--primary:hover,.stem-mode-btn--active:hover{background:color-mix(in oklch,var(--primary) 90%,black)}.stem-example-chip{padding:2px 8px;font-size:.78em;color:rgb(75 85 99);cursor:pointer;background:rgb(249 250 251);border:1px solid rgb(229 231 235);border-radius:999px;transition:background .1s ease,border-color .1s ease,color .1s ease}.stem-example-chip:hover{color:color-mix(in oklch,var(--primary) 72%,black);background:color-mix(in oklch,var(--primary) 10%,white);border-color:color-mix(in oklch,var(--primary) 28%,white)}.stem-examples{display:flex;flex-wrap:wrap;gap:6px}.stem-ce-label{font-family:monospace;font-size:.95em;color:rgb(107 114 128);white-space:nowrap}.stem-chem-input{flex:1;padding:6px 8px;font-size:1em;border:1px solid rgb(209 213 219);border-radius:10px;outline:none;transition:border-color .15s ease,box-shadow .15s ease}.stem-chem-input:focus{border-color:color-mix(in oklch,var(--primary) 56%,white);box-shadow:0 0 0 2px color-mix(in oklch,var(--primary) 16%,transparent)}.stem-chem-preview,.stem-math-preview{min-height:52px;padding:10px 12px;overflow-x:auto;text-align:center;background:rgb(250 250 250);border:1px solid rgb(229 231 235);border-radius:10px}