.py-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:1.2rem}.py-header h1{font-size:1.6rem;margin:0}.py-sub{font-size:.82rem;color:var(--text-muted);margin-top:.1rem}.py-link{font-size:.8rem;color:var(--c-python);text-decoration:none;border:1px solid color-mix(in srgb,var(--c-python) 40%,transparent);padding:.4rem .8rem;border-radius:8px;white-space:nowrap}.py-link:hover{background:var(--c-python-glow)}.py-layout{display:grid;grid-template-columns:250px 1fr;gap:1rem;max-width:var(--max-width-wide);margin:0 auto}.py-side{display:flex;flex-direction:column;gap:.75rem}.py-modules{display:flex;gap:.35rem;flex-wrap:wrap}.py-mod{font-family:var(--font-mono);font-size:.8rem;padding:.3rem .65rem;border-radius:6px;border:1px solid var(--border);background:var(--bg-card);color:var(--text-secondary);cursor:pointer}.py-mod.active{background:var(--c-python);color:#04211c;font-weight:700;border-color:transparent}.py-exlist{display:flex;flex-direction:column;gap:.35rem;max-height:560px;overflow-y:auto}.py-ex{display:flex;align-items:center;gap:.5rem;padding:.5rem .6rem;text-align:left;border-radius:8px;border:1px solid var(--border);background:var(--bg-card);color:var(--text);cursor:pointer;font-size:.8rem}.py-ex:hover{border-color:var(--c-python)}.py-ex.active{border-color:var(--c-python);box-shadow:0 0 0 1px var(--c-python)}.py-ex-status{width:16px;height:16px;flex-shrink:0;border:1px solid var(--text-muted);border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:.7rem;color:#04211c}.py-ex-status.done{background:var(--c-python);border-color:var(--c-python)}.py-ex-title{flex:1}.py-ex-meta{font-size:.65rem;color:var(--text-muted)}.py-side-foot{font-size:.68rem;color:var(--text-muted);line-height:1.6}.py-side-foot code{font-family:var(--font-mono)}.py-main{display:flex;flex-direction:column;gap:.75rem;min-width:0}.py-question{border:1px solid var(--border);border-radius:10px;overflow:hidden;background:var(--bg-card)}.py-question-head{display:flex;justify-content:space-between;align-items:center;gap:.6rem;padding:.45rem .7rem;border-bottom:1px solid var(--border);background:var(--bg)}.pq-label{font-weight:600;font-size:.8rem;color:var(--c-python)}.pq-meta{font-size:.7rem;color:var(--text-muted);font-family:var(--font-mono)}.py-question-body{padding:.7rem .9rem;font-size:.82rem;line-height:1.7;white-space:pre-wrap;word-break:break-word;color:var(--text)}.py-editor-wrap{border:1px solid var(--border);border-radius:10px;overflow:hidden;background:var(--bg-card)}.py-editor-bar{display:flex;justify-content:space-between;align-items:center;padding:.4rem .7rem;border-bottom:1px solid var(--border);background:var(--bg)}.py-editor-file{font-family:var(--font-mono);font-size:.75rem;color:var(--text-secondary)}.py-editor-actions{display:flex;gap:.4rem;align-items:center}.py-runtime{font-size:.68rem;color:var(--text-muted);display:inline-flex;align-items:center;gap:.3rem;padding:.22rem .55rem;border-radius:999px;background:var(--bg-hover);border:1px solid var(--border);white-space:nowrap}.py-runtime:before{content:"";width:7px;height:7px;border-radius:50%;background:#f0a43a}.py-runtime.ready:before{background:var(--c-python)}.py-runtime.ready{color:var(--text-secondary)}.py-btn{font-size:.78rem;padding:.35rem .8rem;cursor:pointer;border-radius:7px;border:1px solid var(--border);background:var(--bg-card);color:var(--text)}.py-btn:hover{border-color:var(--text-muted)}.py-btn-run{background:var(--c-python);color:#04211c;font-weight:700;border-color:transparent}.py-btn-run:hover{box-shadow:0 0 12px var(--c-python-glow)}.py-editor{width:100%;height:320px;padding:.9rem;box-sizing:border-box;background:var(--bg);color:var(--text);border:none;outline:none;resize:vertical;font-family:var(--font-mono);font-size:.82rem;line-height:1.6;tab-size:4}.py-output{border:1px solid var(--border);border-radius:10px;padding:.9rem 1rem;min-height:140px;background:var(--bg-card);font-family:var(--font-mono);font-size:.78rem;line-height:1.7;white-space:pre-wrap;word-break:break-all}.py-output-hint{color:var(--text-muted);font-family:var(--font-mono)}.res-head{font-weight:700;margin-bottom:.4rem}.res-head.ok{color:var(--c-python)}.res-head.fail{color:#ff6b5e}.res-ok{color:var(--c-python)}.res-fail{color:#ffb454}.res-err{color:#ff6b5e}.py-footnote{margin-top:1.5rem;font-size:.72rem;color:var(--text-muted)}.py-footnote code{font-family:var(--font-mono)}@media(max-width:760px){.py-layout{grid-template-columns:1fr}.py-exlist{max-height:260px}}
