.python-executions-section{margin:20px 0;display:flex;flex-direction:column;gap:16px}.python-execution-card{border:1px solid rgba(63,94,251,.3);border-radius:8px;padding:20px;overflow:hidden;transition:all .3s ease;margin:16px 0}.python-execution-card,.python-execution-card.running{background:linear-gradient(135deg,rgba(63,94,251,.15),rgba(70,138,252,.1));box-shadow:0 4px 20px rgba(63,94,251,.15)}.python-execution-card.running{border:1px solid rgba(63,94,251,.3)}.python-execution-card.completed{background:linear-gradient(135deg,rgba(63,94,251,.12),rgba(70,138,252,.08));border:1px solid rgba(63,94,251,.24);padding:20px;box-shadow:0 4px 20px rgba(63,94,251,.12);margin:16px 0}.python-execution-card.error{background:linear-gradient(135deg,rgba(239,68,68,.15),rgba(220,38,38,.1));border:1px solid rgba(239,68,68,.3);box-shadow:0 4px 20px rgba(239,68,68,.15)}body.light-mode .python-execution-card{background:linear-gradient(135deg,rgba(63,94,251,.1),rgba(70,138,252,.05));border:1px solid rgba(63,94,251,.25)}body.light-mode .python-execution-card.completed{background:linear-gradient(135deg,rgba(63,94,251,.08),rgba(70,138,252,.04));border:1px solid rgba(63,94,251,.2)}body.light-mode .python-execution-card.error{background:linear-gradient(135deg,rgba(239,68,68,.1),rgba(220,38,38,.05));border:1px solid rgba(239,68,68,.25)}.python-execution-header{display:flex;align-items:center;gap:12px;justify-content:space-between}.python-execution-card.compact{margin:0;padding:12px;box-shadow:none}.python-execution-card.compact .python-execution-header{justify-content:flex-end}.python-execution-card.compact .python-execution-code{margin-top:10px;max-height:220px}.thinking-content.python-tool-step-content,body.light-mode .thinking-content.python-tool-step-content{padding:0;background:transparent;border:none}.python-execution-heading{display:flex;flex-direction:column;min-width:0;gap:4px}.python-execution-icon{width:36px;height:36px;background:linear-gradient(135deg,#3F5EFB,#468AFC);border-radius:10px;display:flex;align-items:center;justify-content:center;color:#ffffff;box-shadow:0 4px 12px rgba(63,94,251,.3)}.python-execution-status{color:#ffffff;font-size:1rem;font-weight:600;letter-spacing:0}body.light-mode .python-execution-status{color:#1a1a2e}.python-execution-purpose{color:rgba(255,255,255,.68);font-size:.88rem;line-height:1.35;overflow-wrap:anywhere}body.light-mode .python-execution-purpose{color:rgba(0,0,0,.62)}.python-view-code-btn{flex:0 0 auto;border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.08);color:#ffffff;border-radius:8px;padding:8px 12px;font-size:.86rem;font-weight:600;cursor:pointer;transition:background .2s ease,border-color .2s ease}.python-view-code-btn:hover{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.32)}body.light-mode .python-view-code-btn{border:1px solid rgba(37,99,235,.25);background:rgba(37,99,235,.08);color:#1d4ed8}body.light-mode .python-view-code-btn:hover{background:rgba(37,99,235,.14)}.python-execution-code{margin:14px 0 0;background:rgba(0,0,0,.32);border:1px solid rgba(255,255,255,.1);border-radius:8px;color:#e2e8f0;font-family:Courier New,monospace;font-size:.86rem;line-height:1.55;max-height:360px;overflow:auto;padding:14px;white-space:pre-wrap;overflow-wrap:anywhere}body.light-mode .python-execution-code{background:rgba(0,0,0,.05);border:1px solid rgba(0,0,0,.08);color:#111827}.python-execution-loader{height:4px;background:rgba(255,255,255,.15);border-radius:4px;overflow:hidden;margin-top:12px}body.light-mode .python-execution-loader{background:rgba(0,0,0,.1)}.python-loader-bar{height:100%;width:30%;background:linear-gradient(90deg,#3F5EFB,#468AFC,#3F5EFB);background-size:200% 100%;border-radius:4px;animation:pythonLoaderMove 1.5s ease-in-out infinite,pythonLoaderGradient 2s linear infinite}@keyframes pythonLoaderMove{0%{transform:translateX(-100%)}50%{transform:translateX(233%)}to{transform:translateX(-100%)}}@keyframes pythonLoaderGradient{0%{background-position:0 50%}to{background-position:200% 50%}}.python-execution-result{border-radius:8px;overflow:hidden;box-shadow:0 8px 24px rgba(0,0,0,.2);margin-top:14px}.python-generated-image{height:auto}.python-generated-image,.python-generated-image-shell{width:100%;display:block;border-radius:8px}.python-execution-output{background:rgba(0,0,0,.3);border-radius:8px;padding:16px;overflow-x:auto;margin-top:14px}.python-execution-output::-webkit-scrollbar{width:8px;height:8px}.python-execution-output::-webkit-scrollbar-track{background:rgba(126,126,126,.2);border-radius:10px}.python-execution-output::-webkit-scrollbar-thumb{background-color:#818181;border-radius:10px;border:2px solid transparent;background-clip:content-box}body.light-mode .python-execution-output::-webkit-scrollbar-track{background:rgba(161,161,161,.2)}body.light-mode .python-execution-output::-webkit-scrollbar-thumb{background-color:#666666}.python-execution-output pre{margin:0;color:#e2e8f0;font-family:Courier New,monospace;font-size:.9rem;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}body.light-mode .python-execution-output{background:rgba(0,0,0,.05)}body.light-mode .python-execution-output pre{color:#1a1a2e}.python-execution-error{background:linear-gradient(135deg,rgba(239,68,68,.15),rgba(220,38,38,.1));border:1px solid rgba(239,68,68,.3);border-radius:8px;padding:16px;margin-top:14px}.python-error-header{display:flex;align-items:center;gap:8px;color:#ef4444;font-weight:600;margin-bottom:12px}.python-error-message{margin:0;color:rgba(255,255,255,.8);font-family:Courier New,monospace;font-size:.85rem;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}body.light-mode .python-error-message{color:rgba(0,0,0,.7)}@media (max-width:768px){.python-execution-card{padding:16px;border-radius:12px}.python-execution-icon{width:32px;height:32px;border-radius:8px}.python-execution-status{font-size:.95rem}}@media (max-width:480px){.python-execution-card{padding:14px}.python-execution-header{gap:10px;margin-bottom:14px}.python-execution-status{font-size:.9rem}}.python-generating-banner{background:linear-gradient(135deg,rgba(63,94,251,.15),rgba(70,138,252,.1));border:1px solid rgba(63,94,251,.3);border-radius:16px;padding:20px;overflow:hidden;box-shadow:0 4px 20px rgba(63,94,251,.15);margin:16px 0}.python-generating-header{display:flex;align-items:center;gap:12px}.python-generating-icon{width:36px;height:36px;min-width:36px;background:linear-gradient(135deg,#3F5EFB,#468AFC);border-radius:10px;display:flex;align-items:center;justify-content:center;color:#ffffff;box-shadow:0 4px 12px rgba(63,94,251,.3)}.python-generating-text{color:#ffffff;font-size:1rem;font-weight:600;letter-spacing:.02em}.python-generating-loader{height:4px;background:rgba(255,255,255,.15);border-radius:4px;overflow:hidden;margin-top:12px}.python-generating-loader-bar{height:100%;width:30%;background:linear-gradient(90deg,#3F5EFB,#468AFC,#3F5EFB);background-size:200% 100%;border-radius:4px;animation:pythonLoaderMove 1.5s ease-in-out infinite,pythonLoaderGradient 2s linear infinite}body.light-mode .python-generating-banner{background:linear-gradient(135deg,rgba(63,94,251,.1),rgba(70,138,252,.05));border:1px solid rgba(63,94,251,.25)}body.light-mode .python-generating-text{color:#1a1a2e}body.light-mode .python-generating-loader{background:rgba(0,0,0,.1)}@media (max-width:768px){.python-generating-banner{padding:16px;border-radius:12px}.python-generating-header{gap:10px}.python-generating-icon{width:32px;height:32px;min-width:32px;border-radius:8px}.python-generating-text{font-size:.95rem}}@media (max-width:480px){.python-generating-banner{padding:14px}.python-generating-header{gap:10px}.python-generating-text{font-size:.9rem}}.python-load-output-btn{display:flex;align-items:center;gap:10px;padding:14px 20px;background:linear-gradient(135deg,#3F5EFB,#468AFC);border:none;border-radius:12px;color:#ffffff;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 15px rgba(63,94,251,.35);width:100%;justify-content:center}.python-load-output-btn:hover{transform:translateY(-2px);box-shadow:0 6px 20px rgba(63,94,251,.45)}.python-load-output-btn:active{transform:translateY(0)}.python-load-output-btn svg{width:20px;height:20px}body.light-mode .python-load-output-btn{background:linear-gradient(135deg,#3B82F6,#2563EB);box-shadow:0 4px 15px rgba(37,99,235,.3)}.python-file-download{margin-top:16px;display:flex;flex-wrap:wrap;gap:12px}.python-files-list{display:flex;flex-direction:column;gap:10px;margin-top:14px}.python-file-row{display:flex;align-items:center;justify-content:space-between;gap:12px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);border-radius:8px;padding:10px 12px}body.light-mode .python-file-row{background:rgba(255,255,255,.72);border:1px solid rgba(0,0,0,.08)}.python-file-name{color:rgba(255,255,255,.86);font-size:.9rem;min-width:0;overflow-wrap:anywhere}body.light-mode .python-file-name{color:#111827}.python-file-actions{display:flex;flex:0 0 auto;gap:8px}.python-open-btn{display:inline-flex;align-items:center;gap:8px;padding:12px 20px;background:linear-gradient(135deg,#3F5EFB,#468AFC);border:none;border-radius:8px;color:#ffffff;font-size:.95rem;font-weight:600;cursor:pointer;text-decoration:none;transition:all .3s ease;box-shadow:0 4px 15px rgba(63,94,251,.3)}.python-open-btn:hover{transform:translateY(-2px);box-shadow:0 6px 20px rgba(63,94,251,.4)}.python-open-btn svg{width:18px;height:18px}body.light-mode .python-open-btn{background:linear-gradient(135deg,#2563EB,#1D4ED8)}.python-download-btn{display:inline-flex;align-items:center;gap:8px;padding:12px 20px;background:linear-gradient(135deg,#10B981,#059669);border:none;border-radius:8px;color:#ffffff;font-size:.95rem;font-weight:600;cursor:pointer;text-decoration:none;transition:all .3s ease;box-shadow:0 4px 15px rgba(16,185,129,.3)}.python-download-btn:hover{transform:translateY(-2px);box-shadow:0 6px 20px rgba(16,185,129,.4)}.python-download-btn svg{width:18px;height:18px}body.light-mode .python-download-btn{background:linear-gradient(135deg,#059669,#047857)}@media (max-width:480px){.python-load-output-btn{padding:12px 16px;font-size:.95rem}.python-download-btn,.python-open-btn{padding:10px 16px;font-size:.9rem;flex:1 1;justify-content:center}.python-execution-header,.python-file-row{align-items:stretch;flex-direction:column}.python-file-actions{width:100%}}