.working-editor{display:flex;flex:1;flex-direction:column;min-width:0;min-height:0;background:var(--t-bg);color:var(--t-text)}
.working-editor[hidden]{display:none!important}
.working-editor-toolbar{display:flex;align-items:center;gap:8px;min-height:30px;padding:0 10px;border-bottom:1px solid var(--t-divider);font:11px var(--font);user-select:none}
.working-editor-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--t-muted)}
.working-editor-status{margin-left:auto;white-space:nowrap;color:var(--t-muted)}
.working-editor-toolbar button{height:24px;padding:0 7px;border:0;border-radius:3px;white-space:nowrap;font:11px var(--font);color:var(--t-text);background:transparent}
.working-editor-toolbar button:hover{background:var(--t-selected)}
.working-editor-body{position:relative;display:flex;flex:1;min-height:0;min-width:0;overflow:hidden}
.working-editor-gutter{flex-shrink:0;overflow:hidden;min-width:4ch;padding:0 10px 0 4px;text-align:right;box-sizing:content-box;color:var(--t-muted);opacity:.6;font:14px/23px var(--mono);user-select:none}
.working-editor-gutter>div>div{height:23px}
.working-editor-input{display:block;flex:1;min-width:0;min-height:0;width:100%;height:100%;margin:0;padding:8px 20px 50px 8px;border:0;border-radius:0;resize:none;outline:0!important;box-shadow:none!important;background:var(--t-bg);color:var(--t-text);caret-color:var(--t-text);font:14px/23px var(--mono);letter-spacing:normal;tab-size:2;white-space:pre;overflow:auto;user-select:text!important;-webkit-user-select:text!important}
.working-editor-input::selection{background:var(--t-selected);color:var(--t-text)}
@media(max-width:600px){.working-editor-title{display:none}.working-editor-status{margin-left:0;margin-right:auto}}
.working-editor-body>.cm-editor{flex:1;height:100%;min-width:0;background:var(--t-bg);color:var(--t-code);font:14px/23px var(--mono)}
.working-editor-body .cm-editor.cm-focused{outline:none}
.working-editor-body .cm-scroller{overflow:auto;font-family:var(--mono);line-height:23px}
.working-editor-body .cm-content{padding:8px 0 60px;caret-color:var(--t-text);user-select:text;-webkit-user-select:text}
.working-editor-body .cm-line{padding:0 18px 0 8px}
.working-editor-body .cm-gutters{background:var(--t-bg);color:var(--t-number);border-right:0;user-select:none}
.working-editor-body .cm-lineNumbers .cm-gutterElement{min-width:38px;padding-right:12px}
.working-editor-body .cm-activeLine,.working-editor-body .cm-activeLineGutter{background:var(--t-active)}
.working-editor-body .cm-activeLineGutter{color:var(--t-number-active)}
.working-editor-body .cm-cursor,.working-editor-body .cm-dropCursor{border-left-color:var(--t-text)}
/* Outrank CodeMirror's focused light-theme default without painting over syntax. */
.working-editor-body .cm-editor > .cm-scroller > .cm-selectionLayer .cm-selectionBackground,
.working-editor-body .cm-editor.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground{background:var(--t-code-selection)}
.working-editor-body .cm-content::selection,.working-editor-body .cm-content ::selection{color:inherit}
.working-editor-body .cm-selectionMatch{background:var(--t-match)}
.working-editor-body .cm-panels,.working-editor-body .cm-tooltip{background:var(--t-popup);color:var(--t-text);border:1px solid var(--t-border);font:12px/1.5 var(--font)}
.working-editor-body .cm-panels input,.working-editor-body .cm-panels button{color:var(--t-text);background:var(--t-bg);border:1px solid var(--t-border);font:inherit}
.working-editor-body .cm-tooltip-autocomplete>ul>[aria-selected]{background:var(--t-selected);color:var(--t-text)}
.working-editor-body .cm-tooltip-autocomplete>ul{font-family:var(--mono)}
.working-editor-body .cm-vim-panel{padding:3px 10px;border-top:1px solid var(--t-divider);font:12px var(--mono)}
.working-editor-body .cm-fat-cursor{background:var(--t-text)!important;color:var(--t-bg)!important}
.working-editor-body .cm-editor:not(.cm-focused) .cm-fat-cursor{outline:1px solid var(--t-text);background:transparent!important;color:inherit!important}
.editor-locations{position:absolute;right:12px;top:12px;z-index:20;max-width:min(600px,90%);max-height:60%;overflow:auto;border:1px solid var(--t-border);border-radius:4px;background:var(--t-popup);box-shadow:0 8px 24px #0003;padding:4px}
.editor-locations[hidden]{display:none}.editor-locations button{display:block;width:100%;padding:5px 10px;text-align:left;background:transparent;color:var(--t-text);border:0;font:12px var(--mono)}
.editor-locations button:hover{background:var(--t-hover)}
.editor-type-info{max-width:600px;max-height:300px;overflow:auto;padding:8px 12px;white-space:pre-wrap;font:12px/1.5 var(--mono);user-select:text}
@media(max-width:700px){.working-editor-toolbar{gap:2px}.working-editor-toolbar button{padding:0 4px}.working-editor-status{max-width:110px;overflow:hidden;text-overflow:ellipsis}}
.working-editor-toolbar[hidden]{display:none!important}
.working-editor-toolbar-inline{border:0;padding:0;min-height:0;gap:6px}
.working-editor-toolbar-inline .working-editor-title{display:none}
.working-editor-toolbar-inline .working-editor-status{max-width:140px;overflow:hidden;text-overflow:ellipsis}
.working-editor-body .cm-tooltip.cm-tooltip-autocomplete>ul>li[aria-selected]{background:var(--t-selected);color:var(--t-text)}

#editor-toolbar:empty{display:none}#editor-toolbar{margin-left:auto}#file-toolbar:has(.working-editor-toolbar:not([hidden])) .file-actions{display:none}#file-toolbar:has(.working-editor-toolbar:not([hidden])) #breadcrumbs{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.working-editor-toolbar button:has(svg){display:inline-flex;align-items:center;justify-content:center;width:26px;padding:0}.working-editor-toolbar svg{width:16px;height:16px;display:block;color:var(--t-icon)}
.working-editor-status:empty{display:none}
.working-editor-toolbar:not(:has(button:not([hidden]))):not(:has(.working-editor-status:not(:empty))){display:none}
.working-editor-status:not(:empty){color:var(--t-keyword);font-size:11px}
