*{box-sizing:border-box}body{margin:0;font-family:system-ui,-apple-system,sans-serif;background:#f5f6f8;color:#1a1a1a}header{padding:16px 24px;background:#fff;border-bottom:1px solid #e0e0e0}header h1{margin:0 0 4px}main{display:flex;gap:16px;padding:16px}.canvas-section{flex:2;display:flex;flex-direction:column;gap:12px}.canvas-actions{display:flex;gap:8px}.canvas-section button{padding:10px 24px;background:#2563eb;color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:14px}.canvas-section button:hover{background:#1d4ed8}.canvas-section button.secondary{background:#fff;color:#2563eb;border:1px solid #2563eb}.canvas-section button.secondary:hover{background:#eff6ff}.side-panels{flex:1;display:flex;flex-direction:column;gap:16px}.code-panel,.output-panel{background:#1e1e1e;color:#d4d4d4;padding:12px;border-radius:6px}.output-panel{min-height:160px}.plot-panel,.predict-form{background:#fff;border:1px solid #e0e0e0;padding:12px;border-radius:6px}.code-panel h3,.output-panel h3,.plot-panel h3,.predict-form h3{margin-top:0;color:#9ca3af;font-size:13px;text-transform:uppercase;letter-spacing:.05em}.code-panel-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;background:none;border:none;padding:0;margin:0;color:#9ca3af;font-size:13px;text-transform:uppercase;letter-spacing:.05em;font-family:inherit;cursor:pointer}.code-panel-toggle:hover{color:#d4d4d4}.code-panel-chevron{font-size:11px}.code-panel pre{margin-top:10px}.predict-fields{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px;margin-bottom:12px}.predict-field{display:flex;flex-direction:column;font-size:12px;gap:4px}.predict-field span{color:#4b5563;font-weight:600}.predict-field input,.predict-field select{padding:6px 8px;border:1px solid #d1d5db;border-radius:4px;font-size:13px}.predict-form button{padding:8px 20px;background:#2563eb;color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:14px}.predict-form button:hover{background:#1d4ed8}.predict-form button:disabled{opacity:.6;cursor:default}.predict-result{margin-top:12px;font-size:14px}.code-panel pre,.output-panel pre{white-space:pre-wrap;word-break:break-word;font-family:Fira Code,monospace;font-size:13px;margin:0}.output-error{color:#f87171;white-space:pre-wrap;word-break:break-word;font-family:inherit;margin:0}.error-block{margin-top:8px;border-left:3px solid #f87171;padding-left:10px}.error-details{margin-top:6px}.error-details summary{cursor:pointer;color:#9ca3af;font-size:12px}.error-details summary:hover{color:#d4d4d4}.output-error-raw{color:#9ca3af;font-size:12px;margin-top:6px}.status{color:#93c5fd;font-size:13px}
