.editor-tool-slot{min-height:112px;background:#172428;border-top:1px solid #34494a}
.code-tools{padding:7px 9px;background:#172428;color:#e3eeeb;box-sizing:border-box}
.code-tool-row{display:flex;gap:6px;align-items:center;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#405c59 transparent;padding:2px 0 5px;touch-action:pan-x}
.code-key{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-width:44px;min-height:44px;padding:6px 10px;background:#243639;color:#dceee9;border:1px solid #3d5554;border-radius:8px;font:600 16px/1.2 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;touch-action:manipulation;user-select:none;-webkit-user-select:none}
.code-key:hover:not(:disabled){border-color:#7ad8c5;color:#9fe7d7;background:#2b4244}
.code-key:active:not(:disabled){background:#36544f}
.code-key:disabled{opacity:.38;cursor:default}
.code-key[data-code-action=print]{font-size:12px;color:#a4dfca}
.code-key[data-code-action=undo],.code-key[data-code-action=redo]{color:#ead17f}
.code-tools.is-floating{position:fixed;z-index:40;border:1px solid #45615e;border-radius:12px;box-shadow:0 -8px 28px #00000040;padding-bottom:max(7px,env(safe-area-inset-bottom))}
.editor .ti{font-size:16px;scrollbar-width:thin;scroll-padding:16px;white-space:pre;overflow-wrap:normal}
@media(max-width:640px){.editor .ti{height:230px;min-height:180px;resize:vertical;padding:16px;line-height:1.8}.code-tool-row{gap:5px}.code-tools{padding:6px 7px}.code-key{min-width:44px;min-height:44px}}
@media(prefers-reduced-motion:reduce){.code-tools,.code-key{transition:none!important}}

.code-editor-help{font-size:10px;color:#a5bcb7;margin:0;padding:7px 12px 10px;background:#172428;line-height:1.7}
@media(pointer:coarse){.code-editor-help{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);padding:0;margin:-1px}}
