.bit-budget-allocator{margin:1.5em 0;padding:1em 1.2em 1.1em;border:1px solid #e4e4e7;border-radius:8px;background:#fafafa}.bba-header{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.6em;margin-bottom:.9em}.bba-title{font-weight:600;font-size:.95em;color:#111827}.bba-presets{display:flex;gap:.4em}.bba-preset{appearance:none;-webkit-appearance:none;border:1px solid #d4d4d8;background:#fff;padding:.32em .7em;font-family:inherit;font-size:.82em;color:#4b5563;border-radius:4px;cursor:pointer;transition:background .12s ease,color .12s ease,border-color .12s ease}.bba-preset:hover{background:#f4f4f5;color:#111827}.bba-preset--active{background:#111827;color:#fff;border-color:#111827}.bba-preset--active:hover{background:#111827;color:#fff}.bba-bits{display:grid;grid-template-columns:repeat(16,1fr);gap:3px;margin:.4em 0 .6em}.bba-bit{display:flex;align-items:center;justify-content:center;height:30px;font-size:.72em;font-weight:700;font-family:ui-sans-serif,system-ui,sans-serif;color:#fff;border-radius:3px;user-select:none}.bba-bit--sign{background:#6b7280}.bba-bit--exponent{background:#2563eb}.bba-bit--mantissa{background:#16a34a}.bba-slider{width:100%;margin:.2em 0 .4em;cursor:pointer}.bba-allocation{display:flex;justify-content:center;align-items:center;gap:.5em;font-size:.88em;color:#4b5563;margin-bottom:.9em}.bba-allocation strong{font-weight:700;color:#111827}.bba-allocation-sep{color:#d4d4d8}.bba-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:.5em}.bba-stat{text-align:center;padding:.55em .4em;background:#fff;border:1px solid #e4e4e7;border-radius:4px}.bba-stat-label{font-size:.72em;color:#6b7280;margin-bottom:.3em;line-height:1.2}.bba-stat-value{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-weight:600;font-size:.92em;color:#111827}.bba-gap-strip-wrap{margin-top:.9em}.bba-gap-strip-label{font-size:.82em;color:#4b5563;margin-bottom:.3em;display:flex;align-items:baseline;gap:.5em}.bba-gap-strip-label code{font-size:.95em;background:#f4f4f5;padding:0 .3em;border-radius:3px}.bba-gap-strip-count{color:#6b7280;font-size:.92em}.bba-gap-strip{width:100%;height:28px;border:1px solid #e4e4e7;border-radius:3px;background:#fff;display:block}.bba-gap-strip-axis{position:relative;height:1em;margin-top:.25em;padding:0 1px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.72em;color:#6b7280}.bba-gap-strip-axis>span:first-child{position:absolute;left:0}.bba-gap-strip-axis>span:last-child{position:absolute;right:0}.bba-gap-strip-axis-mid{position:absolute;left:33.333%;transform:translate(-50%)}@media(max-width:540px){.bba-bits{gap:2px}.bba-bit{height:24px;font-size:.64em}.bba-stats{grid-template-columns:1fr}}.float-vs-quant-grid{margin:1.5em 0;padding:1em 1.2em 1.1em;border:1px solid #e4e4e7;border-radius:8px;background:#fafafa}.fvqg-header{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.6em;margin-bottom:.9em}.fvqg-title{font-weight:600;font-size:.95em;color:#111827}.fvqg-windows{display:flex;gap:.4em}.fvqg-window{appearance:none;-webkit-appearance:none;border:1px solid #d4d4d8;background:#fff;padding:.32em .7em;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.82em;color:#4b5563;border-radius:4px;cursor:pointer;transition:background .12s ease,color .12s ease,border-color .12s ease}.fvqg-window:hover{background:#f4f4f5;color:#111827}.fvqg-window--active{background:#111827;color:#fff;border-color:#111827}.fvqg-rows{display:flex;flex-direction:column;gap:.7em}.fvqg-row{display:flex;flex-direction:column;gap:.3em}.fvqg-row-header{display:flex;align-items:center;gap:.5em;font-size:.85em;color:#4b5563}.fvqg-swatch{width:12px;height:12px;border-radius:2px;flex-shrink:0}.fvqg-label{font-weight:600;color:#111827;min-width:3.2em}.fvqg-description{color:#6b7280;font-size:.92em}.fvqg-track{width:100%;height:40px;border:1px solid #e4e4e7;border-radius:3px;background:#fff;display:block}.fvqg-axis{display:flex;justify-content:space-between;margin-top:.4em;padding:0 1px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.75em;color:#6b7280}@media(max-width:540px){.fvqg-row-header{flex-wrap:wrap;font-size:.8em}.fvqg-description{flex-basis:100%;margin-left:1.7em}}.scale-factor-demo{margin:1.5em 0;padding:1em 1.2em 1.1em;border:1px solid #e4e4e7;border-radius:8px;background:#fafafa}.sfd-header{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.6em;margin-bottom:.9em}.sfd-title{font-weight:600;font-size:.95em;color:#111827}.sfd-presets{display:flex;gap:.4em;flex-wrap:wrap}.sfd-preset{appearance:none;-webkit-appearance:none;border:1px solid #d4d4d8;background:#fff;padding:.32em .7em;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.78em;color:#4b5563;border-radius:4px;cursor:pointer;transition:background .12s ease,color .12s ease,border-color .12s ease}.sfd-preset:hover{background:#f4f4f5;color:#111827}.sfd-preset--active{background:#111827;color:#fff;border-color:#111827}.sfd-controls{display:flex;align-items:center;gap:.7em;margin-bottom:.8em}.sfd-label{font-size:.82em;color:#6b7280;white-space:nowrap}.sfd-slider{flex:1;cursor:pointer}.sfd-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:.5em;margin-bottom:.9em}.sfd-stat{text-align:center;padding:.55em .4em;background:#fff;border:1px solid #e4e4e7;border-radius:4px}.sfd-stat-label{font-size:.72em;color:#6b7280;margin-bottom:.3em;line-height:1.2}.sfd-stat-value{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-weight:600;font-size:.92em;color:#111827}.sfd-strip-wrap{margin-bottom:.7em}.sfd-strip-label{font-size:.82em;color:#4b5563;margin-bottom:.3em}.sfd-strip{width:100%;height:56px;border:1px solid #e4e4e7;border-radius:3px;background:#fff;display:block}.sfd-strip-axis{display:flex;justify-content:space-between;margin-top:.25em;padding:0 1px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.72em;color:#6b7280}.sfd-caption{font-size:.85em;color:#4b5563;line-height:1.5;background:#fff;border:1px solid #e4e4e7;border-radius:4px;padding:.7em .9em}@media(max-width:540px){.sfd-stats{grid-template-columns:1fr}.sfd-controls{flex-direction:column;align-items:stretch}}.scale-snap-demo{margin:1.5em 0;padding:1em 1.2em 1.1em;border:1px solid #e4e4e7;border-radius:8px;background:#fafafa}.ssd-header{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.6em;margin-bottom:.9em}.ssd-title{font-weight:600;font-size:.95em;color:#111827}.ssd-scale-display{display:flex;align-items:baseline;gap:.4em;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.85em}.ssd-scale-label{color:#6b7280}.ssd-scale-value{color:#111827;font-weight:600}.ssd-scale-formula{color:#6b7280;font-size:.92em}.ssd-weights-row{display:flex;align-items:center;gap:.7em;margin-bottom:.9em;flex-wrap:wrap}.ssd-weights-label{font-size:.85em;color:#4b5563}.ssd-weights{display:flex;gap:.4em;flex-wrap:wrap}.ssd-weight{appearance:none;-webkit-appearance:none;border:1px solid #d4d4d8;background:#fff;padding:.4em .85em;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.88em;color:#4b5563;border-radius:4px;cursor:pointer;transition:background .12s ease,color .12s ease,border-color .12s ease}.ssd-weight:hover{background:#f4f4f5;color:#111827}.ssd-weight--active{background:#2563eb;color:#fff;border-color:#2563eb}.ssd-weight--active:hover{background:#2563eb;color:#fff}.ssd-flow{display:flex;align-items:center;flex-wrap:wrap;gap:.5em;background:#fff;border:1px solid #e4e4e7;border-radius:4px;padding:.7em .9em;margin-bottom:.9em}.ssd-flow-step{display:flex;flex-direction:column;gap:.15em;flex:1 1 auto;min-width:5em;text-align:center}.ssd-flow-label{font-size:.7em;color:#6b7280;text-transform:uppercase;letter-spacing:.04em}.ssd-flow-value{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.95em;font-weight:600;color:#111827}.ssd-flow-step--int .ssd-flow-value{color:#dc2626}.ssd-flow-step--error .ssd-flow-value{color:#d97706}.ssd-flow-arrow{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.78em;color:#6b7280;white-space:nowrap;padding:0 .2em}.ssd-strip-wrap{display:flex;flex-direction:column;gap:.3em}.ssd-strip-label{font-size:.82em;color:#4b5563}.ssd-strip{width:100%;height:80px;border:1px solid #e4e4e7;border-radius:3px;background:#fff;display:block}.ssd-strip-axis{display:flex;justify-content:space-between;padding:0 1px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.72em;color:#6b7280}.ssd-strip-axis--secondary{margin-top:.6em}.ssd-axis-label{text-align:center;font-size:.7em;color:#9ca3af;margin-top:.1em}.ssd-zoom-wrap{margin-top:.9em}.ssd-zoom-label{font-size:.82em;color:#4b5563;margin-bottom:.3em}.ssd-zoom-strip{width:100%;height:90px;border:1px solid #e4e4e7;border-radius:3px;background:#fff;display:block}.ssd-zoom-caption{font-size:.75em;color:#6b7280;margin-top:.4em;text-align:center}.ssd-legend{display:flex;gap:1.2em;flex-wrap:wrap;font-size:.78em;color:#4b5563;margin-top:.3em}.ssd-legend-item{display:flex;align-items:center;gap:.35em}.ssd-legend-dot{display:inline-block;width:10px;height:10px;border-radius:50%}.ssd-legend-dot--orig{background:#2563eb}.ssd-legend-dot--snap{background:#dc2626}.ssd-legend-dot--grid{background:#16a34a;border-radius:1px;width:2px;height:12px}@media(max-width:600px){.ssd-flow{flex-direction:column;align-items:stretch}.ssd-flow-arrow{text-align:center}}
