/* Pandas Visual Runtime: responsive light-blue inspection and chart dashboard. */
.lwc-viz-modal[hidden]{display:none!important}
.lwc-viz-modal{position:fixed;inset:0;z-index:760;
  padding:clamp(6px,1.5vw,18px);box-sizing:border-box;display:flex;
  background:#0b2438cf;backdrop-filter:blur(7px);
  overscroll-behavior:contain;color:#193d59;font-family:system-ui,-apple-system,Segoe UI,Arial,sans-serif}
body.lwc-viz-active{overflow:hidden}
.lwc-viz-shell{display:flex;flex-direction:column;min-height:0;width:min(100%,1600px);
  margin:auto;border:1px solid #aad2ed;border-radius:17px;overflow:hidden;background:#f8fbff;
  box-shadow:0 22px 70px #061a2b88;height:100%}
.lwc-viz-header{padding:13px clamp(11px,2.1vw,28px);display:flex;align-items:center;
  justify-content:space-between;gap:12px;background:#eaf6ff;border-bottom:1px solid #bbdbf0}
.lwc-viz-brand{display:flex;align-items:center;gap:10px;min-width:0}
.lwc-viz-brand>span{font-size:29px}
.lwc-viz-eyebrow{font-size:10px;letter-spacing:1px;font-weight:800;color:#5288ae}
.lwc-viz-brand h2{font-size:clamp(17px,2.3vw,26px);margin:3px 0;color:#20577e}
#lwcVizClose{border:1px solid #8ebcdb;background:#fff;color:#225a7b;padding:8px 12px;
  border-radius:9px;font-size:12px;font-weight:800;cursor:pointer;flex:none}
#lwcVizClose:focus-visible,.lwc-viz-tab:focus-visible{outline:3px solid #e8a130;outline-offset:2px}
.lwc-viz-tabs{display:flex;gap:6px;overflow-x:auto;flex:none;background:#f2f9ff;padding:9px 12px;border-bottom:1px solid #d5e7f4}
.lwc-viz-tab{padding:9px 14px;border:1px solid #bcd8ea;color:#2c607e;background:#fff;border-radius:10px;font-size:12px;
  font-weight:800;cursor:pointer;white-space:nowrap}
.lwc-viz-tab.selected{background:#2179bc;color:#fff;border-color:#2179bc}
.lwc-viz-scroll{flex:1;min-height:0;overflow:auto;padding:clamp(12px,2vw,25px);
  overscroll-behavior:contain;scrollbar-gutter:stable}
.lwc-viz-scroll>section{margin:0 0 19px}
.lwc-viz-intro>h3,.lwc-viz-section>h3{font-size:19px;color:#20577e;margin:0 0 11px}
.lwc-viz-intro>p{font-size:12px;color:#5b7b92;margin:0 0 14px}
.lwc-viz-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.lwc-viz-stat{padding:12px 14px;border-radius:12px;background:#e5f3fd;border:1px solid #c5e1f4;display:flex;gap:4px;flex-direction:column}
.lwc-viz-stat-label{font-size:11px;color:#5b829f;font-weight:800}
.lwc-viz-stat-value{font-size:21px;color:#1d5a85;font-variant-numeric:tabular-nums}
.lwc-viz-section{border:1px solid #cce3f3;background:#fff;border-radius:13px;padding:16px}
.lwc-viz-table-scroll{overflow:auto;border:1px solid #d8e6f1;border-radius:9px}
.lwc-viz-table{border-collapse:collapse;width:100%;font-size:12px;white-space:nowrap}
.lwc-viz-table th,.lwc-viz-table td{text-align:left;padding:9px 12px;border-bottom:1px solid #e4edf5;color:#325778}
.lwc-viz-table th{font-weight:800;background:#e9f5fe;color:#215679;position:sticky;top:0}
.lwc-viz-table tbody tr:nth-child(even){background:#f7fbff}
.lwc-viz-table tbody tr:hover{background:#e8f4ff}
.lwc-viz-columns{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}
.lwc-viz-column{border:1px solid #dfedf6;border-radius:9px;background:#f5fbff;padding:10px;display:flex;flex-direction:column;gap:4px}
.lwc-viz-column strong{color:#235a7d;font-size:12px;overflow-wrap:anywhere}
.lwc-viz-column small{color:#66849b;font-size:11px}
.lwc-viz-column span{color:#3a647f;font-size:11px}
.lwc-viz-charts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.lwc-viz-chart{border:1px solid #dae9f2;border-radius:11px;padding:13px;background:#fcfeff;min-width:0}
.lwc-viz-chart h4{font-size:13px;color:#2e6282;margin:0 0 9px}
.lwc-viz-chart svg{display:block;width:100%;height:auto;max-height:280px;overflow:visible}
.lwc-viz-chart-note,.lwc-viz-help{font-size:11px;color:#63849c;margin:6px 0 0}
.lwc-viz-empty{padding:28px;background:#edf7fe;border:1px solid #bcdcf1;border-radius:12px}
.lwc-viz-empty h3{font-size:19px;color:#245d88;margin:0 0 12px}
.lwc-viz-empty p{color:#49738c;font-size:13px}
.lwc-viz-empty code{display:block;white-space:pre-wrap;background:#dceffc;padding:12px;font-size:12px;color:#214c6b;border-radius:9px}
.lwc-viz-footer{flex:none;background:#eaf6ff;border-top:1px solid #cce1f0;color:#517891;font-size:11px;padding:11px 18px}
.lwc-viz-active .speakerPanel{z-index:790}
.lwc-viz-active .lwc-roaming-actor{z-index:770}
@media(max-width:780px){
 .lwc-viz-modal{padding:4px}
 .lwc-viz-shell{border-radius:8px}
 .lwc-viz-header{padding:9px}
 .lwc-viz-brand>span{font-size:22px}
 .lwc-viz-eyebrow{font-size:8px;letter-spacing:.4px}
 .lwc-viz-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
 .lwc-viz-charts{grid-template-columns:1fr}
 .lwc-viz-scroll{padding:9px}
 .lwc-viz-section{padding:10px}
 .lwc-viz-footer{padding:7px 10px;font-size:10px}
}
/* Champuter lives in the visualization itself, regardless of the Walk on page toggle. */
.lwc-viz-shell{position:relative}
.lwc-viz-presenter{
  position:absolute;right:12px;top:112px;z-index:5;
  width:194px;min-height:318px;box-sizing:border-box;
  display:flex;flex-direction:column;align-items:center;gap:4px;
  padding:6px 10px 12px;
  background:linear-gradient(170deg,#eaf6ff,#ffffff);
  border:1px solid #b7d9f1;border-radius:14px;
  box-shadow:0 8px 24px rgba(33,98,148,.18);
  pointer-events:none;
}
.lwc-viz-portrait{height:247px;width:100%;display:flex;align-items:center;justify-content:center;
  overflow:visible;color:#286a96;font-size:45px}
.lwc-viz-svg{display:block;width:100%;height:247px;overflow:visible;
  filter:drop-shadow(0 7px 7px rgba(20,67,101,.20))}
.lwc-viz-portrait .limb{transform-box:view-box}
.lwc-viz-portrait #lwcViz-right-arm{animation:lwc-viz-wave 2.9s ease-in-out infinite alternate}
.lwc-viz-portrait #lwcViz-head-rig{animation:lwc-viz-head 4.1s ease-in-out infinite alternate}
@keyframes lwc-viz-wave{from{transform:rotate(-7deg)}to{transform:rotate(-27deg)}}
@keyframes lwc-viz-head{from{transform:rotate(-2deg)}to{transform:rotate(2deg)}}
.lwc-viz-voice{text-align:center;min-width:0;color:#315c79}
.lwc-viz-voice strong{display:block;color:#1e6597;font-size:14px}
.lwc-viz-voice p{font-size:11px;line-height:1.35;margin:4px 0 0;
  overflow-wrap:anywhere;max-height:80px;overflow:auto}
.lwc-viz-scroll{padding-right:225px}
.lwc-viz-tabs{padding-right:220px}
@media(max-width:980px) and (min-width:781px){
  .lwc-viz-presenter{width:158px;top:117px;min-height:250px}
  .lwc-viz-portrait,.lwc-viz-svg{height:195px}
  .lwc-viz-scroll{padding-right:177px}
  .lwc-viz-tabs{padding-right:170px}
}
@media(max-width:780px){
  .lwc-viz-presenter{
    position:relative;top:auto;right:auto;width:auto;min-height:0;height:98px;
    flex-direction:row;justify-content:flex-start;gap:10px;
    margin:7px 9px 1px;padding:4px 10px;
    box-shadow:none;flex:none;border-radius:10px;
  }
  .lwc-viz-portrait,.lwc-viz-svg{width:75px;height:90px;flex:none}
  .lwc-viz-voice{text-align:left}
  .lwc-viz-voice strong{font-size:12px}
  .lwc-viz-voice p{font-size:10px;line-height:1.2;max-height:60px}
  .lwc-viz-scroll{padding-right:9px}
  .lwc-viz-tabs{padding-right:10px}
}
@media(max-height:425px){
  .lwc-viz-presenter{height:64px;margin:3px 8px}
  .lwc-viz-portrait,.lwc-viz-svg{height:60px;width:52px}
  .lwc-viz-voice p{max-height:38px}
}
@media(prefers-reduced-motion:reduce){
  .lwc-viz-portrait #lwcViz-right-arm,.lwc-viz-portrait #lwcViz-head-rig{animation:none}
}

/* Guided teaching tour: Champuter moves to each data section and chart. */
.lwc-viz-presenter{
  left:0!important;top:0!important;right:auto!important;
  width:166px;min-height:250px;
  padding:6px 9px 10px;
  transform:translate3d(14px,128px,0);
  transition:transform 1.05s cubic-bezier(.16,.75,.27,1);
  will-change:transform;
}
.lwc-viz-portrait,.lwc-viz-svg{height:180px}
.lwc-viz-presenter .lwc-viz-voice p{max-height:98px}
.lwc-viz-header-controls{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
#lwcVizTour,#lwcVizStop{
  appearance:none;cursor:pointer;border:1px solid #9fcbe7;border-radius:9px;
  background:#f5fbff;color:#205a84;font-size:12px;
  font-weight:800;padding:8px 10px;white-space:nowrap;
}
#lwcVizTour{background:#247fbc;border-color:#247fbc;color:#fff}
#lwcVizTour:hover{background:#176a9f}
#lwcVizStop:hover{background:#e1f2fe}
#lwcVizTour:disabled,#lwcVizStop:disabled{opacity:.48;cursor:not-allowed}
#lwcVizTour:focus-visible,#lwcVizStop:focus-visible{outline:3px solid #eab651;outline-offset:2px}
.lwc-viz-highlight{
  outline:3px solid #eaaa45;outline-offset:2px;
  box-shadow:0 0 0 6px rgba(245,196,81,.18),0 6px 18px rgba(20,75,118,.12)!important;
  transition:outline-color .2s,box-shadow .2s;
}
.lwc-viz-presenter.is-pointing #lwcViz-right-arm{animation:lwc-viz-point 1.3s ease-in-out infinite alternate}
.lwc-viz-presenter.is-walking .lwc-viz-svg{animation:lwc-viz-bob .25s ease-in-out infinite alternate}
.lwc-viz-presenter.is-walking #lwcViz-left-leg{animation:lwc-viz-left-step .45s ease-in-out infinite alternate}
.lwc-viz-presenter.is-walking #lwcViz-right-leg{animation:lwc-viz-right-step .45s ease-in-out infinite alternate}
.lwc-viz-presenter.is-speaking #lwcViz-mouth-line{opacity:0}
/* Mouth stays centered at the original SVG cx/cy; JS animates only rx/ry.
   Never scale the ellipse around the SVG document origin. */
.lwc-viz-presenter.is-speaking #lwcViz-mouth-open{
  opacity:1;transform:none;animation:none;
}
.lwc-viz-presenter.is-speaking #lwcViz-mouth-tongue{opacity:.45}
@keyframes lwc-viz-point{from{transform:rotate(-40deg)}to{transform:rotate(-62deg)}}
@keyframes lwc-viz-bob{from{transform:translateY(0)}to{transform:translateY(-3px)}}
@keyframes lwc-viz-left-step{from{transform:rotate(14deg)}to{transform:rotate(-14deg)}}
@keyframes lwc-viz-right-step{from{transform:rotate(-14deg)}to{transform:rotate(14deg)}}

.lwc-viz-scroll{padding-right:184px}
.lwc-viz-tabs{padding-right:177px}
@media(max-width:980px) and (min-width:781px){
  .lwc-viz-presenter{width:132px;min-height:206px}
  .lwc-viz-portrait,.lwc-viz-svg{height:150px}
  .lwc-viz-scroll{padding-right:148px}
  .lwc-viz-tabs{padding-right:145px}
}
@media(max-width:780px){
  .lwc-viz-header-controls{gap:4px}
  #lwcVizTour,#lwcVizStop,#lwcVizClose{font-size:10px;padding:6px}
  .lwc-viz-presenter{
    position:absolute;left:0!important;top:0!important;right:auto!important;
    flex-direction:column;justify-content:center;gap:2px;
    width:103px;height:155px;min-height:0;
    margin:0;padding:4px 5px;box-shadow:0 5px 15px rgba(32,84,124,.17);
  }
  .lwc-viz-portrait,.lwc-viz-svg{width:91px;height:108px}
  .lwc-viz-voice{text-align:center}
  .lwc-viz-voice strong{font-size:10px}
  .lwc-viz-voice p{font-size:9px;max-height:47px;line-height:1.15}
  .lwc-viz-scroll{padding-right:10px}
  .lwc-viz-tabs{padding-right:10px}
}
@media(max-height:425px){
  .lwc-viz-presenter{height:104px;width:81px}
  .lwc-viz-portrait,.lwc-viz-svg{height:68px;width:67px}
  .lwc-viz-voice p{max-height:20px}
}
@media(prefers-reduced-motion:reduce){
 .lwc-viz-presenter{transition:none}
 .lwc-viz-presenter.is-walking #lwcViz-left-leg,
 .lwc-viz-presenter.is-walking #lwcViz-right-leg,
 .lwc-viz-presenter.is-walking .lwc-viz-svg,
 .lwc-viz-presenter.is-pointing #lwcViz-right-arm,
 .lwc-viz-presenter.is-speaking #lwcViz-mouth-open{animation:none}
}

/* Champuter's universal Python visualizations, including plain scripts. */
.lwc-viz-program-section{scroll-margin-top:12px}
.lwc-viz-program-note{color:#567992;font:500 12px/1.6 system-ui;margin:5px 0 15px}
.lwc-viz-code-box{max-height:280px;overflow:auto;background:#0d2438;border-radius:9px;
 color:#e9f5ff;padding:13px 6px;border:1px solid #406078;font:500 12px/1.65 Consolas,monospace}
.lwc-viz-code-line{display:flex;min-width:max-content;gap:12px;padding:1px 8px;white-space:pre}
.lwc-viz-code-line:nth-child(2n){background:#183349}
.lwc-viz-code-line span{color:#91b4c9;text-align:right;min-width:3ch;user-select:none}
.lwc-viz-code-line code{color:#e9f5ff;font:inherit}
.lwc-viz-flow{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px}
.lwc-viz-flow-node{background:#e7f3fc;border:1px solid #bcd9ed;border-radius:10px;
 padding:12px;display:flex;flex-direction:column;gap:5px;text-transform:capitalize;
 color:#19517a;font-size:12px}
.lwc-viz-flow-node span{font-weight:850;font-size:20px}
.lwc-viz-trace-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
 max-height:480px;overflow:auto;gap:9px;padding:5px}
.lwc-viz-trace-row{background:#f2f9ff;border:1px solid #d5e8f6;border-radius:10px;
 display:flex;flex-direction:column;gap:6px;padding:11px;min-width:0;scroll-margin:15px;cursor:default}
.lwc-viz-trace-row strong{font-size:12px;color:#215f91}
.lwc-viz-trace-row code{font:550 12px/1.5 Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere;color:#27475b}
.lwc-viz-trace-row small{font:500 11px/1.5 system-ui;color:#54778e;overflow-wrap:anywhere}
.lwc-viz-trace-row:focus-visible{outline:3px solid #e3ad4d;outline-offset:2px}
.lwc-viz-variables{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px}
.lwc-viz-variable{background:#f4faff;border:1px solid #cfdfec;border-radius:10px;
 display:flex;flex-direction:column;gap:5px;padding:12px;min-width:0}
.lwc-viz-variable strong{font-size:13px;color:#1d5f8c;overflow-wrap:anywhere}
.lwc-viz-variable small{font-size:10px;color:#627d92}
.lwc-viz-variable code{font:500 12px/1.5 Consolas,monospace;overflow-wrap:anywhere;color:#173e56}
.lwc-viz-value-list{display:flex;flex-direction:column;gap:3px;max-height:130px;overflow:auto;
 background:#e9f4fb;padding:7px;border-radius:7px}
.lwc-viz-value-list span{font:500 11px/1.45 Consolas,monospace;overflow-wrap:anywhere}
.lwc-viz-console{white-space:pre-wrap;overflow:auto;max-height:400px;padding:14px;
 border-radius:9px;background:#101f2e;color:#d9fae6;font:500 12px/1.6 Consolas,monospace}
.lwc-viz-console-error{background:#391e2a;color:#ffe1df}
.lwc-viz-figure{width:100%;max-height:420px;object-fit:contain;border:1px solid #dae9f2;
 border-radius:12px;background:#fff}
@media(max-width:780px){
 .lwc-viz-trace-list{grid-template-columns:1fr;max-height:270px}
 .lwc-viz-code-box{max-height:200px}
 .lwc-viz-variables{grid-template-columns:repeat(auto-fit,minmax(142px,1fr))}
 .lwc-viz-flow{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* AST-derived ordered program structure; it describes source, not inferred execution. */
.lwc-viz-flow-timeline{display:flex;flex-wrap:wrap;align-items:center;gap:8px;
 margin-top:13px;padding:13px;background:#f4faff;border:1px solid #d3e6f4;border-radius:10px}
.lwc-viz-flow-step{display:flex;flex-direction:column;gap:5px;min-width:135px;max-width:230px;
 background:#fff;border:1px solid #bbd7ea;border-radius:8px;padding:8px 10px}
.lwc-viz-flow-step strong{font:800 11px system-ui;color:#24638d;text-transform:capitalize}
.lwc-viz-flow-step code{font:500 11px/1.45 Consolas,monospace;color:#375a76;overflow-wrap:anywhere}
.lwc-viz-flow-arrow{color:#2e81b7;font:800 20px system-ui;transform:rotate(-90deg)}
@media(max-width:780px){.lwc-viz-flow-timeline{flex-direction:column;align-items:stretch}
 .lwc-viz-flow-step{max-width:100%}.lwc-viz-flow-arrow{transform:none;align-self:center}}
