.editor-text-overlay{position:absolute;inset:0 0 0 46px;pointer-events:none;overflow:hidden;color:var(--text);z-index:2}
.editor-main{padding-top:54px}.editor-intro{margin-bottom:24px}.editor-toolbar{align-items:center}.editor-actions{display:flex;align-items:center;gap:8px}.editor-actions button{min-height:38px}.editor-actions button:disabled{opacity:.42;cursor:not-allowed}.editor-panel{min-width:0;min-height:540px;background:var(--editor-bg);display:flex;flex-direction:column}.editor-panel>.formatter-panel-head{min-height:48px}.document-meta{display:flex;gap:14px;color:var(--muted);font-size:10px;font-weight:700}.editor-text-wrap{position:relative;display:flex;flex:1;min-height:490px;background:var(--editor-bg)}.line-number-panel{width:46px;flex:0 0 46px;padding:18px 8px 18px 12px;border-right:1px solid var(--line);background:rgba(255,255,255,.02);color:var(--muted);font:13px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace;text-align:right;user-select:none;overflow:hidden}.line-number-panel span{display:block;height:1.7em}.editor-text-overlay,.editor-panel textarea{width:100%;min-height:490px;flex:1;resize:vertical;border:0;outline:0;padding:18px;box-sizing:border-box;background:var(--editor-bg);font:13px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace;tab-size:2;white-space:pre-wrap;word-break:break-word;overflow-wrap:anywhere}.editor-text-overlay{position:absolute;inset:0 0 0 46px;pointer-events:none;overflow:hidden;color:var(--text);z-index:2}.editor-text-overlay .invalid-highlight{display:inline;background:rgba(248,81,73,.18);box-shadow:inset 0 0 0 1px rgba(248,81,73,.75);border-radius:2px}.editor-panel textarea{position:relative;z-index:1;background:transparent;color:var(--text);caret-color:var(--text);padding-left:16px}.editor-panel textarea.invalid{border:1px solid rgba(248,81,73,.9)!important;box-shadow:inset 0 0 0 1px rgba(248,81,73,.2);background:transparent!important;color:transparent!important;-webkit-text-fill-color:transparent!important}.editor-panel textarea.invalid::placeholder{color:rgba(248,81,73,.7)}.editor-panel textarea::placeholder{color:var(--muted);opacity:.8}.editor-status{display:flex;align-items:flex-start;gap:9px;min-height:42px;padding:11px 14px;color:var(--muted);font-size:12px;overflow-wrap:anywhere}.editor-status.valid{color:var(--accent)}.editor-status.invalid{color:var(--error)}.editor-status #statusMark{font-size:15px;font-weight:900;line-height:1.2}.editor-panel,.editor-status{scroll-margin-top:76px}
@media(max-width:760px){.editor-main{padding-top:38px}.editor-toolbar{align-items:stretch;flex-direction:column}.editor-actions button{flex:1}.editor-actions:last-child{flex-wrap:wrap}.editor-actions:last-child button{min-width:calc(50% - 4px)}.editor-panel{min-height:420px}.editor-panel textarea{min-height:360px}.document-meta{gap:8px}}
@media(max-width:380px){.document-meta{font-size:9px}.editor-panel textarea{padding:13px}}
.editor-text-overlay{background:transparent;width:auto;flex:none;margin:0;padding-left:16px}
.editor-panel textarea{z-index:3}
.editor-commandbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 10px;background:#15342e;border:1px solid var(--line);border-radius:8px 8px 0 0}.editor-command-group{display:flex;align-items:center;gap:5px}.editor-commandbar button{width:32px;height:30px;border:0;border-radius:4px;background:transparent;color:var(--text);font-size:17px;cursor:pointer}.editor-commandbar button:hover:not(:disabled){background:rgba(255,255,255,.12)}.editor-commandbar button:disabled{opacity:.38;cursor:not-allowed}.editor-settings label,.editor-findbar label{color:var(--muted);font-size:11px;font-weight:700}.editor-settings select,.editor-findbar input{min-height:30px;border:1px solid var(--line);border-radius:4px;background:var(--bg);color:var(--text);padding:4px 8px}.editor-findbar{display:flex;align-items:center;gap:7px;padding:8px 10px;background:var(--surface);border-inline:1px solid var(--line)}.editor-findbar[hidden],.editor-tree[hidden]{display:none}.editor-findbar input{width:min(240px,45vw)}.editor-findbar button{width:30px;height:28px;border:1px solid var(--line);border-radius:4px;background:var(--bg);color:var(--text);cursor:pointer}.editor-findbar span{color:var(--muted);font-size:11px}.editor-text-wrap.tree-mode .line-number-panel,.editor-text-wrap.tree-mode .editor-text-overlay,.editor-text-wrap.tree-mode textarea{display:none}.editor-tree{position:absolute;inset:0;overflow:auto;padding:16px;color:var(--text);font:13px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace}.editor-tree details{margin-left:14px}.editor-tree summary{cursor:pointer;color:var(--accent-dark)}.editor-tree-node{margin-left:18px;white-space:pre-wrap;overflow-wrap:anywhere}.editor-tree-empty{color:var(--muted)}
@media(max-width:760px){.editor-commandbar{align-items:flex-start;flex-direction:column}.editor-command-group{flex-wrap:wrap}.editor-settings{width:100%}.editor-settings select{flex:1}.editor-findbar{flex-wrap:wrap}}
@media print{body>*:not(.editor-main){display:none!important}.editor-main>*:not(.editor-tool){display:none!important}.editor-commandbar,.editor-findbar,.editor-toolbar,.editor-status{display:none!important}.editor-tool,.editor-panel,.editor-text-wrap{display:block!important;min-height:0!important;height:auto!important;border:0!important;box-shadow:none!important;background:#fff!important}.editor-panel>.formatter-panel-head{display:flex!important;color:#111!important}.document-meta{color:#444!important}.line-number-panel,.editor-text-overlay{display:none!important}.editor-panel textarea{display:block!important;position:static!important;width:100%!important;height:auto!important;min-height:0!important;overflow:visible!important;resize:none!important;border:0!important;background:#fff!important;color:#111!important;-webkit-text-fill-color:#111!important;padding:0!important}}