/* Copyable source is a distinct editor surface; the surrounding site stays light. */
:root{--editor-bg:#20242c;--editor-bar:#2b303a;--editor-line:#444d5b;--editor-text:#e5e9f0;--editor-muted:#aab5c5;--editor-blue:#9cdcfe;--editor-string:#cece91;--editor-keyword:#c5a9f1;--editor-number:#e6b988;}
body :is(.guide-code,.code-tool,.pd-code,.copy-editor){background:var(--editor-bg);color:var(--editor-text);border-color:var(--editor-line);border-radius:12px;overflow:hidden;min-width:0;}
body .guide-code>div,body .agent-chat-layout .chat-code>header{background:var(--editor-bar);color:var(--editor-muted);border-color:var(--editor-line);min-height:52px;padding:10px 16px;gap:12px;}
body .guide-code>div>span,body .chat-code>header>span{overflow-wrap:anywhere;min-width:0;font-weight:500;}
body :is(.guide-code,.code-tool,.pd-code,.copy-editor) :is(.icon-button,[data-copy-code]){background:transparent;color:var(--editor-text);border-color:transparent;flex-shrink:0;transition:background-color .12s,border-color .12s;}
body .copy-editor :is(.icon-button,[data-copy-code]):is(:hover,:focus-visible){background:#464e5c;color:#fff;border-color:transparent;}
body :is(.code-tool,.pd-code,.copy-editor) .button.secondary{background:var(--editor-bar)!important;color:var(--editor-text)!important;border-color:var(--editor-line)!important;transition:background-color .12s,border-color .12s;}
body pre.code-editor-source{margin:0;background:var(--editor-bg);color:var(--editor-text);border:1px solid var(--editor-line);border-radius:10px;padding:24px;max-width:100%;max-height:560px;overflow:auto;white-space:pre;tab-size:2;text-align:start;font:400 14px/1.8 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:0;overscroll-behavior:contain;}
body .copy-editor pre.code-editor-source{border:0;border-radius:0;}
body pre.code-editor-source code,body .agent-chat-layout .chat-code pre.code-editor-source code{display:block;padding:0;background:transparent;color:var(--editor-text);font:inherit;letter-spacing:inherit;white-space:inherit;word-break:normal;overflow-wrap:normal;}
body .code-editor-source .token:is(.property,.attr-name,.parameter){color:var(--editor-blue);}
body .code-editor-source .token:is(.string,.attr-value,.url,.char){color:var(--editor-string);}
body .code-editor-source .token:is(.keyword,.boolean,.operator){color:var(--editor-keyword);}
body .code-editor-source .token:is(.number,.constant){color:var(--editor-number);}
body .code-editor-source .token:is(.function,.class-name,.builtin){color:#f0d99b;}
body .code-editor-source .token:is(.comment,.prolog,.doctype){color:#a4b3a2;}
body .code-editor-source .token:is(.punctuation,.tag){color:#c7cfdb;}
body .code-editor-source ::selection,body #landing-ai-prompt ::selection{background:#526581;color:#fff;}
body :is(.code-tool,.pd-code).copy-editor{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;padding:0;gap:0;}
body .copy-editor>.code-editor-label{grid-column:1;grid-row:1;background:var(--editor-bar);align-self:stretch;padding:16px 18px;font-size:13px;color:var(--editor-muted);}
body :is(.code-tool,.pd-code).copy-editor>button{position:static;transform:none;grid-column:2;grid-row:1;justify-self:end;margin:6px 10px;}
body :is(.code-tool,.pd-code).copy-editor>pre{grid-column:1/-1;grid-row:2;border-top:1px solid var(--editor-line);}
body #landing-ai-prompt{padding:clamp(20px,3vw,28px);background:var(--editor-bg);color:var(--editor-text);border:1px solid var(--editor-line);border-radius:10px;}
body #landing-ai-prompt :is(p,li,span){color:inherit;}
body #landing-ai-prompt .landing-prompt-sources{background:var(--editor-bar);color:var(--editor-muted);}
body #landing-ai-prompt .landing-prompt-source{color:var(--editor-blue);}
body :is(input,textarea).code-editor-input[readonly]:not([type=password]),body #app-root :is(input,textarea).code-editor-input[readonly]:not([type=password]),body #app-root :is(input,textarea).code-editor-input[readonly]:is(:hover,:focus,:active){background:var(--editor-bg);color:var(--editor-blue);border-color:var(--editor-line);font-family:ui-monospace,SFMono-Regular,Consolas,monospace;}
@media(max-width:767px){body pre.code-editor-source{padding:18px;font-size:13px;}body .guide-code>div,body .agent-chat-layout .chat-code>header{padding-inline:14px;}}

body pre.code-editor-source:focus-visible{box-shadow:inset 0 0 0 2px #9cdcfe;outline:0;}

body :is(.code-tool,.pd-code,.copy-editor) .button.secondary:is(:hover,:focus-visible){background:#464e5c!important;color:#fff!important;}
