/* Native source library, scientific protocol and CPython visualizer — PSUT navy. */
.ec-source-group{margin:16px 0;border:1px solid #a6bdd1;border-radius:12px;overflow:hidden;padding:0 16px 14px;line-height:1.58}.ec-source-head{background:#193c5c;color:#f0f7ff;padding:13px 16px;margin:0 -16px 14px}.ec-source-head span{text-transform:uppercase;letter-spacing:.09em;font-size:.73rem;color:#b8d2e9}.ec-source-head h3{margin:4px 0;color:#fff}.ec-source-group p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;margin:8px 0}.ec-source-group h4,.ec-source-group h5{margin:16px 0 7px}.ec-source-group math{font-size:1.1em;display:inline-block;max-width:100%;overflow:auto}.ec-src-chapter{border:1px solid #94aec4;border-radius:8px;margin:7px 0;overflow:hidden}.ec-src-chapter>summary{cursor:pointer;padding:11px 12px;background:#e6eff8;color:#173958;font-weight:650;overflow-wrap:anywhere}.ec-src-body{padding:12px;min-width:0}.ec-slide-text{border-left:3px solid #91b6d4;padding-left:10px;margin:10px 0}.ec-source-table{overflow:auto;margin:10px 0}.ec-source-table table{border-collapse:collapse;width:max-content;min-width:100%;font-size:.92rem}.ec-source-table td{border:1px solid #91acc4;padding:6px;vertical-align:top;min-width:30px}.ec-source-table tr:nth-child(even){background:#b8d1e41b}.ec-src-equation{margin:12px 0;overflow:auto}.ec-source-group figure{margin:14px auto;text-align:center;max-width:900px}.ec-source-group figure img{max-width:100%;height:auto;border:1px solid #a1b8cc;background:#fff;border-radius:7px}.ec-source-group figcaption{font-size:.8rem;color:inherit;opacity:.8}.ec-num{font-weight:bold;color:#286c9b}.ec-src-note,.ec-scientific-note{padding:12px;border-left:4px solid #3f89b1;background:#c6d9ec38;border-radius:6px}.ec-scientific-note h3{margin:0 0 6px}.ec-notebook-cell{border:1px solid #819fb9;border-radius:8px;margin:8px 0;padding:8px}.ec-notebook-cell small{font-size:.8rem;font-weight:650}.ec-notebook-cell pre{margin:8px 0 0;max-height:300px}.ec-notebook-text{overflow-wrap:anywhere}.ec-protocol-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:10px;margin:12px 0}.ec-protocol-grid>div{border:1px solid #8aa9c2;border-radius:8px;padding:12px}.ec-protocol-grid h4{margin:0 0 6px}.ec-protocol-table{border-collapse:collapse;width:100%;font-size:.9rem}.ec-protocol-table td,.ec-protocol-table th{border:1px solid #8aa9c2;padding:8px;text-align:left;vertical-align:top}.ec-protocol-table th{background:#234f76;color:white}.ec-py-viewer{background:#0e2339;color:#e4f1ff;border:1px solid #466884;border-radius:12px;padding:14px;min-width:0}.ec-py-viewer *{box-sizing:border-box}.ec-py-viewer button,.ec-py-viewer select,.ec-py-viewer input[type=file]{background:#1d405e;border:1px solid #577e9e;color:#e7f1fb;border-radius:6px;font:inherit;padding:8px;max-width:100%;min-width:0}.ec-py-viewer button{cursor:pointer}.ec-py-viewer button:disabled{opacity:.4}.ec-py-viewer button:hover{background:#326d99}.ec-py-top,.ec-py-controls{display:flex;gap:7px;flex-wrap:wrap;align-items:center;margin:8px 0}.ec-py-top select{flex:1 1 250px}.ec-py-import{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:.8rem}.ec-py-viewer .ec-py-link{color:#bce0ff!important;font-size:.84rem}.ec-py-viewer input[type=range]{width:100%;accent-color:#73d6b3}.ec-py-status{font-size:.86rem;color:#adccdf;overflow-wrap:anywhere}.ec-py-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:10px}.ec-py-pane{min-width:0;background:#132f49;border:1px solid #3e5d79;border-radius:9px;padding:10px}.ec-py-viewer h3,.ec-py-viewer h4{color:#e3f1ff;margin:7px 0;font-size:1rem}.ec-py-code{height:340px;overflow:auto;position:relative;background:#0b1c2f;border-radius:6px;margin-top:8px;padding:5px 0;font:12px/1.6 ui-monospace,monospace}.ec-py-line{display:flex;gap:8px;padding:2px 8px;white-space:pre;min-width:max-content}.ec-py-lineno{color:#83a5c0;width:34px;text-align:right;flex-shrink:0}.ec-py-active{background:#255f66;border-left:3px solid #8fe0b5}.ec-py-line code{white-space:pre;color:#dbeaff;background:transparent}.ec-py-event{padding:8px;background:#244860;border-radius:6px;font-size:.83rem;overflow-wrap:anywhere;color:#9be0be}.ec-py-vars{max-height:220px;overflow:auto;margin:8px 0;display:grid;gap:5px}.ec-py-var{border:1px solid #4b6c87;border-radius:6px;background:#1b3a54;display:grid;grid-template-columns:minmax(65px,.35fr) minmax(0,1fr);gap:6px;padding:6px;align-items:start;font-size:.82rem}.ec-py-var.changed{border-color:#75cda5;background:#20534e}.ec-py-var span{color:#a9c7dc;overflow-wrap:anywhere}.ec-py-var code{white-space:pre-wrap;overflow-wrap:anywhere;color:#f1f9ff;background:transparent;max-height:100px;overflow:auto}.ec-py-stack{max-height:155px;overflow:auto}.ec-stack-frame{font:12px/1.5 monospace;background:#1a405c;padding:5px 7px;border-radius:5px;margin:3px 0;overflow-wrap:anywhere}.ec-stack-frame.active{border-left:3px solid #79deb4}.ec-py-viewer .ec-py-output{max-height:160px;background:#0a1c2e;color:#dbeeff;white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0}.ec-py-expanded{position:fixed;inset:14px;z-index:99999;overflow:auto;box-shadow:0 0 0 30px #07182bb0}.ec-py-expanded .ec-py-code{height:50vh}.ec-py-expanded .ec-py-vars{max-height:38vh}
.ec-field .ec-range{padding:0;accent-color:#7bdcb9;cursor:pointer}.ec-field .ec-range-value{font-size:.76rem;color:#b6d4e8}.ec-visual{max-height:380px!important;min-height:145px!important}.ec-expanded .ec-visual{max-height:64vh!important}.ec-context-scene{display:grid;gap:9px}.ec-context-head{display:flex;justify-content:space-between;gap:6px;flex-wrap:wrap;font-size:.76rem;color:#a8c8e1}.ec-context-head strong{color:#d4ecff}.ec-scene-pipeline{display:flex;align-items:stretch;gap:7px;flex-wrap:wrap}.ec-scene-node{position:relative;flex:1 1 100px;min-width:0;border:1px solid #507b99;border-radius:8px;padding:10px;background:#1a3c57;color:#e4f0fb;text-align:left;overflow:hidden}.ec-scene-node.active{background:#1b554e;border-color:#74dcb0;box-shadow:0 0 12px #61d4a525}.ec-scene-node.done{border-color:#5c9f95}.ec-scene-node small{display:block;color:#a5c5de;font-size:.73rem;margin-bottom:6px}.ec-scene-node code,.ec-scene-node strong{display:block;overflow-wrap:anywhere;white-space:pre-wrap;color:#f4fbff;font:600 .9rem/1.45 ui-monospace,monospace;background:transparent;max-height:110px;overflow:auto}.ec-scene-node.active:after{content:'';position:absolute;top:0;left:0;height:3px;width:100%;background:linear-gradient(90deg,transparent,#91f0c2,transparent);animation:ec-pulse 1.4s infinite}.ec-scene-arrow{align-self:center;color:#81cbb9;font-size:1.35rem;animation:ec-arrow 1.3s ease-in-out infinite}.ec-byte-row{display:flex;flex-wrap:wrap;gap:4px}.ec-byte{min-width:24px;padding:6px 4px;text-align:center;background:#234964;border:1px solid #456d8d;border-radius:4px;font:12px monospace;color:#e2f0ff}.ec-byte.hot{background:#b05b4e;color:white;border-color:#f0a190}.ec-byte.ok{background:#21594e;border-color:#6fcba7}.ec-scene-caption{font-size:.76rem;color:#a9c7df;overflow-wrap:anywhere}.ec-scene-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,120px),1fr));gap:7px}.ec-scene-matrix{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;max-width:240px;margin:auto}.ec-scene-matrix span{padding:9px 3px;border:1px solid #517896;border-radius:4px;background:#234763;text-align:center;font:12px monospace}.ec-scene-matrix .hot{background:#246d5f;border-color:#73d8b2}.ec-feistel{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:8px}.ec-round-strip{display:flex;gap:4px;flex-wrap:wrap}.ec-round-strip span{padding:5px 7px;border-radius:4px;background:#213e59;color:#9cb7cf;font-size:.73rem}.ec-round-strip span.active{background:#287763;color:white}.ec-scene-meter{height:7px;background:#254159;border-radius:6px;overflow:hidden}.ec-scene-meter>div{height:100%;background:#73dab3;transition:width .25s}.ec-scene-row-label{color:#a6c9de;font-size:.76rem}.ec-scene-seq{display:flex;flex-wrap:wrap;gap:4px;align-items:center}.ec-scene-seq span{padding:5px 7px;border-radius:5px;background:#234763;font:12px monospace}.ec-scene-seq span.active{background:#286d5b;color:#fff}.ec-py-viewer button:focus-visible,.ec-context-scene button:focus-visible{outline:2px solid #83e2bb}.ec-scene-digest{overflow-wrap:anywhere;font:12px monospace}.ec-scene-key{font-weight:bold;color:#7fd9b2}@keyframes ec-pulse{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}@keyframes ec-arrow{50%{opacity:.35;transform:translateX(3px)}}@media(prefers-reduced-motion:reduce){.ec-scene-node.active:after,.ec-scene-arrow{animation:none}}@media(max-width:680px){.ec-py-grid{grid-template-columns:1fr}.ec-py-code{height:250px}.ec-feistel{grid-template-columns:1fr}.ec-visual{max-height:480px!important}.ec-scene-pipeline{gap:5px}.ec-scene-node{flex:1 1 85px}.ec-scene-arrow{font-size:1rem}.ec-source-group{padding:0 10px 10px}.ec-source-head{margin:0 -10px 10px}.ec-src-body{padding:8px}} 
.ec-scrub{width:100%;accent-color:#77d8b0;margin:12px 0 0}.ec-scene-node.active:after,.ec-scene-arrow{animation-play-state:paused}.ec-playing .ec-scene-node.active:after,.ec-playing .ec-scene-arrow{animation-play-state:running}
