.python-lab{margin:1.5rem 0;border:1px solid rgba(15,23,42,.14);border-radius:18px;overflow:hidden;background:#fff;box-shadow:0 12px 30px rgba(15,23,42,.08)}
.python-lab__header{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start;padding:1rem 1.1rem;background:#0f172a;color:#fff}
.python-lab__header h3{margin:.15rem 0 0;color:#fff}
.python-lab__status{font-size:.86rem;font-weight:700;padding:.35rem .65rem;border-radius:999px;background:rgba(255,255,255,.12);white-space:nowrap}
.python-lab__body{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr)}
.python-lab__pane{min-width:0}
.python-lab__pane+.python-lab__pane{border-left:1px solid rgba(15,23,42,.12)}
.python-lab .python-lab__label{display:block;padding:.7rem 1rem;font-weight:800;background:#f8fafc;border-bottom:1px solid rgba(15,23,42,.1);color:#0f172a !important}
.python-lab textarea{width:100%;min-height:330px;resize:vertical;border:0;padding:1rem;font:15px/1.55 ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;background:#0b1020;color:#e5eefc;tab-size:4;box-sizing:border-box}
.python-lab textarea:focus{outline:3px solid rgba(59,130,246,.35);outline-offset:-3px}
.python-lab pre{margin:0;min-height:330px;padding:1rem;white-space:pre-wrap;word-break:break-word;background:#111827;color:#d1fae5;font:14px/1.55 ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace}
.python-lab__controls{display:flex;flex-wrap:wrap;gap:.65rem;padding:.85rem 1rem;border-top:1px solid rgba(15,23,42,.1);background:#f8fafc}
.python-lab .python-lab__note{margin:0;padding:.85rem 1rem;background:#eff6ff;border-top:1px solid #bfdbfe;font-size:.92rem;color:#0f172a !important}
.python-lab .python-lab__note strong{color:#0f172a !important}
.python-lab .python-lab__note code{color:#0f172a !important;background:#dbeafe;padding:.08rem .28rem;border-radius:.25rem}
@media (max-width:800px){.python-lab__body{grid-template-columns:1fr}.python-lab__pane+.python-lab__pane{border-left:0;border-top:1px solid rgba(15,23,42,.12)}.python-lab textarea,.python-lab pre{min-height:260px}}
.python-lab .python-lab__label{color:#0f172a !important}
.python-lab .python-lab__note{color:#0f172a !important}
.python-lab .python-lab__note strong{color:#0f172a !important}
.python-lab .python-lab__note code{color:#0f172a !important;background:#dbeafe}
