/* Text remains HTML; only actual Huffman edges and short symbol IDs use SVG. */
.df-demo{color:#343434;font-size:.91rem;line-height:1.8}.df-demo p{margin:.7rem 0}.df-demo h4{font-size:.95rem;margin:0 0 .7rem;line-height:1.6}.df-small,.df-demo small{font-size:.76rem;color:#5d5d5d;line-height:1.8}.df-choices{border:0;padding:0;margin:.5rem 0 1rem;display:flex;flex-wrap:wrap;gap:.5rem 1.5rem}.df-choices legend{font-size:.77rem;color:#555}.df-choices label{display:flex;align-items:center;gap:.4rem;font-size:.84rem}.df-demo input[type=radio]{width:auto;accent-color:#555}.df-step-controls{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;width:100%}.df-step-controls label{font-size:.74rem;flex:1;min-width:9rem}.df-step-controls input{width:100%;display:block;accent-color:#555}.df-step-controls button{font:inherit;background:#fafafa;color:#303030;border:1px solid #aaa;border-radius:4px;padding:.4rem .65rem;cursor:pointer}.df-step-controls button:hover{background:#eaeaea}.df-step-controls button:disabled{opacity:.45;cursor:default}.df-demo :focus-visible{outline:2px solid #333;outline-offset:3px}.df-context{padding:.7rem 1rem;border-left:3px solid #777;background:#f3f3f3;font-size:.82rem}.df-books{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1rem;align-items:start}.df-book{min-width:0;border:1px solid #bdbdbd;border-radius:5px;padding:1rem;background:#fafafa}.df-book-active{border:2px solid #333;padding:calc(1rem - 1px);background:#fff}.df-book h4 span{display:block;font-size:.72rem;font-weight:400;color:#555;margin-top:.2rem}.df-book table{font-size:.72rem;line-height:1.65;width:100%;border-collapse:collapse;margin:.4rem 0 0}.df-book th,.df-book td{text-align:left;border-bottom:1px solid #d4d4d4;padding:.35rem .45rem;vertical-align:top}.df-book th{font-weight:600}.df-book code{font-size:.75rem;background:none;padding:0;white-space:nowrap}.df-tree-scroll{overflow-x:auto;overscroll-behavior-x:contain;min-width:0;padding:.4rem 0;text-align:center}.df-tree{display:block;margin:auto;max-width:none;height:auto;min-width:130px}.df-tree path{stroke:#a2a2a2;stroke-width:1.4;fill:none}.df-tree circle{stroke:#9a9a9a;stroke-width:1.3;fill:#fafafa}.df-tree text{fill:#353535;text-anchor:middle;font:12px ui-monospace,monospace}.df-tree .df-tree-active path{stroke:#222;stroke-width:3}.df-tree .df-tree-active circle{stroke:#222;stroke-width:2.7;fill:#e6e6e6}.df-tree-unused circle{stroke-dasharray:3 2}.df-tree-unused text{fill:#777}.df-current{background:#e8e8e8!important;box-shadow:inset 0 0 0 1px #555}.df-route,.df-header-pipeline{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:.45rem;margin:1rem 0;padding:.7rem;border-top:1px solid #ccc;border-bottom:1px solid #ccc;font-size:.75rem}.df-route span,.df-header-pipeline span{padding:.25rem .4rem}.df-route b,.df-header-pipeline b{font-size:1.2rem;font-weight:400}.df-wire{margin:1rem 0;padding:1rem;background:#f7f7f7;border:1px solid #ccc;border-radius:5px}.df-fields{display:flex;align-items:stretch;flex-wrap:wrap;gap:.5rem;padding-top:2.1rem}.df-field{position:relative;display:flex;flex-direction:column;justify-content:center;border:1px solid #bbb;border-radius:3px;padding:.45rem .6rem;min-width:4.8rem;gap:.2rem;background:#fff;flex:1}.df-field code{font-size:1rem;letter-spacing:.16em;background:none;padding:0;white-space:normal}.df-field small{font-size:.67rem;line-height:1.6}.df-field.df-read{border-bottom:3px solid #555}.df-field.df-raw{border-style:dashed}.df-wire-cursor{position:absolute;bottom:calc(100% + .25rem);left:0;font-size:.7rem;white-space:nowrap;font-weight:650}.df-wire-end{font-size:.75rem;align-self:center}.df-cursor-count{font-size:.78rem;font-variant-numeric:tabular-nums}.df-explanation{border-left:3px solid #4b4b4b;background:#f1f1f1;padding:.8rem 1rem;min-height:4.5rem}.df-output{border-top:1px solid #bbb;padding-top:.8rem}.df-output-cells{display:flex;flex-wrap:wrap;gap:.4rem}.df-output-cells>span{display:flex;flex-direction:column;text-align:center;min-width:2rem;border:1px solid #bbb;border-radius:3px;background:#fafafa;padding:.15rem .3rem;line-height:1.5}.df-output-cells small{font-size:.6rem}.df-output-cells .df-source{outline:2px dashed #777;outline-offset:1px}.df-output-cells .df-target{border:2px solid #333;padding:calc(.15rem - 1px) calc(.3rem - 1px);background:#e7e7e7}
.df-header-counts,.df-vector{border:1px solid #c5c5c5;border-radius:5px;padding:1rem;margin:.75rem 0;min-width:0;background:#fafafa}.df-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem}.df-counts>span{font-size:.73rem;display:flex;flex-direction:column}.df-counts b{font-size:.86rem;font-weight:600}.df-provided{display:flex;gap:.35rem;flex-wrap:wrap;margin-top:.9rem}.df-provided>span{display:flex;flex-direction:column;border:1px solid #c5c5c5;padding:.2rem .4rem;text-align:center;min-width:2.5rem;background:#fff}.df-provided small{font-size:.61rem}.df-provided b{font-size:.85rem}.df-header-work{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:1rem}.df-header-work>.df-vector{margin:0}.df-vector p{font-size:.76rem}.df-vector-runs{display:flex;flex-wrap:wrap;gap:.4rem;min-height:6rem;align-content:start}.df-vector-run{display:flex;flex-direction:column;justify-content:center;min-width:5.4rem;padding:.35rem .55rem;border:1px solid #bbb;border-radius:3px;background:#fff}.df-vector-run small{font-size:.64rem}.df-vector-run strong{font-size:.9rem;font-variant-numeric:tabular-nums}.df-distance-run{border-left:3px double #444}.df-split{display:grid;grid-template-columns:1fr auto 1fr;text-align:center;align-items:center;margin:.7rem 0;font-size:.75rem;gap:.7rem}.df-split span{font-size:1.7rem}.df-split strong{font-weight:500}.df-waiting{border-style:dashed;color:#555;min-height:6rem}.df-waiting p{font-size:.8rem}.df-header-bytes{margin-top:.8rem;font-size:.77rem}.df-header-bytes summary{cursor:pointer}.df-header-bytes code{display:block;padding:.6rem;background:#f1f1f1;overflow-wrap:anywhere;white-space:normal;font-size:.77rem}.df-figure{margin:1.7rem 0;padding:1.15rem;border:1px solid #bcbcbc;border-radius:5px;background:#f9f9f9;line-height:1.8;color:#363636;min-width:0}.df-figure figcaption{font-size:.86rem;font-weight:600;margin-bottom:.9rem}.df-flow{display:flex;align-items:center;justify-content:center;gap:.65rem;flex-wrap:wrap}.df-card{border:1px solid #bcbcbc;border-radius:4px;padding:.7rem .85rem;background:#fff;min-width:0;flex:1;font-size:.82rem}.df-card strong{display:block;margin-bottom:.25rem}.df-card code{font-size:.78rem;white-space:normal;overflow-wrap:anywhere}.df-card p{margin:.3rem 0}.df-arrow{font-size:1.55rem;line-height:1.2;flex:0 0 auto;color:#555}.df-caption{font-size:.76rem;color:#575757;margin:.8rem 0 0!important}.df-figure table{font-size:.77rem;line-height:1.7}.df-figure th,.df-figure td{padding:.45rem .65rem}.df-figure pre{font-size:.78rem;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.df-lanes,.df-branches,.df-two-col{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.8rem}.df-branch{display:flex;flex-direction:column;align-items:center;gap:.45rem}.df-branch>.df-card{width:100%;box-sizing:border-box}.df-figure .df-arrow-down{display:block;text-align:center;font-size:1.5rem;margin:.35rem 0}
@media(max-width:620px){.df-books,.df-header-work,.df-lanes,.df-branches,.df-two-col{grid-template-columns:minmax(0,1fr)}.df-book,.df-wire,.df-header-counts,.df-vector{padding:.75rem}.df-book-active{padding:calc(.75rem - 1px)}.df-counts{grid-template-columns:1fr;gap:.4rem}.df-counts>span{flex-direction:row;justify-content:space-between;gap:.5rem}.df-tree{max-width:none;width:auto}.df-tree-scroll{overflow-x:auto}.df-route,.df-header-pipeline{justify-content:flex-start;gap:.2rem}.df-step-controls button{font-size:.78rem}.df-figure{padding:.85rem}.df-flow{flex-direction:column;align-items:stretch}.df-flow>.df-arrow{text-align:center;transform:rotate(90deg)}.df-field{min-width:4rem}.df-split{grid-template-columns:1fr;font-size:.76rem;gap:.2rem}.df-split>span:last-child{display:none}}
@media(prefers-reduced-motion:no-preference){.df-book,.df-field,.df-output-cells>span,.df-vector-run{transition:background-color .15s,border-color .15s}.df-tree path,.df-tree circle{transition:stroke .15s,fill .15s}}

.df-demo>.zl-controls{display:block}
.df-figure{overflow-x:auto}
