/* Editor Python: estilos isolados para não alterar o Editor Web nem os laboratórios atuais. */
.pp-editor-python { --pep-bg:#101b27; --pep-line:#304457; --pep-ink:#edf5fb; --pep-muted:#b3c2ce; max-width:1480px; width:100%; margin:0 auto; padding:clamp(14px,2vw,28px); border-radius:18px; background:var(--pep-bg); color:var(--pep-ink); border:1px solid var(--pep-line); }
.pp-editor-python * { box-sizing:border-box; }
.pp-editor-python__intro { margin-bottom:18px; }
.pp-editor-python__eyebrow { display:inline-block; margin-bottom:8px; color:#79e2ef; font-size:.76rem; font-weight:800; letter-spacing:.09em; }
.pp-editor-python__intro h2 { margin:0 0 8px; color:#fff; font-size:clamp(1.5rem,3vw,2.1rem); }
.pp-editor-python__intro p, .pp-editor-python__note { color:var(--pep-muted); line-height:1.6; }
.pp-editor-python code { padding:1px 4px; border-radius:4px; background:#263b4e; color:#f0f8ff; }
.pp-editor-python__toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:9px; margin:16px 0; }
.pp-editor-python__toolbar button { min-height:44px; border:1px solid #3a5267; border-radius:9px; padding:10px 15px; background:#23394d; color:#fff; font-weight:750; cursor:pointer; }
.pp-editor-python__toolbar .pp-editor-python__run { background:#16834a; border-color:#16834a; }
.pp-editor-python__toolbar button:disabled { opacity:.65; cursor:wait; }
.pp-editor-python__status { color:#c7d5df; font-size:.88rem; }
.pp-editor-python__layout { display:grid; grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr); gap:18px; align-items:stretch; width:100%; }
.pp-editor-python__code-area, .pp-editor-python__output-area { min-width:0; overflow:hidden; border:1px solid var(--pep-line); border-radius:11px; }
.pp-editor-python__panel { min-width:0; background:#0d151e; }
.pp-editor-python__panel label, .pp-editor-python__output-title { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:12px 14px; background:#203448; color:#f2f7fa; font-weight:800; }
.pp-editor-python__panel label span, .pp-editor-python__output-title span { color:#c2d0dc; font-size:.78rem; font-weight:500; }
.pp-editor-python__panel textarea { display:block; width:100%; min-height:520px; resize:vertical; border:0!important; border-radius:0!important; padding:14px!important; background:#0d151e!important; color:#e8f2f8!important; font:14px/1.65 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace!important; white-space:pre; tab-size:4; box-shadow:none!important; }
.pp-editor-python__panel p { margin:0; padding:10px 12px; background:#172636; color:var(--pep-muted); font-size:.82rem; line-height:1.5; }
.pp-editor-python__output-area { display:flex; flex-direction:column; min-height:620px; background:#0b1118; }
.pp-editor-python__output { flex:1; min-height:560px; max-height:850px; overflow:auto; margin:0; padding:20px; white-space:pre-wrap; overflow-wrap:anywhere; background:#0b1118; color:#d4f7d4; font:14px/1.7 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; }
.pp-editor-python__panel .CodeMirror { width:100%; min-height:520px; height:auto; background:#282a36; color:#f8f8f2; font:14px/1.65 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; border:0; }
.pp-editor-python__panel .CodeMirror-scroll { min-height:520px; max-height:850px; }
.pp-editor-python__panel .CodeMirror-gutters { background:#21222c; border-right:1px solid #414450; }
.pp-editor-python__panel .CodeMirror-linenumber { color:#7f849b; padding:0 8px 0 5px; }
.pp-editor-python__panel .CodeMirror-cursor { border-left:2px solid #f8f8f0; }
.pp-editor-python__panel .CodeMirror-selected, .pp-editor-python__panel .CodeMirror-focused .CodeMirror-selected { background:#44475a!important; }
.pp-editor-python__panel .CodeMirror-matchingbracket { color:#50fa7b!important; text-decoration:underline; font-weight:bold; }
.pp-editor-python__panel .CodeMirror pre { padding-left:4px; }
.pp-editor-python__note { margin:14px 0 0; font-size:.9rem; }
@media(min-width:1200px) { .pp-editor-python__layout { grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); gap:22px; } .pp-editor-python__panel .CodeMirror, .pp-editor-python__panel textarea { min-height:640px; } .pp-editor-python__panel .CodeMirror-scroll { min-height:640px; } .pp-editor-python__output-area { min-height:760px; } .pp-editor-python__output { min-height:700px; } }
@media(max-width:900px) { .pp-editor-python__layout { grid-template-columns:minmax(0,1fr); } .pp-editor-python__panel .CodeMirror, .pp-editor-python__panel textarea { min-height:400px; } .pp-editor-python__panel .CodeMirror-scroll { min-height:400px; } .pp-editor-python__output-area { min-height:420px; } .pp-editor-python__output { min-height:360px; } }
@media(max-width:600px) { .pp-editor-python { padding:12px; } .pp-editor-python__panel .CodeMirror, .pp-editor-python__panel textarea { min-height:320px; font-size:12px!important; } .pp-editor-python__panel .CodeMirror-scroll { min-height:320px; } .pp-editor-python__output-area { min-height:340px; } .pp-editor-python__output { min-height:280px; font-size:12px; } .pp-editor-python__toolbar button { flex:1; } .pp-editor-python__status { flex-basis:100%; } }
