/* Shared code presentation, with real source selection and copy. */
.nq-code-editor{--code-bg:#151c27;--code-text:#dce5f2;--code-muted:#8b9bb2;--code-line:#293447;--code-tag:#8ab4ff;--code-attribute:#9edcca;--code-string:#edc68c;--code-keyword:#c4b4ff;--code-number:#f2b5b5;display:block!important;position:relative;padding:0!important;margin-block:20px;border:0!important;border-radius:16px!important;background:var(--code-bg)!important;color:var(--code-text)!important;box-shadow:0 8px 28px #1018270d;overflow:hidden;direction:ltr;text-align:left;min-width:0}
.nq-code-editor .nq-code-header{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:56px;padding:8px 20px;border-bottom:1px solid var(--code-line);background:#ffffff04}
.nq-code-editor .nq-code-filename{font:14px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace;color:var(--code-muted)}
.nq-code-editor .nq-code-copy{position:static!important;inset:auto!important;display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:6px 12px;border:0!important;border-radius:7px;background:#ffffff0a;color:var(--code-text)!important;font:500 14px/1.6 var(--nq-font-english,system-ui);text-decoration:none;cursor:pointer}
.nq-code-editor .nq-code-copy:hover{background:#ffffff16}
.nq-code-editor .nq-code-scroll{display:grid;grid-template-columns:auto minmax(max-content,1fr);max-height:460px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#526078 transparent;outline-offset:-3px}
.nq-code-editor .nq-code-gutter{display:flex;flex-direction:column;align-items:flex-end;position:sticky;left:0;z-index:1;user-select:none;padding:20px 16px 24px 20px;background:var(--code-bg);color:#718299;font:14px/1.9 ui-monospace,SFMono-Regular,Consolas,monospace;min-width:48px}
.nq-code-editor pre,.nq-code-editor pre code{font:14px/1.9 ui-monospace,SFMono-Regular,Consolas,monospace!important;tab-size:2;letter-spacing:0;direction:ltr;text-align:left;white-space:pre!important;overflow-wrap:normal!important;word-break:normal;color:var(--code-text);background:transparent;border:0}
.nq-code-editor pre{margin:0!important;padding:20px 24px 24px 0!important;max-height:none!important;overflow:visible!important;outline:none}
.nq-code-editor .code-tag{color:var(--code-tag)}.nq-code-editor .code-attribute{color:var(--code-attribute)}.nq-code-editor .code-string{color:var(--code-string)}.nq-code-editor .code-keyword{color:var(--code-keyword)}.nq-code-editor .code-number{color:var(--code-number)}.nq-code-editor .code-comment{color:#94a4bb}.nq-code-editor .code-punctuation{color:#a0afc5}
.nq-code-editor :is(button,.nq-code-scroll):focus-visible{outline:2px solid #9cbfff;outline-offset:-3px}
@media(max-width:640px){.nq-code-editor{border-radius:12px!important}.nq-code-editor .nq-code-header{padding-inline:16px}.nq-code-editor .nq-code-gutter{padding-inline:14px 12px;min-width:40px}.nq-code-editor pre{padding-inline-end:20px!important}}
@media(forced-colors:active){.nq-code-editor{border:1px solid CanvasText!important}.nq-code-editor :is(code,span){color:CanvasText!important}}
