:root{color:#ece9e2;font-synthesis:none;text-rendering:optimizelegibility;--axis-x:#ad493e;--axis-y:#287451;--axis-z:#355f9f;--axis-h:#8860ad;--app-content-width:1208px;--math-font:"STIX Two Math", "Cambria Math", "Latin Modern Math", "Times New Roman", serif;background:#252629;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{background:#252629;min-width:1120px;min-height:100vh;margin:0}button,input{font:inherit}button{cursor:pointer}.header-controls{align-self:center;align-items:center;gap:12px;display:flex}.theme-toggle{background:#37383b;border:1px solid #68696c;border-radius:50%;justify-content:center;align-items:center;width:38px;height:38px;padding:0;display:inline-flex;box-shadow:0 2px 4px #0004}.theme-toggle-icon{background:linear-gradient(90deg,#252629 50%,#fff 50%);border:1px solid #b8bcc4;border-radius:50%;width:20px;height:20px}.theme-toggle:hover{filter:brightness(1.12)}.theme-toggle:focus-visible{outline-offset:3px;outline:3px solid #f2d18f}.app-shell{background:radial-gradient(at 28% 0,#37383b 0,#0000 48%),linear-gradient(145deg,#292a2d,#222326 72%);min-height:100vh;padding:28px 34px 18px}.topbar{max-width:var(--app-content-width);justify-content:space-between;align-items:end;margin:0 auto 22px;display:flex}.eyebrow{color:#a8a69f;letter-spacing:.18em;margin:0 0 7px;font-size:10px;font-weight:700}h1,h2,p{margin:0}h1{color:#f1eee8;letter-spacing:-.04em;text-shadow:0 1px 1px #111;font-size:28px;font-weight:650}h2{color:#e4e1da;letter-spacing:-.02em;font-size:16px;font-weight:600}.operation-readout{color:#c0bdb6;align-items:center;gap:9px;font-size:12px;display:flex}.status-dot{background:#e3a94c;border-radius:50%;width:7px;height:7px;box-shadow:0 0 10px #e3a94c,0 0 0 3px #4a4030}.workspace{max-width:var(--app-content-width);grid-template-columns:minmax(620px,1fr) 420px;gap:18px;margin:0 auto;display:grid}.panel{background:linear-gradient(155deg,#393a3e,#303135 70%);border:1px solid #4c4d50;border-top-color:#646569;border-radius:10px;box-shadow:inset 0 1px #ffffff0e,0 12px 30px #00000045}.visual-panel{flex-direction:column;min-height:780px;padding:20px 22px 18px;display:flex}.panel-heading{justify-content:space-between;align-items:start;gap:16px;margin-bottom:18px;display:flex}.visual-tools{flex-direction:column;align-items:flex-end;gap:7px;display:flex}.sphere-view-control{color:#cfcbc4;align-items:center;gap:8px;font-size:11px;display:flex}.sphere-view-control select{color:#ebe8e1;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;max-width:190px;font:inherit;background:linear-gradient(#4c4d51,#37383b);border:1px solid #68696c;border-radius:6px;padding:5px 8px;font-size:12px;box-shadow:inset 0 1px #ffffff21,0 2px 3px #0003}.sphere-view-control select option{color:#ebe8e1;background:#37383b}.sphere-view-control select:focus-visible{outline-offset:2px;outline:3px solid #f2d18f}.sphere-view-control select:disabled{cursor:not-allowed;opacity:.7}.vector-readout{color:#b6b2aa;font-size:13px}.vector-readout code{color:#efc274}.sphere-frame{background:radial-gradient(at 45% 38%,#353639,#292a2d 76%);border:1px solid #55565a;border-radius:7px;flex:1;min-height:620px;position:relative;overflow:hidden;box-shadow:inset 0 3px 12px #0000003d,0 1px #ffffff0a}.sphere-frame canvas{display:block}.sphere-hint{color:#b0ada7;letter-spacing:.04em;text-shadow:0 1px 2px #191a1c;font-size:10px;position:absolute;bottom:12px;right:14px}.control-column{flex-direction:column;gap:18px;display:flex}.control-column .panel{padding:18px}.state-panel h2{font-size:20px}.equation{color:#d0ccc4;min-height:57px;font:12px/1.7 ui-monospace,SFMono-Regular,Menlo,monospace}.equation span{color:#efc274}.matrix-wrap{color:#aaa79f;align-items:center;gap:10px;display:flex}.matrix-bracket{color:#85858a;font:46px/1 ui-monospace,monospace}.matrix{color:#e8e4dc;gap:8px;font-size:14px;display:grid}.probability-row{margin-bottom:14px}.single-shot-heading{flex-wrap:wrap;align-items:baseline;gap:4px 8px;margin-bottom:8px;display:flex}.single-shot-heading h3{margin:0}.single-shot-heading .single-shot-average{text-align:right;font-variant-numeric:tabular-nums;margin:0 0 0 auto}.probability-label{color:#cfcbc4;justify-content:space-between;margin-bottom:6px;font-size:12px;display:flex}.probability-label code{color:#f0ede7}.bar-track{background:#252629;border:1px solid #242528;border-radius:4px;height:7px;overflow:hidden;box-shadow:inset 0 1px 2px #00000080}.bar-fill{height:100%;transition:width .18s;box-shadow:inset 0 1px #ffffff3d}.bar-fill.axis-x{background:linear-gradient(180deg, #de8275, var(--axis-x))}.bar-fill.axis-y{background:linear-gradient(180deg, #61bc91, var(--axis-y))}.bar-fill.axis-z{background:linear-gradient(180deg, #7fa9e9, var(--axis-z))}.bar-fill.neutral{background:linear-gradient(#aaa9a4,#76777a)}.bar-fill.gold{background:linear-gradient(#edbd70,#bb812c)}.measure-button,.reset-button{color:#ebe8e1;text-shadow:0 1px 1px #242528;background:linear-gradient(#55565a,#414246);border:1px solid #68696c;border-radius:6px;width:100%;margin-top:5px;padding:10px;font-size:12px;transition:filter .15s,transform .1s,box-shadow .1s;box-shadow:inset 0 1px #ffffff2b,inset 0 -2px #0000002e,0 2px 4px #0000003d}.measure-button:hover,.reset-button:hover{filter:brightness(1.12)}.single-measurement-actions{gap:8px;display:flex}.single-measurement-actions .measure-button{flex:1;width:auto;min-width:0}.measure-button:active,.reset-button:active{transform:translateY(1px);box-shadow:inset 0 2px 4px #00000040,0 1px 1px #ffffff0a}.measurement-result{color:#cbc7bf;text-align:center;background:linear-gradient(#2a2b2e,#303135);border:1px solid #4d4e51;border-radius:5px;margin-top:12px;padding:9px;font-size:12px;box-shadow:inset 0 1px 3px #0000004d}.measurement-result strong{color:#8db5f1;font-size:16px}.angle-control{margin-top:14px;display:block}.angle-control>span{color:#cfcbc4;justify-content:space-between;margin-bottom:7px;font-size:12px;display:flex}.angle-control code{color:#f0ede7}.angle-range{min-width:0}.angle-scale{color:#a4a19a;font-variant-numeric:tabular-nums;grid-template-columns:repeat(3,1fr);font:10px/1.2 system-ui,sans-serif;display:grid}.angle-scale span:nth-child(2){text-align:center}.angle-scale span:last-child{text-align:right}[data-theme=light] .angle-scale{color:#68717c}.angle-value{align-items:center;gap:5px;display:inline-flex}.angle-value input{color:#f0ede7;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;text-align:right;background:#37383b;border:1px solid #68696c;border-radius:5px;width:94px;padding:4px 6px;font:12px ui-monospace,monospace}.angle-value input:focus-visible{outline-offset:2px;outline:2px solid #f2d18f}[data-theme=light] .angle-value input{color:#26303b;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;background:#f5f6f8;border-color:#b7c0cb}input[type=range]{accent-color:#6395e2;width:100%}.button-grid{gap:8px;display:grid}.animation-control{color:#cfcbc4;justify-content:space-between;align-items:center;gap:12px;margin:0 0 13px;font-size:12px;display:flex}.animation-switch{align-items:center;gap:9px;display:inline-flex;position:relative}.animation-switch input{opacity:0;cursor:pointer;width:44px;height:24px;margin:0;position:absolute;left:0}.animation-switch-track{background:linear-gradient(#292a2d,#3d3e42);border:1px solid #77787b;border-radius:14px;align-items:center;width:44px;height:24px;padding:3px;transition:background .18s,border-color .18s;display:inline-flex;box-shadow:inset 0 2px 4px #0000006b,0 1px #ffffff14}.animation-switch-track>span{background:linear-gradient(#f2f0ea,#aaa9a4);border:1px solid #bfc0c0;border-radius:50%;width:16px;height:16px;transition:transform .18s;box-shadow:0 1px 3px #0000008c}.animation-switch input:checked+.animation-switch-track{background:linear-gradient(#245f45,#174732);border-color:#6b9d80}.animation-switch input:checked+.animation-switch-track>span{transform:translate(20px)}.animation-switch input:focus-visible+.animation-switch-track{outline-offset:3px;outline:3px solid #f2d18f}.animation-switch-state{color:#d6d2ca;min-width:22px;font-size:11px}.button-grid.gates{grid-template-columns:repeat(6,1fr);margin-bottom:13px}.button-grid.presets{grid-template-columns:repeat(3,1fr)}.button-grid button{color:#fff;min-height:37px;font-family:var(--math-font);text-shadow:0 1px 1px #000000a6,0 -1px #ffffff2e;border:1px solid #66676b;border-bottom-color:#1d1e20;border-radius:7px;padding:7px 5px;font-size:16px;font-weight:600;transition:filter .14s,transform .1s,box-shadow .1s;box-shadow:inset 0 1px #ffffff4f,inset 0 -2px #0003,0 3px 5px #0000004d}.button-grid button:hover{filter:brightness(1.13)}.button-grid button:active{transform:translateY(2px);box-shadow:inset 0 2px 5px #00000052,0 1px 1px #0000003d}.button-grid button:disabled{cursor:wait;filter:saturate(.65);opacity:.78}.button-grid .axis-x{background:linear-gradient(#bd5b4e,#8e382f);border-color:#c96d60 #c96d60 #682c27}.button-grid .axis-y{background:linear-gradient(#37805e,#20583f);border-color:#599575 #599575 #123e2d}.button-grid .axis-z{background:linear-gradient(#496fa8,#2d4f80);border-color:#6c87b5 #6c87b5 #1a3154}.button-grid .axis-hadamard{background:linear-gradient(#815ca5,#5c3b7e);border-color:#a783c8 #a783c8 #342149}.button-grid button:focus-visible,.measure-button:focus-visible,.reset-button:focus-visible{outline-offset:3px;outline:3px solid #f2d18f}.reset-button{color:#d6d2ca;background:linear-gradient(#4a4b4f,#37383b);margin-top:13px}.footer-note{max-width:var(--app-content-width);color:#a4a19a;text-align:right;margin:15px auto 0;font:10px ui-monospace,SFMono-Regular,Menlo,monospace}.app-about{max-width:var(--app-content-width);color:#a4a19a;margin:0 auto;padding:0 20px 20px;font-size:12px;line-height:1.6}.app-about summary{cursor:pointer;width:fit-content;padding-block:10px}.app-about section{max-width:760px}.app-about h2{margin:8px 0}.app-about p{margin-block:8px}.app-about a{color:inherit;text-underline-offset:2px;text-decoration:underline}[data-theme=light] .app-about{color:#586474}.credit-line{color:#aaa9a4;letter-spacing:.015em;text-align:center;margin:10px 0 0;font:11px/1.4 system-ui,sans-serif}.sphere-credit{color:#aaa9a4;letter-spacing:.015em;pointer-events:none;font:11px/1.4 system-ui,sans-serif;position:absolute;bottom:12px;right:14px}.probability-scale-tick{color:#e1e5ea;white-space:nowrap;background:#2e2f32db;border-radius:3px;padding:1px 3px;font:11px/1.3 system-ui,sans-serif;display:block}.probability-scale-value,.probability-scale-expectation{color:#f4f1e9;font-variant-numeric:tabular-nums;white-space:nowrap;background:#232629ed;border:1px solid;border-radius:4px;padding:2px 5px;font:600 12px/1.3 system-ui,sans-serif;display:block;transform:translateY(-50%)}.probability-scale-expectation{transform:translate(-100%,-50%)}.bloch-probability-key{z-index:2;color:#d8dce2;pointer-events:none;background:#252629db;border:1px solid #7777;border-radius:5px;flex-direction:column;gap:2px;padding:5px 7px;font:11px/1.3 system-ui,sans-serif;display:flex;position:absolute;top:8px;right:8px}.bloch-probability-key.on-touch{max-width:calc(50% - 16px);font-size:10px;top:8px}.sphere-frame:has(.bloch-probability-key.on-touch) .sphere-touch-toggle{max-width:45%}[data-theme=light] :is(.probability-scale-tick,.probability-scale-value,.probability-scale-expectation,.bloch-probability-key){color:#344253;background:#fffffff0}.sphere-frame.has-credit .sphere-hint{text-align:left;left:14px;right:285px}.sphere-frame.has-credit .amplitude-explanation{bottom:42px;right:14px}.circuit-scroll{position:relative}.circuit-credit{z-index:2;color:#aaa9a4;letter-spacing:.015em;pointer-events:none;font:11px/1.4 system-ui,sans-serif;position:absolute;bottom:1px;right:10px}.mobile-credit{max-width:var(--app-content-width);padding-bottom:env(safe-area-inset-bottom);color:#95938e;letter-spacing:.01em;text-align:center;margin:14px auto 4px;font:10px/1.4 system-ui,sans-serif}@media (width<=1200px){.workspace{grid-template-columns:minmax(560px,1fr) 380px}.app-shell{padding-inline:20px}}.amplitude-explanation{z-index:2;color:#dedde0;pointer-events:none;background:#1f2125e6;border:1px solid #6f8797a6;border-radius:6px;padding:8px 10px;font-size:10px;line-height:1.45;position:absolute;bottom:10px;left:12px;right:190px;box-shadow:0 2px 8px #0000004d}.amplitude-caption{color:#f1edf3;margin-bottom:4px;font-size:11px;font-weight:600}.amplitude-legend{flex-wrap:wrap;gap:4px 14px;display:flex}.amplitude-legend>span{align-items:center;gap:5px;display:inline-flex}.legend-swatch{border-radius:2px;width:15px;height:3px;display:inline-block;box-shadow:0 0 5px}.legend-swatch.geometric{color:#17c9f4;background:#17c9f4}.legend-swatch.phase{color:#ed5bff;background:#ed5bff}.amplitude-note{color:#aaa9b0;margin-top:3px;font-size:9px}.amplitude-explanation{max-height:calc(100% - 54px);overflow-y:auto}.amplitude-explanation:has(details[open]){pointer-events:auto;touch-action:pan-y}.amplitude-probability-explanation{color:#c4c9d1;pointer-events:auto;touch-action:pan-y;border-top:1px solid #85858b66;min-width:0;margin-top:4px;padding-top:4px;font-size:11px;line-height:1.5}.amplitude-coordinate-convention{flex-wrap:wrap;align-items:center;gap:5px 12px;display:flex}.amplitude-coordinate-convention>span{font-size:11px}.amplitude-probability-explanation math{font-family:var(--math-font);font-size:11px}.amplitude-probability-details summary{cursor:pointer;align-content:center;min-height:32px;display:list-item}.amplitude-probability-details p{margin:7px 0}.amplitude-probability-derivation{flex-wrap:wrap;align-items:center;gap:8px;margin:10px 0;display:flex}[data-theme=light] .amplitude-probability-explanation{color:#465466}.gate-axis-label{white-space:nowrap;color:#c7e7ef;pointer-events:none;background:#22282ce6;border:1px solid #608b93;border-radius:4px;padding:3px 6px;font-size:11px}.sphere-angle-symbol{color:#eac477;pointer-events:none;font:italic 18px Georgia,serif}[data-theme=light] .sphere-angle-symbol{color:#865c18}.two-workspace{max-width:var(--app-content-width);grid-template-columns:minmax(360px,.72fr) minmax(620px,1.28fr);grid-template-areas:"circuit circuit""state state""entanglement entanglement""spheres amplitudes""measurement measurement";align-items:start;gap:18px;margin:0 auto;display:grid}.two-state-panel{grid-area:state;align-items:center;gap:24px;min-width:0;padding:18px 22px;display:flex}.two-state-summary{flex:1;min-width:0}.two-state-math{font:18px/1.6 var(--math-font);font-variant-numeric:tabular-nums;flex-wrap:wrap;align-items:center;gap:10px;margin-top:8px;display:flex}.two-state-expression{flex-wrap:wrap;align-items:baseline;gap:0 6px;display:flex}.two-state-term{white-space:nowrap}.two-state-coefficient,.two-state-math .single-state-column{color:#efc274}.two-state-phase{margin-top:8px}.two-state-probabilities{flex:none}.two-state-probabilities h3{margin:0 0 6px;font-size:12px;font-weight:500}.two-state-probability-chart{align-items:center;gap:10px;display:flex}.two-probability-pie{flex-shrink:0;width:120px;height:120px;display:block}.two-probability-slice{fill:var(--outcome-color);stroke:#292a2d;stroke-width:1px;stroke-linejoin:round}.outcome-0{--outcome-color:#719ee2}.outcome-1{--outcome-color:#e3aa50}.outcome-2{--outcome-color:#54b597}.outcome-3{--outcome-color:#b78bd5}.two-probability-legend{gap:6px;margin:0;padding:0;list-style:none;display:grid}.two-probability-legend li{font:15px var(--math-font);grid-template-columns:9px 34px 54px;align-items:center;gap:8px;display:grid}.two-probability-legend i{background:var(--outcome-color);border-radius:2px;width:9px;height:9px}.two-probability-legend strong{text-align:right;font-variant-numeric:tabular-nums;font:12px system-ui,sans-serif}[data-theme=light] .two-state-coefficient,[data-theme=light] .two-state-math .single-state-column{color:#925007}[data-theme=light] .two-probability-slice{stroke:#fff}.two-circuit-panel{grid-area:circuit;min-width:0}.two-amplitude-panel{grid-area:amplitudes;min-width:0}.two-entanglement-panel{grid-area:entanglement;min-width:0}.two-measurement-panel{grid-area:measurement;min-width:0}.two-circuit-panel>.panel-heading,.two-amplitude-panel>.panel-heading{flex-wrap:wrap;gap:10px}.two-select-label{color:#cfcbc4;align-items:center;gap:9px;font-size:12px;display:inline-flex}.two-select-label select{color:#ebe8e1;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;max-width:290px;font:inherit;background:#37383b;border:1px solid #68696c;border-radius:6px;padding:7px 10px;box-shadow:inset 0 1px #ffffff18,0 2px 4px #0004}.two-select-label select option{color:#ebe8e1;background:#37383b}.two-select-label select:focus-visible,.two-button:focus-visible,.circuit-gate:focus-visible{outline-offset:3px;outline:3px solid #f2d18f}.two-select-label select:disabled{opacity:.55}.app-mode-control{background:#252629;border:1px solid #55565a;border-radius:9px;align-self:center;gap:3px;padding:4px;display:inline-flex;box-shadow:inset 0 2px 4px #0005}.app-mode-control [role=tab]{color:#bcb8b0;white-space:nowrap;background:0 0;border:1px solid #0000;border-radius:6px;padding:10px 16px;font-size:13px}.app-mode-control [role=tab]:hover{color:#f1eee8;background:#37383b}.app-mode-control [role=tab][aria-selected=true]{color:#f2d18f;text-shadow:0 1px 1px #222;background:linear-gradient(#555149,#3e3b36);border-color:#777064;box-shadow:inset 0 1px #ffffff26,0 2px 4px #0005}.app-mode-control [role=tab]:focus-visible{outline-offset:2px;outline:3px solid #f2d18f}.two-circuit-panel,.two-amplitude-panel,.two-entanglement-panel,.two-measurement-panel{padding:20px 22px}.two-subtle,.two-caption{color:#bfbbb4;font-size:12px;line-height:1.6}.two-caption{color:#ddd8cf;margin:13px 0}.two-playback,.measurement-controls,.joint-basis-controls{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.two-shell input[type=checkbox]{accent-color:#77c1d7}.two-circuit-grid{--circuit-row-height:108px;grid-template-columns:56px repeat(4,minmax(0,1fr));grid-template-rows:30px repeat(2, var(--circuit-row-height));background:#292a2d;border:1px solid #55565a;border-radius:7px;gap:10px 0;padding:12px 10px 17px;display:grid;box-shadow:inset 0 2px 6px #0005}.circuit-column-label{text-align:center;color:#bcb8b0;font-size:11px}.circuit-row{display:contents}.circuit-qubit{color:#e0ddd5;font:19px var(--math-font);grid-column:1;justify-content:center;align-items:center;gap:9px;display:flex}.circuit-qubit small{color:#b7b3ad;font-size:15px}.circuit-slot{background:linear-gradient(#777a80,#777a80) 50%/100% 1px no-repeat;justify-content:center;align-items:center;display:flex;position:relative}.circuit-gate{z-index:1;color:#fff;width:44px;height:44px;font:600 24px var(--math-font);text-shadow:0 1px 2px #000b;border:1px solid #68696c;border-radius:7px;padding:0;box-shadow:inset 0 1px #ffffff40,inset 0 -2px #0004,0 3px 6px #0006}.circuit-gate.gate-x.enabled{background:linear-gradient(#bd5b4e,#8e382f);border-color:#c96d60}.circuit-gate.gate-h.enabled{background:linear-gradient(#815ca5,#5c3b7e);border-color:#a783c8}.circuit-gate.gate-ry.enabled{background:linear-gradient(#37805e,#20583f);border-color:#599575}.circuit-gate sub{font-size:13px}.circuit-rotation-controls{color:#d0ccc5;justify-content:center;align-items:center;gap:7px;font-size:12px;display:flex;position:absolute;top:calc(50% + 28px)}.circuit-rotation-controls label{align-items:center;gap:4px;display:flex}.circuit-rotation-controls select,.circuit-rotation-controls input{color:#ebe8e1;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;height:25px;font:inherit;background:#37383b;border:1px solid #68696c;border-radius:4px;padding:3px 5px}.circuit-rotation-controls select option{color:#ebe8e1;background:#37383b}.circuit-rotation-controls input{width:55px}.two-circuit-grid:has(.circuit-angle-slider){--circuit-row-height:176px}.circuit-rotation-controls .circuit-angle-range{flex:0 0 100%;width:100%;min-width:0}.circuit-angle-scale span:before{content:"";background:currentColor;width:1px;height:3px;margin-bottom:2px;display:block}.circuit-angle-scale span:nth-child(2):before{margin-inline:auto}.circuit-angle-scale span:last-child:before{margin-left:auto}.circuit-rotation-controls.has-angle{flex-wrap:wrap;gap:4px 7px;width:160px;max-width:100%}.circuit-rotation-controls input[type=number]{appearance:textfield}.circuit-rotation-controls input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.circuit-rotation-controls input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.circuit-rotation-controls .circuit-angle-slider{accent-color:#599575;cursor:pointer;background:0 0;border:0;flex:0 0 100%;width:100%;height:14px;margin:0;padding:0}.circuit-rotation-controls select:focus-visible,.circuit-rotation-controls input:focus-visible{outline-offset:2px;outline:2px solid #f2d18f}.circuit-help{margin-top:12px}.circuit-gate.off{color:#99989a;background:linear-gradient(#434449,#333438);border-style:dashed}.circuit-gate:hover{filter:brightness(1.17)}.circuit-gate:active{transform:translateY(1px)}.circuit-gate.current{outline-offset:3px;outline:2px solid #efc274}.circuit-gate.completed{box-shadow:inset 0 1px #ffffff40,0 0 9px #a9e0bd42}.circuit-interaction{grid-area:2/4/span 2;grid-template-rows:repeat(2, var(--circuit-row-height));color:#d8f4ff;background:linear-gradient(#777a80,#777a80) 0 calc(var(--circuit-row-height) / 2 - .5px) / 100% 1px no-repeat, linear-gradient(#777a80,#777a80) 0 calc(var(--circuit-row-height) * 1.5 + 10px - .5px) / 100% 1px no-repeat;border-radius:5px;place-items:center;gap:10px;display:grid;position:relative}.circuit-interaction-toggle{top:calc(var(--circuit-row-height) / 2 - 22px);width:calc(var(--circuit-row-height) * .75 + 40.5px);max-width:calc(100% - 12px);height:calc(var(--circuit-row-height) + 54px);color:#d8f4ff;position:absolute}.circuit-interaction-toggle.enabled{color:#fff}.circuit-interaction-toggle.gate-z.enabled{background:linear-gradient(#496fa8,#2d4f80);border-color:#6c87b5}.circuit-interaction-toggle.enabled .control-dot{background:currentColor;box-shadow:0 0 6px #ffffff30}.circuit-interaction-toggle:before{content:"";background:#91c4d6;width:2px;position:absolute;top:21px;bottom:21px;left:calc(50% - 1px)}.circuit-interaction-toggle:after{content:"";height:1px;box-shadow:0 calc(var(--circuit-row-height) + 10px) 0 #777a80;pointer-events:none;background:#777a80;position:absolute;top:20.5px;left:-1px;right:-1px}.circuit-interaction-toggle>span{position:absolute;top:21px;left:50%;transform:translate(-50%,-50%)}.circuit-interaction-toggle>span:last-child{top:auto;bottom:21px;transform:translate(-50%,50%)}.circuit-interaction-controls{top:calc(var(--circuit-row-height) * 1.5 + 38px)}.control-dot{z-index:1;background:#d8f4ff;border-radius:50%;width:12px;height:12px;box-shadow:0 0 6px #91c4d650}.cx-target{z-index:1;border-radius:50%;font-size:33px;line-height:1}.circuit-interaction-toggle.off{color:#78787a}.circuit-interaction-toggle.off:before{background:#78787a}.circuit-interaction-toggle.off .control-dot{box-shadow:none;background:#78787a}.two-playback{gap:8px;margin-top:16px}.two-playback .two-select-label{margin-left:auto}.transport-controls{background:#292a2d;border:1px solid #55565a;border-radius:8px;align-items:center;gap:5px;padding:4px;display:inline-flex;box-shadow:inset 0 2px 4px #0005}.two-button.transport-button{justify-content:center;align-items:center;width:42px;height:36px;padding:0;font-family:Segoe UI Symbol,"Noto Sans Symbols 2",sans-serif;font-size:19px;line-height:1;display:inline-flex}.two-button.transport-button.primary{width:48px;font-size:21px}.two-button{color:#ece9e2;text-shadow:0 1px 1px #222;background:linear-gradient(#55565a,#3d3e43);border:1px solid #68696c;border-bottom-color:#25262a;border-radius:6px;padding:8px 12px;font-size:12px;box-shadow:inset 0 1px #ffffff26,inset 0 -1px #0004,0 2px 4px #0005}.two-button.primary{background:linear-gradient(#37805e,#20583f);border-color:#599575}.two-button:hover:not(:disabled){filter:brightness(1.14)}.two-button:active:not(:disabled){transform:translateY(1px)}.two-button:disabled{opacity:.45;cursor:default}.two-progress{color:#cbc7bf;flex:180px;align-items:center;gap:8px;margin:0 8px;font-size:12px;display:flex}.two-progress input{accent-color:#79ddf4;flex:1;min-width:100px}.two-progress code{text-align:right;color:#a9eafa;flex:0 0 58px}.two-measurement-notice{background:#4a3c2e;border:1px solid #b59162;border-radius:6px;justify-content:space-between;align-items:center;margin-top:16px;padding:12px;font-size:12px;display:flex}.two-spheres{flex-direction:column;grid-area:spheres;align-self:stretch;gap:16px;min-width:0;padding:18px;display:flex}.two-amplitude-panel{flex-direction:column;align-self:stretch;display:flex}.amplitude-heading-tools{flex-direction:column;align-items:flex-end;gap:7px;display:flex}.amplitude-phase-mode{background:#252629;border:1px solid #55565a;border-radius:7px;gap:2px;padding:3px;display:inline-flex;box-shadow:inset 0 2px 4px #0005}.amplitude-phase-mode button{color:#bcb8b0;background:0 0;border:1px solid #0000;border-radius:4px;padding:5px 10px;font-size:11px}.amplitude-phase-mode button:hover{color:#f1eee8;background:#37383b}.amplitude-phase-mode button[aria-pressed=true]{color:#d5f8ff;background:linear-gradient(#426c7d,#294959);border-color:#567f8d;box-shadow:inset 0 1px #ffffff20}.amplitude-phase-mode button:focus-visible{outline-offset:2px;outline:2px solid #f2d18f}.two-sphere-panel{border-top:1px solid #55565a;padding:16px 0 0}.two-sphere-panel .panel-heading{margin-bottom:12px}.two-sphere-panel .sphere-frame{flex:none;height:260px;min-height:260px}.reduced-stats{color:#bbb7af;flex-direction:column;align-items:flex-end;gap:4px;font-size:12px;display:flex}.reduced-stats strong{color:#efc274;font-variant-numeric:tabular-nums;min-width:42px;display:inline-block}.reduced-note{text-align:center;margin-top:10px}.sphere-corner-action{z-index:4;position:absolute;top:6px;right:6px}.reduced-explore-button{min-height:32px;margin:0;padding:5px 8px;font-size:11px;display:block}.reduced-source-actions{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:6px;margin:10px 0;display:grid}.reduced-source-actions .two-button{white-space:normal;justify-self:end;min-width:0;max-width:100%;min-height:36px}.reduced-reset-button{grid-column:1}.reduced-return-button{grid-column:2}.reduced-source-notes>summary{cursor:pointer;align-content:center;min-height:32px;font-size:11px;font-weight:400}.mobile-compact .reduced-explore-button{padding:5px 7px;font-size:11px}.two-amplitude-matrix{flex:1;grid-template-rows:auto repeat(2,minmax(0,1fr));grid-template-columns:44px minmax(0,1fr) minmax(0,1fr);gap:10px;display:grid}.matrix-basis-key{color:#d5d1c9;font:16px var(--math-font);white-space:nowrap;place-self:center}.two-amplitude-cell{background:linear-gradient(135deg,#303338,#272a2e);border:1px solid #55565a;border-radius:7px;flex-direction:column;justify-content:center;min-width:0;min-height:285px;padding:11px 10px 13px;display:flex;box-shadow:inset 0 2px 5px #0004}.amplitude-cell-title{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:5px;display:flex}.math-label{font:19px var(--math-font);color:#e2f4fa}.amplitude-cell-title code{color:#c8dce3;font-size:13px}.amplitude-cell-body{flex-direction:column;align-items:center;gap:8px;margin-top:7px;display:flex}.complex-glyph{flex:0 0 150px;width:150px;height:150px;overflow:visible}.complex-glyph text{fill:#ccd8de;font:italic 12px var(--math-font)}.amplitude-stats{flex-direction:column;gap:6px;width:min(100%,184px);font-size:12px;display:flex}.amplitude-stats>div:not(.bar-track){color:#bbbfc1;justify-content:space-between;gap:12px;display:flex}.amplitude-stats strong{color:#ecf5f7;font-variant-numeric:tabular-nums;font-weight:500}.amplitude-stats .bar-track{width:100%}.two-shell .bar-fill{transition:none}.amplitude-probability{background:linear-gradient(#72c9de,#3f8ea7)}.amplitude-matrix-note{margin:12px 0 0 54px}.two-amplitude-waves{flex:1;grid-template-rows:repeat(4,minmax(0,1fr));gap:10px;display:grid}.two-amplitude-waves .two-wave-cell{min-height:0;padding:10px}.two-wave-cell{--trace-color:#7fa9e9}.two-wave-cell.wave-component-1{--trace-color:#de8275}.two-wave-cell.wave-component-2{--trace-color:#61bc91}.two-wave-cell.wave-component-3{--trace-color:#edbd70}.two-wave-cell .math-label{color:var(--trace-color)}.two-wave-cell .amplitude-cell-body{grid-template-columns:minmax(0,1fr) 145px;align-items:center;gap:14px;display:grid}.two-amplitude-wave{background:#20242a;border-radius:6px;width:100%;display:block}.two-amplitude-wave text{fill:#b4c0cd;font:10px system-ui,sans-serif}.two-wave-cell .amplitude-stats{width:100%;font-size:11px}.is-waves .amplitude-matrix-note{margin-left:0}.two-wave-explanation{margin-bottom:0;font-size:11px;line-height:1.5}[data-theme=light] .two-amplitude-wave{background:#fff}[data-theme=light] .two-amplitude-wave text{fill:#536579}[data-theme=light] .two-wave-cell{--trace-color:var(--axis-z)}[data-theme=light] .two-wave-cell.wave-component-1{--trace-color:var(--axis-x)}[data-theme=light] .two-wave-cell.wave-component-2{--trace-color:var(--axis-y)}[data-theme=light] .two-wave-cell.wave-component-3{--trace-color:#925007}[data-theme=light] .two-wave-cell .math-label{color:var(--trace-color)}@media (width<=700px){.two-wave-cell .amplitude-cell-body{grid-template-columns:minmax(0,1fr);gap:4px}.two-wave-cell .amplitude-stats{grid-template-columns:repeat(3,minmax(0,1fr));display:grid}.two-wave-cell .amplitude-stats>div:not(.bar-track){flex-direction:column;align-items:center;gap:2px}.two-wave-cell .amplitude-stats .bar-track{grid-column:1/-1}}.entanglement-heading{justify-content:space-between;align-items:center;gap:16px;display:flex}.concurrence-value{font:24px var(--math-font);color:#e3b9f4}.concurrence-value span{color:#d6cfda;margin-left:14px;font:12px Inter,sans-serif}.concurrence-meter{background:#252629;border:1px solid #242528;border-radius:7px;height:12px;margin-top:16px;overflow:hidden;box-shadow:inset 0 2px 3px #0006}.concurrence-meter>div{background:linear-gradient(90deg,#8860ad,#d49eef);height:100%;box-shadow:inset 0 1px #ffffff3a}.concurrence-scale{color:#aaa5b0;justify-content:space-between;margin-top:5px;font-size:11px;display:flex}.two-details{border-top:1px solid #55565a;padding-top:12px}.two-details summary,.two-measurement-panel>summary{cursor:pointer;color:#dedad3;font-size:13px}.two-details summary:focus-visible,.two-measurement-panel>summary:focus-visible{outline-offset:5px;outline:2px solid #f2d18f}.two-details p{color:#c3bfb8;margin-top:12px;font-size:12px;line-height:1.65}.two-density-grid{grid-template-columns:1fr 1fr;gap:20px;margin-top:16px;display:grid}.two-density-grid h3{font:16px var(--math-font);margin:0 0 10px}.density-matrix{background:#2a2b2f;border-left:2px solid #95929a;border-right:2px solid #95929a;grid-template-columns:1fr 1fr;gap:10px;padding:12px;font-size:13px;display:grid}.two-measurement-panel>summary{font-size:15px}.two-measurement-panel[open]>summary{margin-bottom:12px}.joint-basis-controls{margin:20px 0 12px}.joint-probabilities{grid-template-columns:repeat(4,1fr);gap:18px;display:grid}.joint-probabilities span{color:#dee5e7;font:16px var(--math-font);justify-content:space-between;margin-bottom:6px;display:flex}.joint-probabilities small{color:#c8dce3;font:12px Inter,sans-serif}.two-measurement-panel .two-subtle{margin-top:12px}@media (width<=1200px){.two-playback .two-select-label{margin-left:0}.amplitude-cell-body{gap:10px}.amplitude-cell-title{flex-wrap:wrap;gap:5px}}:root[data-theme=light]{color:#26303b;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;background:#fff}[data-theme=light] body,[data-theme=light] .app-shell{background:#fff}[data-theme=light] .panel{background:#fff;border-color:#c9cfd6;box-shadow:0 2px 7px #25344a0b}[data-theme=light] h1,[data-theme=light] h2{color:#26303b;text-shadow:none}[data-theme=light] :is(.eyebrow,.operation-readout,.vector-readout,.matrix-wrap,.footer-note,.sphere-view-control,.two-select-label,.two-subtle,.two-caption,.circuit-column-label,.circuit-qubit small,.circuit-rotation-controls,.reduced-stats,.concurrence-scale,.two-details p,.two-progress,.amplitude-note,.animation-control,.animation-switch-state,.angle-control>span,.probability-label,.equation){color:#586474}[data-theme=light] :is(.credit-line,.mobile-credit),[data-theme=light] .sphere-credit,[data-theme=light] .circuit-credit{color:#69727c}[data-theme=light] :is(.matrix,.matrix-basis-key,.math-label,.amplitude-stats strong,.circuit-qubit,.two-details summary,.two-measurement-panel>summary,.joint-probabilities span,.amplitude-caption){color:#26303b}[data-theme=light] :is(.vector-readout code,.equation span,.reduced-stats strong,.two-progress code){color:#925007}[data-theme=light] :is(.angle-control code,.probability-label code,.amplitude-cell-title code,.joint-probabilities small){color:#36516a}[data-theme=light] .sphere-frame{box-shadow:none;background:#fff;border-color:#c9cfd6}[data-theme=light] .sphere-hint{color:#657181;text-shadow:none}[data-theme=light] :is(.app-mode-control,.amplitude-phase-mode,.transport-controls){box-shadow:none;background:#f0f2f5;border-color:#c9cfd6}[data-theme=light] :is(.app-mode-control [role=tab],.amplitude-phase-mode button){color:#536171}[data-theme=light] :is(.app-mode-control [role=tab]:hover,.amplitude-phase-mode button:hover){color:#26303b;background:#e1e6ed}[data-theme=light] .app-mode-control [role=tab][aria-selected=true]{color:#26303b;text-shadow:none;background:#fff;border-color:#acb8c5;box-shadow:0 1px 3px #25344a18}[data-theme=light] .amplitude-phase-mode button[aria-pressed=true]{color:#174b63;box-shadow:none;background:#fff;border-color:#829fac}[data-theme=light] .theme-toggle{box-shadow:none;background:#fff;border-color:#a7b0bb}[data-theme=light] :is(.sphere-view-control select,.two-select-label select,.circuit-rotation-controls select,.circuit-rotation-controls input[type=number]){color:#26303b;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;box-shadow:none;background:#f5f6f8;border-color:#b7c0cb}[data-theme=light] :is(.sphere-view-control select option,.two-select-label select option,.circuit-rotation-controls select option){color:#26303b;background:#fff}[data-theme=light] :is(.measure-button,.reset-button,.two-button){color:#344253;text-shadow:none;background:linear-gradient(#fff,#e9edf2);border-color:#b7c0cb;box-shadow:0 1px 3px #25344a15}[data-theme=light] .two-button.primary{color:#fff;background:linear-gradient(#4b936c,#30794f);border-color:#6ca887}[data-theme=light] :is(.button-grid .axis-x,.circuit-gate.gate-x.enabled){background:linear-gradient(#c96e62,#ab4d42);border-color:#d78b80 #d78b80 #97443b}[data-theme=light] :is(.button-grid .axis-y,.circuit-gate.gate-ry.enabled){background:linear-gradient(#4b936c,#30794f);border-color:#6ca887 #6ca887 #296344}[data-theme=light] :is(.button-grid .axis-z,.circuit-interaction-toggle.gate-z.enabled){background:linear-gradient(#6188be,#426da7);border-color:#89a5cd #89a5cd #365c90}[data-theme=light] :is(.button-grid .axis-hadamard,.circuit-gate.gate-h.enabled){background:linear-gradient(#9773b9,#765197);border-color:#b297ca #b297ca #654582}[data-theme=light] :is(.button-grid button,.circuit-gate.enabled){text-shadow:0 1px 1px #0003;box-shadow:inset 0 1px #fff6,inset 0 -1px #00000012,0 2px 3px #25344a1f}[data-theme=light] :is(.bar-track,.concurrence-meter){background:#e9edf2;border-color:#c9cfd6;box-shadow:inset 0 1px 2px #25344a10}[data-theme=light] .measurement-result{color:#344253;box-shadow:none;background:#f5f6f8;border-color:#c9cfd6}[data-theme=light] .measurement-result strong{color:#355f9f}[data-theme=light] .two-circuit-grid{box-shadow:none;background:#f9fafb;border-color:#c9cfd6}[data-theme=light] .circuit-gate.off{color:#687381;text-shadow:none;background:linear-gradient(#f4f6f8,#e0e5eb);border-color:#a5b0bd;box-shadow:0 1px 3px #25344a18}[data-theme=light] .circuit-interaction-toggle.off{color:#687381}[data-theme=light] .circuit-gate.current{outline-color:#a05e0a}[data-theme=light] .two-sphere-panel{border-color:#d5dbe2}[data-theme=light] .two-amplitude-cell{box-shadow:none;background:#fafbfd;border-color:#d5dbe2}[data-theme=light] .amplitude-stats>div:not(.bar-track){color:#586474}[data-theme=light] .complex-glyph text{fill:#536579}[data-theme=light] .complex-glyph [fill=\#252b30]{fill:#fff;stroke:#8192a5}[data-theme=light] .complex-glyph [stroke=\#495760]{stroke:#ccd5df}[data-theme=light] .complex-glyph [stroke=\#596772]{stroke:#a8b6c5}[data-theme=light] .complex-glyph [stroke=\#79ddf4]{stroke:#14758e}[data-theme=light] .complex-glyph [fill=\#79ddf4],[data-theme=light] .complex-glyph [fill=\#d5f8ff]{fill:#14758e}[data-theme=light] .concurrence-value{color:#744193}[data-theme=light] .concurrence-value span{color:#586474}[data-theme=light] .two-details{border-color:#d5dbe2}[data-theme=light] .density-matrix{color:#344253;background:#f5f6f8;border-color:#9daabb}[data-theme=light] .two-measurement-notice{color:#71440c;background:#fff5df;border-color:#d5b77c}[data-theme=light] :is(.amplitude-explanation,.gate-axis-label){color:#344253;box-shadow:none;background:#ffffffed;border-color:#b7c5d1}[data-theme=light] .legend-swatch.geometric{color:#00788f;background:#00788f}[data-theme=light] .legend-swatch.phase{color:#9b238f;background:#9b238f}[data-theme=light] .matrix-bracket{color:#7c8999}[data-theme=light] .status-dot{background:#ba7515;box-shadow:0 0 0 3px #f6e8ce}.single-workspace{align-items:start}.single-workspace .visual-panel{min-width:0;min-height:0}.single-state-strip{grid-column:1/-1;grid-template-columns:minmax(155px,.8fr) minmax(0,1.5fr) minmax(220px,1fr);gap:22px;padding:16px 20px;display:grid}.single-state-strip>div{min-width:0}.single-state-strip h2,.single-state-strip h3{color:#d8d4cc;margin:0 0 10px;font-size:13px;font-weight:600}.single-state-summary,.single-state-presets{flex-direction:column;display:flex}.single-state-presets .presets{flex:1;align-content:center;gap:8px;padding-inline:16px}.single-state-presets .presets button{justify-self:center;width:100%;min-height:48px;padding:6px 5px}.single-state-representations{flex-wrap:wrap;flex:1;align-items:center;gap:12px;min-width:0;display:flex}.single-state-column{vertical-align:middle;color:#efc274;align-items:center;gap:8px;margin-left:8px;display:inline-flex}.quantum-matrix{color:inherit;font:13px/1.5 var(--math-font);font-variant-numeric:tabular-nums;flex:none;padding:5px 10px;display:inline-flex;position:relative}.quantum-matrix:before,.quantum-matrix:after{content:"";border-block:1.5px solid;width:5px;position:absolute;top:0;bottom:0}.quantum-matrix:before{border-left:1.5px solid;left:0}.quantum-matrix:after{border-right:1.5px solid;right:0}.quantum-matrix-rows{border-spacing:0;display:table}.quantum-matrix-row{display:table-row}.quantum-matrix-row>span{text-align:center;white-space:nowrap;padding:1px 7px;display:table-cell}.single-state-column .quantum-matrix{font:inherit}.single-state-column .quantum-matrix:before,.single-state-column .quantum-matrix:after{border-block:0;width:7px}.single-state-column .quantum-matrix:before{border-radius:100% 0 0 100%}.single-state-column .quantum-matrix:after{border-radius:0 100% 100% 0}.single-state-column .quantum-matrix-row>span{padding-inline:0}.single-state-strip .equation{min-height:0;font:16px/1.6 var(--math-font);font-variant-numeric:tabular-nums;overflow-wrap:anywhere;flex:220px}.single-state-strip .equation span{white-space:nowrap}.single-state-strip .single-probabilities{gap:8px;padding:10px 0 6px}.single-state-strip .single-probabilities span:before{content:"";background:#6395e2;border-radius:2px;width:8px;height:8px;margin-right:6px;display:inline-block}.single-state-strip .single-probabilities span+span:before{background:#e3aa50}.single-probability-total{background:#252629;border:1px solid #202226;border-radius:6px;flex-shrink:0;height:12px;display:flex;overflow:hidden}.single-probability-total>div{height:100%}.single-probability-total .probability-zero{background:linear-gradient(#6395e2,#326dc8)}.single-probability-total .probability-one{background:linear-gradient(#edbd70,#bb812c)}.single-state-angles .angle-control{grid-template-columns:148px minmax(0,1fr);align-items:center;gap:10px;margin-top:7px;display:grid}.single-state-angles .angle-control>span{align-items:center;margin-bottom:0}.single-state-angles .angle-value input{width:76px}.single-state-angles .single-help{margin:6px 0 0}.single-angle-note{grid-column:1/-1;justify-content:space-between;align-items:baseline;gap:8px;display:flex}.single-angle-note .quick-projection{flex-shrink:0;gap:4px;margin:0 0 0 auto;font-size:12px}.single-angle-note .quick-projection input{margin:0}@media (width<=1000px),(pointer:coarse){.single-angle-note .quick-projection{display:none}}.single-state-angles{flex-direction:column;display:flex}.single-state-angles>.measurement-axis-buttons{margin:auto 0 0;padding-top:6px}.single-workspace .sphere-frame{flex:none;height:clamp(420px,55vh,620px);min-height:420px}.single-controls{gap:10px;min-width:0;position:sticky;top:12px}.single-controls>.mobile-disclosure>.panel{scrollbar-width:thin;max-height:calc(100vh - 190px);overflow:auto}.single-controls h3,.compact-single-workspace .compact-options h3{color:#d8d4cc;margin:20px 0 10px;font-size:13px;font-weight:600}.single-controls [hidden]{display:none}.single-control-tabs{background:#292a2d;border:1px solid #55565a;border-radius:8px;grid-template-columns:1fr 1.25fr 1fr;gap:2px;padding:4px;display:grid}.single-display-options{padding:10px 0 0}.single-display-options>summary{cursor:pointer;font-size:14px}.single-gate-dock .panel-heading{margin-bottom:10px}.single-gate-dock .gates{grid-template-columns:repeat(6,minmax(0,1fr))}.single-gate-dock .gates button{min-height:42px;padding-inline:2px}.single-control-tabs button{color:#bbb8b1;background:0 0;border:1px solid #0000;border-radius:5px;padding:9px 2px;font-size:12px}.single-control-tabs button[aria-selected=true]{color:#f2d18f;background:#47443f;border-color:#777064}.single-control-tabs button:focus-visible,.single-history-entry:focus-visible{outline-offset:1px;outline:2px solid #f2d18f}.single-playback{flex-wrap:wrap;align-items:center;gap:8px 14px;margin-bottom:12px;display:flex}.single-toolbar{flex-wrap:wrap;flex:auto;align-items:center;gap:5px;display:flex}.single-toolbar .transport-button{width:34px;height:32px}.single-position{color:#aca9a3;font-variant-numeric:tabular-nums;margin-left:auto;font-size:12px}.single-playback .single-timeline{flex:120px;width:120px;min-width:100px;margin:0}.single-playback-area{min-width:0;margin-bottom:12px}.visual-panel>.single-playback-area{border-top:1px solid #7774;margin-top:10px;padding-top:8px}.disclosure-status{color:#bcb8b0;font-size:11px;font-weight:400}.single-active-modes{flex-wrap:wrap;gap:6px;margin-top:8px;font-size:11px;display:flex}.mode-indicator{color:#efd29b;background:#514936;border:1px solid #897755;border-radius:5px;padding:4px 7px}.compact-state>.single-active-modes{grid-column:1/-1;margin-top:0}[data-theme=light] .disclosure-status{color:#586474}[data-theme=light] .mode-indicator{color:#695025;background:#f2ebdc;border-color:#b7a784}.single-playback-area .single-playback{margin-bottom:6px}.single-playback-tools{flex-wrap:wrap;align-items:flex-start;gap:8px 16px;display:flex}.single-playback-settings{flex-wrap:wrap;align-items:center;gap:8px 14px;display:flex}.single-playback-settings .single-check,.single-playback-settings .two-select-label{margin:0}.single-playback-settings select{padding-block:4px}.two-select-label.animation-speed-control{gap:4px}.single-playback-history{flex:200px;min-width:0;padding:5px 0}.single-playback-history>summary,.single-history-details>summary{cursor:pointer;color:inherit;font-size:12px}.single-history-item{border-bottom:1px solid #7774;padding-bottom:5px}.single-history-details{margin:4px 8px}.single-history-details .quantum-matrix{color:#efc274;margin-top:8px}[data-theme=light] .single-history-details .quantum-matrix{color:#925007}.compact-playback .single-playback-area{margin:0}.compact-playback .single-playback-history{padding-bottom:0}.single-visual-readout{color:#bfbbb4;flex-direction:column;gap:6px;margin:12px 0 0;font-size:10px;display:flex}.single-visual-readout code{color:#efc274;font-size:12px}.single-visual-readout .amplitude-notes{border:0;margin:0;padding:0;font-size:11px}.single-visual-readout .amplitude-notes>summary{cursor:pointer;align-content:center;min-height:32px;font-size:11px;font-weight:400}.single-visual-readout .amplitude-notes .single-help{margin:6px 0;font-size:11px}.single-help{color:#b7b4ae;margin:10px 0;font-size:11px;line-height:1.6}.single-probabilities{color:#bfcad7;justify-content:space-between;padding:12px 0;font-size:12px;display:flex}.single-check{color:#d2cec6;align-items:center;gap:9px;margin:13px 0;font-size:12px;line-height:1.4;display:flex}.single-check input{accent-color:#4d8d71;flex:none}.single-wide{width:100%;margin:9px 0}.single-number-label{color:#cbc7bf;align-items:center;gap:8px;margin:14px 0 10px;font-size:12px;display:flex}.single-number-label input,.axis-components input{color:#ebe8e1;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;background:#37383b;border:1px solid #68696c;border-radius:5px;width:100px;padding:6px 8px}.single-number-label input:focus-visible,.axis-components input:focus-visible{outline-offset:2px;outline:2px solid #f2d18f}.axis-components{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px;display:grid}.axis-components label{color:#cfcbc4;flex-direction:column;gap:6px;font-size:12px;display:flex}.axis-components input{width:100%;min-width:0}.single-angle-presets{flex-wrap:wrap;gap:6px;display:flex}.gate-convention-control{display:flex}.gate-convention-control button{flex:1;padding-block:7px}.gate-phase-description{margin:8px 0 12px}.single-angle-presets button{padding:6px 9px}.single-details{border-top:1px solid #55565a;margin-top:16px;padding-top:12px}.single-details summary{cursor:pointer;color:#d8d4cc;font-size:13px}.single-details .two-select-label{margin:10px 0}.single-metrics{color:#c1c9d2;grid-template-columns:auto 1fr;gap:9px;font-size:12px;display:grid}.single-metrics dd{text-align:right;color:#e7cb9f;font-variant-numeric:tabular-nums;margin:0}.single-history{scrollbar-width:thin;max-height:190px;margin:8px 0 12px;overflow:auto}.single-history-entry{text-align:left;color:#d8d4cc;background:0 0;border:1px solid #0000;border-radius:5px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px 12px;width:100%;padding:8px;font-size:12px;display:flex}.single-history-description{flex-direction:column;gap:4px;min-width:0;display:flex}.single-history-entry .quantum-matrix{color:#efc274;margin-left:auto}.single-history-entry.selected{background:#48433a;border-color:#8b8068}.single-history-entry small{color:#a9a7a2;font-size:10px}.spinor-panel{border-top:1px solid #55565a;margin-top:12px;padding-top:10px}.spinor-marker-controls{margin-bottom:12px}.rigid-flag-key{color:#f5b45b}.phase-marker-key{color:#b1e1e5}[data-theme=light] .rigid-flag-key{color:#985011}[data-theme=light] .phase-marker-key{color:#417984}.spinor-discs{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.spinor-disc{color:#d9e4ea;min-width:0;font:14px var(--math-font);flex-direction:column;align-items:center;gap:5px;display:flex}.spinor-disc svg{width:100%;max-width:110px}.spinor-disc code{text-align:center;overflow-wrap:anywhere;font:10px ui-monospace,monospace}.spinor-disc-face{fill:#252b30;stroke:#677984}.spinor-disc-grid{stroke:#596772;fill:none}.spinor-disc-hand{stroke:#e3b9f4;stroke-width:2.3px}.spinor-disc-tip{fill:#e3b9f4}.spinor-disc text{fill:#b8c5d1;font-size:10px}.single-shell .operation-readout{max-width:230px}[data-theme=light] :is(.single-control-tabs,.single-history-entry.selected){background:#f0f2f5;border-color:#c9cfd6}[data-theme=light] .single-control-tabs button{color:#586474}[data-theme=light] .single-control-tabs button[aria-selected=true]{color:#26303b;background:#fff;border-color:#acb8c5}[data-theme=light] :is(.single-help,.single-position,.single-visual-readout,.single-history-entry small,.single-number-label,.axis-components label){color:#586474}[data-theme=light] :is(.single-controls h3,.compact-single-workspace .compact-options h3,.single-details summary,.single-check,.single-probabilities,.single-history-entry,.spinor-disc,.single-metrics),[data-theme=light] :is(.single-state-strip h2,.single-state-strip h3){color:#344253}[data-theme=light] .single-probability-total{border-color:#aeb9c7}[data-theme=light] :is(.single-visual-readout code,.single-metrics dd),[data-theme=light] :is(.single-state-column,.single-history-entry .quantum-matrix){color:#925007}[data-theme=light] :is(.single-state-strip .equation,.compact-state-component,.two-state-expression){color:#111}[data-theme=light] :is(.single-state-strip .equation span,.single-state-column,.two-state-coefficient,.two-state-math .single-state-column,.compact-state-component .state-coefficient){color:#a96808}[data-theme=light] .single-state-column>[aria-hidden=true]{color:#111}[data-theme=light] :is(.single-number-label input,.axis-components input){color:#26303b;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;background:#f5f6f8;border-color:#b7c0cb}[data-theme=light] :is(.single-details,.spinor-panel){border-color:#d5dbe2}[data-theme=light] .spinor-disc-face{fill:#fff;stroke:#8192a5}[data-theme=light] .spinor-disc-grid{stroke:#bdc8d5}[data-theme=light] .spinor-disc-hand{stroke:#744193}[data-theme=light] .spinor-disc-tip{fill:#744193}[data-theme=light] .spinor-disc text{fill:#536579}@media (width<=1100px){body:has(#explorer-single:not([hidden])){min-width:760px}.single-workspace{grid-template-columns:minmax(390px,1fr) 340px}.single-shell .topbar{flex-wrap:wrap;gap:16px}.single-shell .operation-readout{margin-left:auto}.single-state-strip{grid-template-columns:minmax(140px,.7fr) minmax(0,1.2fr) minmax(210px,1fr);gap:16px}.single-state-angles .angle-control{grid-template-columns:140px minmax(0,1fr);gap:6px}}@media (width<=800px){body:has(#explorer-single:not([hidden])){min-width:360px}.single-workspace{grid-template-columns:minmax(0,1fr)}.single-controls{position:static}.single-controls>.panel{max-height:none}.single-workspace .sphere-frame{height:480px;min-height:480px}.single-state-strip{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.single-state-summary{grid-area:1/1/auto/-1}.single-state-presets .presets{flex:none}.single-state-angles .angle-control{display:block}.single-state-angles .angle-control>span{margin-bottom:5px}.header-controls{flex-wrap:wrap}.app-mode-control [role=tab]{padding-inline:9px}}.mobile-disclosure{min-width:0}.mobile-disclosure>summary{display:none}.single-controls .single-control-tabs{margin-bottom:10px}.circuit-scroll{min-width:0}.sphere-touch-toggle{z-index:3;max-width:calc(100% - 20px);min-height:44px;position:absolute;top:10px;left:10px}.sphere-frame.has-corner-action .sphere-touch-toggle{top:auto;bottom:26px}.sphere-frame.touch-scroll>div,.sphere-frame.touch-scroll canvas{touch-action:pan-y pinch-zoom!important}.sphere-hint{pointer-events:none}.pwa-notice{z-index:100;bottom:max(16px, env(safe-area-inset-bottom));right:max(16px, env(safe-area-inset-right));color:#ece9e2;background:#303135;border:1px solid #777064;border-radius:10px;width:min(380px,100% - 32px);padding:16px;font-size:14px;line-height:1.5;position:fixed;box-shadow:0 6px 24px #0008}.pwa-notice>div{flex-wrap:wrap;gap:10px;margin-top:12px;display:flex}.pwa-notice button{min-height:44px}[data-theme=light] .pwa-notice{color:#26303b;background:#fff;border-color:#aeb9c7}@media (width<=1000px){.two-amplitude-panel .amplitude-heading-tools{grid-template-columns:max-content minmax(0,1fr);align-items:center;gap:6px;width:100%;display:grid}.two-amplitude-panel .amplitude-visualization-switch{grid-area:1/2;justify-self:end}.two-amplitude-panel .amplitude-phase-switch{grid-area:1/1;justify-self:start}.two-amplitude-panel .amplitude-heading-tools .amplitude-phase-mode button{padding-inline:5px;font-size:12px}.two-amplitude-panel .amplitude-heading-tools>.two-subtle{grid-area:2/1/auto/-1}:is(body,body:has(#explorer-single:not([hidden]))){min-width:0}.app-shell{padding:max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left))}.topbar,.single-shell .topbar{grid-template-columns:1fr auto;align-items:center;gap:12px;margin-bottom:14px;display:grid}h1{font-size:24px}.header-controls{flex-wrap:nowrap;grid-area:2/1/auto/-1;gap:8px;width:100%}.app-mode-control{flex:1;min-width:0;display:flex}.app-mode-control [role=tab]{white-space:normal;flex:1;min-width:0;min-height:44px;padding:7px;font-size:12px}.theme-toggle{flex:0 0 44px;width:44px;height:44px}.operation-readout,.single-shell .operation-readout{overflow-wrap:anywhere;grid-area:1/2;max-width:42vw;font-size:11px}.status-dot{flex:0 0 7px}.workspace.single-workspace{grid-template-columns:minmax(0,1fr);gap:12px}.single-workspace .visual-panel{grid-row:1;min-height:0;padding:12px}.single-workspace .visual-panel>.panel-heading{margin-bottom:12px}.single-workspace .sphere-frame{height:clamp(280px,78vw,440px);min-height:280px}.single-state-strip{grid-row:2;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:14px}.single-state-summary{grid-area:1/1/auto/-1}.single-state-strip .equation{overflow-wrap:anywhere;font-size:18px}.single-state-angles .angle-control{display:block}.single-state-angles .angle-control>span{flex-wrap:wrap;gap:4px;margin-bottom:5px}.single-state-angles .angle-value input{width:74px}.single-controls{grid-row:3;position:static}.single-controls>.mobile-disclosure>.panel{max-height:none;padding:14px;overflow:visible}.mobile-disclosure>summary{cursor:pointer;color:#ece9e2;background:#37383b;border:1px solid #68696c;border-radius:7px;min-height:48px;padding:12px;font-size:14px;display:list-item}.mobile-disclosure[open]>summary{margin-bottom:12px}[data-theme=light] .mobile-disclosure>summary{color:#26303b;background:#f5f6f8;border-color:#b7c0cb}button,summary,input[type=checkbox]{touch-action:manipulation}.button-grid button,.two-button,.single-toolbar .transport-button,.two-button.transport-button,.two-button.transport-button.primary,.amplitude-phase-mode button,.single-control-tabs button,.measure-button,.reset-button{min-height:44px}.single-toolbar .transport-button{width:44px}.single-toolbar{gap:6px}.single-position{margin-left:0}.single-playback .single-timeline{flex-basis:100%}.single-check{min-height:44px;margin:6px 0;font-size:14px}.single-check input{width:20px;height:20px}input[type=range]{min-height:36px;margin-block:2px}input[type=number],select,.angle-value input,.single-number-label input,.axis-components input{min-height:44px;font-size:16px}.single-number-label{flex-wrap:wrap}.single-control-tabs button,.single-help,.two-subtle,.two-caption,.single-details summary{font-size:13px}.single-metrics{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.single-metrics dd,.single-visual-readout,.footer-note{overflow-wrap:anywhere}.single-details summary,.two-details summary,.two-measurement-panel>summary{min-height:44px;padding-block:10px}.single-details .two-select-label{flex-wrap:wrap;display:flex}.sphere-view-control{gap:4px}.sphere-view-control select{min-width:0;max-width:160px;font-size:14px}.sphere-hint{text-align:center;font-size:11px;bottom:8px;left:10px;right:10px}.amplitude-explanation{padding:6px;bottom:32px;left:8px;right:8px}.gate-axis-label{white-space:normal;max-width:140px;font-size:11px}.two-workspace{grid-template-columns:minmax(0,1fr);grid-template-areas:"circuit""state""entanglement""spheres""amplitudes""measurement";gap:12px}.two-state-panel{flex-wrap:wrap;gap:12px;padding:14px}.two-state-probabilities{flex:100%}.two-state-probability-chart{justify-content:center}.two-circuit-panel,.two-amplitude-panel,.two-entanglement-panel,.two-measurement-panel,.two-spheres{padding:14px}.two-spheres{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.two-spheres>div:first-child{grid-column:1/-1}.two-sphere-panel{min-width:0}.two-sphere-panel .sphere-frame{height:clamp(220px,40vw,300px);min-height:220px}.two-sphere-panel .panel-heading{flex-wrap:wrap;gap:8px}.reduced-stats{align-items:flex-start}.two-sphere-panel .panel-heading h2{font-size:16px}.two-select-label{flex-wrap:wrap;min-width:0}.two-select-label select{min-width:0;max-width:100%;font-size:16px}.two-playback{grid-template-columns:minmax(0,1fr) auto;gap:8px;display:grid}.two-playback .transport-controls{grid-area:1/1;justify-self:start;gap:2px;max-width:100%;padding:3px}.two-playback .two-button.transport-button{flex:0 36px;width:36px;min-width:0;min-height:40px}.two-playback .two-progress{display:contents}.two-playback .two-progress code{white-space:nowrap;grid-area:1/2;justify-self:end;font-size:11px}.two-playback .two-progress input{grid-area:2/1/auto/-1;width:100%;min-width:0;margin:0}.two-playback .two-select-label{grid-area:3/1/auto/-1;margin-left:0}.circuit-scroll{overscroll-behavior-x:contain;padding:5px 4px 12px;overflow-x:auto}.two-circuit-grid{--circuit-row-height:150px;min-width:660px}.two-circuit-grid:has(.circuit-angle-slider){--circuit-row-height:260px}.circuit-rotation-controls{font-size:14px}.circuit-rotation-controls input,.circuit-rotation-controls select{height:44px;min-height:44px;font-size:16px}.circuit-rotation-controls.has-angle{width:140px}.circuit-rotation-controls .circuit-angle-slider{min-height:36px}.circuit-interaction-controls{top:calc(var(--circuit-row-height) * 1.5 + 38px)}.amplitude-heading-tools{align-items:flex-start}.two-amplitude-matrix{grid-template-columns:30px repeat(2,minmax(0,1fr));gap:6px}.matrix-basis-key{font-size:13px}.two-amplitude-cell{min-height:250px;padding:8px 6px}.amplitude-cell-title code{overflow-wrap:anywhere;font-size:12px}.complex-glyph{aspect-ratio:1;flex:none;width:min(100%,150px);height:auto}.amplitude-stats{font-size:12px}.amplitude-stats>div:not(.bar-track){flex-wrap:wrap;gap:4px}.amplitude-matrix-note{margin-left:0}.entanglement-heading{flex-wrap:wrap;gap:8px}.concurrence-value span{margin-left:6px}.two-density-grid{grid-template-columns:minmax(0,1fr)}.density-matrix{overflow-wrap:anywhere;gap:8px;padding:8px;font-size:12px}.two-details p{overflow-wrap:anywhere}.joint-probabilities{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.two-measurement-notice{flex-wrap:wrap;gap:10px}}@media (width<=540px){.single-state-presets,.single-state-angles{grid-column:1/-1}.single-state-angles{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px;display:grid}.single-state-angles h3,.single-state-angles .single-help{grid-column:1/-1}.single-state-angles .angle-value input{width:58px}.single-controls .button-grid.gates{grid-template-columns:repeat(3,minmax(0,1fr))}.two-spheres{grid-template-columns:minmax(0,1fr)}.two-sphere-panel .sphere-frame{height:270px;min-height:270px}.two-sphere-panel .panel-heading{flex-wrap:nowrap}.reduced-stats{align-items:flex-end}}@media (width<=1000px) and (orientation:landscape) and (height<=550px){.single-workspace .sphere-frame{height:70svh;min-height:220px;max-height:360px}.two-sphere-panel .sphere-frame{height:65svh;min-height:220px;max-height:320px}}.mobile-disclosure.always-open>summary{display:none}.mobile-presentation-toggle{flex:none;min-height:44px;padding-inline:10px}.mobile-compact .app-shell{padding:max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left))}.mobile-compact .topbar{gap:5px 8px;margin-bottom:8px}.mobile-compact .topbar .eyebrow{display:none}.mobile-compact h1{font-size:19px}.mobile-compact .header-controls{gap:6px}.mobile-compact .app-mode-control{padding:2px}.mobile-compact .app-mode-control [role=tab]{min-height:40px;padding:5px;font-size:13px}.mobile-compact .operation-readout{max-width:46vw;font-size:10px}.compact-single-workspace{grid-template-columns:minmax(0,1fr);grid-template-areas:"sphere""state""actions""playback""evolution""complex""rotations""measurement""mixed""display";gap:8px;display:grid}.compact-single-workspace>.panel{min-width:0;padding:8px}.compact-sphere{grid-area:sphere}.compact-actions{grid-area:actions}.compact-state{grid-area:state}.compact-playback{grid-area:playback}.compact-rotations{grid-area:rotations}.compact-measurement{grid-area:measurement}.compact-display-options{grid-area:display}.compact-actions>details{border-top:1px solid #7774;min-width:0}.compact-actions>details[open]{grid-column:1/-1}.compact-actions>details>summary{min-height:30px;padding-block:5px;font-size:12px}.compact-options .panel-heading{display:none}.compact-options .task-explanation{margin-top:8px}.mixed-panel{min-width:0;padding:14px 16px}.compact-single-workspace>.mixed-panel{grid-area:mixed}.mixed-panel>summary{cursor:pointer;padding-block:5px;font-size:15px;font-weight:600}.measurement-summary{min-width:0}.measurement-axis-buttons{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin-bottom:6px;display:grid}.measurement-axis-toolbar{align-items:center;gap:8px;margin-bottom:8px;display:flex}.measurement-axis-toolbar>.two-select-label{min-width:0}.measurement-axis-toolbar select{width:100%;min-width:0}.measurement-axis-input-switch{flex-shrink:0;justify-content:flex-end;margin-left:auto;display:flex}.measurement-axis-input-switch button{white-space:nowrap;padding-inline:6px}.measurement-axis-buttons .measurement-axis{text-align:center;border-radius:6px;min-width:0;min-height:32px;padding:5px 4px;font-size:12px}.measurement-axis-buttons .measurement-axis[aria-pressed=true]{outline:2px solid var(--measurement-color);outline-offset:1px;box-shadow:inset 0 2px 5px #00000059,0 1px 2px #00000040}.measurement-axis.axis-x{--measurement-color:#de8275;--measurement-fill:var(--axis-x)}.measurement-axis.axis-y{--measurement-color:#61bc91;--measurement-fill:var(--axis-y)}.measurement-axis.axis-z{--measurement-color:#7fa9e9;--measurement-fill:var(--axis-z)}.measurement-axis:focus-visible{outline:2px solid var(--measurement-color);outline-offset:2px}.measurement-axis sub{font-size:.75em}.measurement-summary{--outcome-color:#edbd70;--outcome-shade:#bb812c}.measurement-summary[data-probability-axis=X]{--outcome-color:#de8275;--outcome-shade:var(--axis-x)}.measurement-summary[data-probability-axis=Y]{--outcome-color:#61bc91;--outcome-shade:var(--axis-y)}.measurement-summary[data-probability-axis=Z]{--outcome-color:#7fa9e9;--outcome-shade:var(--axis-z)}.measurement-summary .single-probability-total .probability-zero{background:linear-gradient(var(--outcome-color), var(--outcome-shade))}.single-state-strip .measurement-summary .single-probabilities span:first-child:before{background:var(--outcome-color)}.compact-probabilities .measurement-summary .single-probabilities>span:first-child{color:var(--outcome-color)}[data-theme=light] .compact-probabilities .measurement-summary .single-probabilities>span:first-child{color:var(--outcome-shade)}@media (width<=600px){.single-state-angles>.measurement-axis-buttons{grid-column:1/-1}}.complex-amplitudes-panel{min-width:0;padding:14px 16px}.compact-single-workspace>.complex-amplitudes-panel{grid-area:complex}.complex-amplitudes-panel>summary{cursor:pointer;padding-block:5px;font-size:15px;font-weight:600}.complex-view-toggle{margin-top:10px;display:flex}.complex-view-toggle button{flex:1;min-height:40px}.complex-basis-expression{font:17px var(--math-font)}.complex-components{--positive-trace:#7fa9e9;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.complex-components[data-basis=X]{--positive-trace:#de8275}.complex-components[data-basis=Y]{--positive-trace:#61bc91}.complex-components .component-0{--trace-color:var(--positive-trace)}.complex-components .component-1{--trace-color:#edbd70}.complex-wave-overlay{background:#20242a;border-radius:6px;grid-column:1/-1;width:100%;display:block}.complex-wave-overlay text{fill:#b4c0cd;font:8px system-ui,sans-serif}.complex-components.waves .component-1 .complex-trace{stroke-dasharray:6 3}.complex-components.waves .complex-component figcaption{color:var(--trace-color);font-variant-numeric:tabular-nums;font-size:13px;line-height:1.4}.complex-components.waves .complex-component figcaption:before{content:"";border-top:2px solid var(--trace-color);vertical-align:middle;width:10px;margin-right:4px;display:inline-block}.complex-components.waves .component-1 figcaption:before{border-top-style:dashed}[data-theme=light] .complex-components .component-0 figcaption{color:var(--axis-z)}[data-theme=light] .complex-components[data-basis=X] .component-0 figcaption{color:var(--axis-x)}[data-theme=light] .complex-components[data-basis=Y] .component-0 figcaption{color:var(--axis-y)}[data-theme=light] .complex-components .component-1 figcaption{color:#925007}.complex-component{--trace-color:#ff7c89;min-width:0;margin:0}.complex-component figcaption{color:var(--trace-color);font:16px var(--math-font);overflow-wrap:anywhere;margin-bottom:5px}.complex-component svg{background:#20242a;border-radius:6px;width:100%;display:block}.complex-unit-circle{fill:none;stroke:#718091}.complex-chart-grid{fill:none;stroke:#4a5563;stroke-width:.6px}.complex-component svg text{fill:#b4c0cd;font:8px system-ui,sans-serif}.complex-trace{fill:none;stroke:var(--trace-color);stroke-width:2px;stroke-linecap:round;stroke-linejoin:round}.complex-wave-glow{fill:none;stroke:var(--trace-color);stroke-width:6px;opacity:.12}.complex-component-stats{color:#b4c0cd;margin-top:5px;font-size:11px;line-height:1.5}.complex-amplitude-notes{margin-top:8px}.complex-amplitude-notes>summary{cursor:pointer;font-size:12px;font-weight:400}.vector-tip-controls{border:1px solid #66676b;border-radius:6px;min-width:0;margin:8px 0 12px;padding:10px}.vector-tip-controls legend{padding-inline:4px;font-size:12px}.vector-tip-slider{margin-top:10px;font-size:12px;display:block}.vector-tip-slider output{float:right;font-variant-numeric:tabular-nums}.vector-tip-slider input{display:block}[data-theme=light] .complex-component-stats{color:#586474}[data-theme=light] :is(.complex-component svg,.complex-wave-overlay){background:#fff}[data-theme=light] :is(.complex-component svg,.complex-wave-overlay) text{fill:#536579}[data-theme=light] .complex-chart-grid{stroke:#ccd5df}[data-theme=light] .complex-unit-circle{stroke:#8192a5}[data-theme=light] .complex-components{--positive-trace:var(--axis-z)}[data-theme=light] .complex-components[data-basis=X]{--positive-trace:var(--axis-x)}[data-theme=light] .complex-components[data-basis=Y]{--positive-trace:var(--axis-y)}[data-theme=light] .complex-components .component-1{--trace-color:#925007}[data-theme=light] .complex-wave-glow{opacity:.06}[data-theme=light] .component-0 figcaption{color:#aa344c}[data-theme=light] .component-1 figcaption{color:#176d79}.compact-probabilities .measurement-axis{min-height:36px;padding-inline:1px;font-size:11px}.mixed-panel>.single-check{margin-block:10px}.mixed-panel .two-select-label{flex-wrap:wrap}.mixed-context{margin-top:10px;display:flex}.mixed-context button{flex:1;min-height:40px}.mixed-captures{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-block:12px;display:grid}.mixed-captures>div{flex-direction:column;align-items:center;gap:5px;display:flex}.mixed-captures button{width:100%;min-height:40px}.mixed-capture-status{font-size:11px}.capture-a{color:#79d2ed}.capture-b{color:#e1c38f}.mixed-slider{margin-block:14px;font-size:13px;display:block}.mixed-slider input{margin-top:8px;display:block}.mixed-metrics{flex-wrap:wrap;gap:8px 20px;padding-block:12px;font-size:13px;display:flex}.mixed-metrics strong{color:#efc274;font-variant-numeric:tabular-nums}.mixed-ghost-label{text-shadow:0 1px 3px #16191d;font:600 12px system-ui,sans-serif}.mixed-density-readout{font:17px/1.5 var(--math-font);flex-wrap:wrap;align-items:center;gap:10px;display:flex}.mixed-density-readout .quantum-matrix{font:inherit}.mixed-density-readout>span:last-child{color:#aaa9a4;font-size:13px}.compact-state.compact-density-state{grid-template-columns:minmax(0,1fr)}.compact-density-state .compact-probabilities .single-probabilities{justify-content:space-between;display:flex}[data-theme=light] .capture-a{color:#227894}[data-theme=light] .capture-b{color:#916121}[data-theme=light] .mixed-metrics strong{color:#925007}[data-theme=light] .mixed-ghost-label{text-shadow:0 1px 3px #fff}[data-theme=light] .mixed-density-readout>span:last-child{color:#69727c}.compact-sphere>.sphere-view-control{justify-content:space-between;margin-bottom:6px;font-size:12px}.compact-sphere>.panel-heading{margin-bottom:6px}.compact-sphere>.panel-heading>div{display:none}.compact-sphere>.panel-heading .sphere-view-control{justify-content:space-between;width:100%;font-size:12px}.compact-sphere>.single-visual-readout,.compact-sphere>p,.compact-sphere>.single-details{display:none}.compact-sphere .sphere-view-control select{max-width:190px;min-height:32px;padding-block:3px;font-size:14px}.compact-sphere .sphere-frame{flex:none;height:clamp(100px,100svh - 468px,340px);min-height:100px}.compact-sphere .sphere-touch-toggle{min-height:32px;padding:5px 8px;font-size:11px;top:6px;left:6px}.compact-sphere .sphere-hint{font-size:10px;bottom:5px}.compact-sphere .amplitude-explanation{bottom:24px}.compact-sphere .amplitude-note,.compact-sphere .amplitude-caption,.compact-sphere .amplitude-probability-explanation{display:none}.compact-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.compact-actions h2{margin-bottom:4px;font-size:11px;font-weight:500}.compact-actions .button-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin:0}.compact-actions .button-grid button{min-height:44px;padding:3px 0;font-size:17px}.compact-state{grid-template-columns:minmax(0,1fr) max-content;align-items:center;gap:6px;display:grid}.compact-state .single-state-column{min-width:0;font:16px/1.4 var(--math-font);flex-wrap:wrap;gap:5px;margin:0;display:flex}.compact-state .single-state-column>span:first-child{white-space:nowrap}.compact-state .single-state-column>.compact-state-component{white-space:normal;flex-wrap:wrap;gap:0 3px;max-width:100%;font-size:14px;display:inline-flex}.compact-state-component>span{white-space:nowrap}.compact-state-component>.compact-state-term{white-space:normal;max-width:100%}.compact-state-vector{align-items:center;gap:3px;font-size:14px;display:inline-flex}.compact-state .quantum-matrix{padding:3px 8px;font-size:14px}.compact-state .quantum-matrix-row>span{padding-inline:0}.compact-probabilities{width:max-content;min-width:0;max-width:100%}.compact-probabilities .single-probabilities{flex-wrap:nowrap;gap:4px;padding:0 0 5px;font-size:11px;display:flex}.compact-probabilities .single-probabilities>span{white-space:nowrap}.compact-probabilities .single-probabilities>span:first-child{color:#8fb3ed}.compact-probabilities .single-probabilities>span:last-child{color:#e3aa50}[data-theme=light] .compact-probabilities .single-probabilities>span:first-child{color:#355f9f}[data-theme=light] .compact-probabilities .single-probabilities>span:last-child{color:#925007}.compact-playback .single-playback{gap:2px;margin:0}.compact-playback .single-toolbar{gap:3px}.compact-playback .transport-button{width:36px;min-height:40px}.compact-playback .single-position{margin-left:auto}.compact-options>summary{cursor:pointer;min-height:36px;padding-block:8px;font-size:13px}.compact-single-workspace>:is(.compact-options,.mixed-panel,.complex-amplitudes-panel)>summary{min-height:36px;padding-block:8px;font-size:13px;font-weight:500}.compact-options .single-help{font-size:12px}.mobile-compact .two-workspace{grid-template-areas:"circuit""state""playback""entanglement""spheres""amplitudes""measurement";gap:8px}.two-state-panel.is-compact{display:block}.two-state-panel.is-compact h2{font-size:13px}.two-state-panel.is-compact .two-state-math{margin-top:4px;font-size:15px;line-height:1.5}.two-state-panel.is-compact .two-state-probabilities{margin-top:8px}.two-state-panel.is-compact .two-state-probabilities h3{font-size:11px}.two-state-panel.is-compact .two-state-probability-chart{display:block}.two-probability-bar{border:1px solid #68696c;border-radius:5px;height:12px;margin-bottom:6px;display:flex;overflow:hidden}.two-probability-bar>div{background:var(--outcome-color);flex-shrink:0}.two-state-panel.is-compact .two-probability-legend{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.two-state-panel.is-compact .two-probability-legend li{grid-template-columns:8px minmax(0,1fr);gap:2px 5px;font-size:14px}.two-state-panel.is-compact .two-probability-legend strong{text-align:left;grid-column:2;font-size:11px}.mobile-compact .two-workspace>.panel{padding:8px}.mobile-compact .two-circuit-panel>.panel-heading{gap:4px;margin-bottom:4px}.mobile-compact .two-circuit-panel>.panel-heading>div{display:none}.mobile-compact .two-circuit-panel .two-select-label{flex-wrap:nowrap;flex:1;gap:6px;font-size:11px;display:flex}.mobile-compact .two-circuit-panel .two-select-label select{flex:1;max-width:none;min-height:36px;padding:4px;font-size:14px}.mobile-compact .circuit-scroll{padding:0;overflow:visible}.mobile-compact .circuit-credit{display:none}.mobile-compact .two-circuit-grid{--circuit-row-height:84px;grid-template-columns:24px repeat(4,minmax(0,1fr));grid-template-rows:18px repeat(2, var(--circuit-row-height));min-width:0;padding:4px 2px 24px}.mobile-compact .circuit-column-label{align-self:center;font-size:10px}.mobile-compact .circuit-qubit{gap:0;font-size:14px}.mobile-compact .circuit-qubit small{display:none}.mobile-compact .circuit-gate{width:40px;height:40px;min-height:40px;font-size:22px}.mobile-compact .circuit-interaction-toggle{top:calc(var(--circuit-row-height) / 2 - 22px);width:36px;max-width:none;height:calc(var(--circuit-row-height) + 54px)}.mobile-compact .circuit-rotation-controls{gap:0;top:calc(50% + 24px)}.mobile-compact .circuit-rotation-controls select{width:48px;height:32px;min-height:32px;padding:1px;font-size:14px}.mobile-compact .circuit-interaction-controls{top:calc(var(--circuit-row-height) * 1.5 + 32px)}.mobile-compact .circuit-help,.mobile-compact .two-circuit-panel>.two-caption{display:none}.compact-circuit-angles>summary{cursor:pointer;min-height:36px;padding-block:8px;font-size:13px}.compact-ry-control{flex-wrap:wrap;align-items:center;gap:4px 10px;margin-bottom:8px;font-size:12px;display:flex}.compact-ry-control>span{flex-basis:100%}.compact-ry-control input[type=number]{width:76px;color:inherit;background:0 0;border:1px solid #68696c;border-radius:5px}.compact-ry-control .circuit-angle-range{flex:1;width:auto;min-width:100px}.mobile-compact .two-spheres{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.mobile-compact .two-spheres>div:first-child{display:none}.mobile-compact .two-sphere-panel{border:0;padding-top:0}.mobile-compact .two-sphere-panel .panel-heading{align-items:center;gap:4px;margin-bottom:4px}.mobile-compact .two-sphere-panel .eyebrow{display:none}.mobile-compact .two-sphere-panel h2{white-space:nowrap;font-size:13px}.mobile-compact .reduced-stats strong{min-width:0}.mobile-compact .reduced-stats>span+span,.mobile-compact .reduced-note{display:none}.mobile-compact .two-sphere-panel .sphere-frame{height:clamp(145px,43vw,220px);min-height:145px}.mobile-compact .two-sphere-panel .sphere-touch-toggle{max-width:calc(100% - 8px);min-height:32px;padding:3px 4px;font-size:10px;top:4px;left:4px}.mobile-compact .two-sphere-panel .sphere-frame.has-corner-action .sphere-touch-toggle{top:auto;bottom:4px}.mobile-compact .two-sphere-panel .sphere-hint,.mobile-compact .two-amplitude-panel .eyebrow,.mobile-compact .amplitude-heading-tools>.two-subtle,.mobile-compact .amplitude-matrix-note{display:none}.mobile-compact .two-amplitude-panel .panel-heading{gap:4px;margin-bottom:6px}.mobile-compact .two-amplitude-panel h2{font-size:14px}.compact-amplitude-matrix{grid-template-columns:20px repeat(2,minmax(0,1fr));gap:4px;margin-inline:-2px}.compact-matrix-corner{width:20px;height:20px;overflow:visible}.compact-matrix-corner text{fill:currentColor;font:9px var(--math-font)}.compact-matrix-corner path{fill:none;stroke:currentColor;stroke-width:.6px;opacity:.6}.mobile-compact .amplitude-phase-mode button{min-height:32px;padding:3px 6px}.mobile-compact .two-amplitude-cell{min-height:205px;padding:6px}.mobile-compact .complex-glyph{width:min(100%,110px)}.mobile-compact .amplitude-stats{gap:4px;font-size:11px}.mobile-compact .two-wave-cell .amplitude-cell-body{grid-template-columns:minmax(0,1fr);gap:4px}.mobile-compact .two-amplitude-waves .two-wave-cell{min-height:0;padding:8px}.mobile-compact .two-amplitude-panel .amplitude-heading-tools{flex-flow:wrap;align-items:center;gap:6px}.mobile-compact .two-wave-cell .amplitude-stats{grid-template-columns:repeat(3,minmax(0,1fr));display:grid}.mobile-compact .two-wave-cell .amplitude-stats>div:not(.bar-track){flex-direction:column;align-items:center;gap:2px}.mobile-compact .two-wave-cell .amplitude-stats .bar-track{grid-column:1/-1}.mobile-compact .two-amplitude-panel.is-waves .two-wave-explanation{display:block}.compact-two-playback{grid-area:playback}.compact-two-playback .two-playback{margin-top:0}.mobile-compact .two-entanglement-panel .eyebrow,.mobile-compact .two-entanglement-panel .two-caption,.mobile-compact .two-entanglement-panel .two-details,.mobile-compact .two-measurement-panel{display:none}.mobile-compact .two-entanglement-panel h2{font-size:14px}.mobile-compact .concurrence-value{font-size:18px}.mobile-compact .concurrence-meter{margin-top:8px}body:has(.mobile-compact) .pwa-notice{width:calc(100% - 16px);margin:8px;position:relative;inset:auto}@media (width<=360px){.compact-state .single-state-column{flex-direction:column;align-items:flex-start;gap:0}.compact-state .single-state-column>span:first-child,.compact-state-vector{font-size:12px}.compact-state .quantum-matrix{padding-inline:5px;font-size:12px}}.real-geometry-eligibility{color:#acb5c0;margin:0 0 8px;font-size:11px;line-height:1.4}.real-geometry-unavailable{color:#c3cbd5;background:#292a2d;border:1px solid #55565a;border-radius:7px;align-content:center;min-height:400px;padding:32px;display:grid}.real-geometry-unavailable p{font-size:13px;line-height:1.6}.bloch-circle-view{--circle-a:#8ab9fa;--circle-b:#f29caa;--circle-c:#d392f6;background:radial-gradient(at 45% 38%,#353639,#292a2d 76%);border:1px solid #55565a;border-radius:7px;flex-direction:column;flex:1;min-width:0;padding:8px 12px;display:flex}.bloch-circle-drawing{width:100%;height:450px;min-height:200px;display:block}.bloch-circle-drawing text{fill:#c4cdd7;font:15px var(--math-font)}.circle-perimeter{fill:none;stroke:#aab7c7;stroke-width:1.5px}.circle-guide{fill:none;stroke:#737f8d;stroke-width:.7px;stroke-dasharray:3 4}.bloch-circle-drawing line{stroke-width:2.3px}.circle-a{stroke:var(--circle-a)}.circle-b{stroke:var(--circle-b)}.circle-c{stroke:var(--circle-c)}.bloch-circle-view .circle-a-text{color:var(--circle-a);fill:var(--circle-a)}.bloch-circle-view .circle-b-text{color:var(--circle-b);fill:var(--circle-b)}.bloch-circle-view .circle-c-text{color:var(--circle-c);fill:var(--circle-c)}.bloch-circle-view{--circle-state:#ffb663;--circle-mixedness:#7ac699}.circle-radius{stroke:var(--circle-state)}.circle-state{fill:var(--circle-state)}.circle-origin{fill:#aab7c7}.bloch-circle-view .circle-r-text{color:var(--circle-state);fill:var(--circle-state)}.bloch-circle-view .circle-s-text{color:var(--circle-mixedness);fill:var(--circle-mixedness)}.circle-mixedness{stroke:var(--circle-mixedness);stroke-dasharray:5 3}.circle-reference-radius{stroke:#9daab9;stroke-dasharray:4 4}.bloch-circle-drawing .circle-reference-radius-label{font-weight:600}.circle-right-angle{fill:none;stroke:var(--circle-mixedness);stroke-width:1px}.circle-values{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:8px;font-size:13px;display:grid}.real-geometry-details{color:#b4bfca;margin-top:10px;font-size:12px;line-height:1.6}.real-geometry-details summary{cursor:pointer;min-height:36px;padding-block:8px}.real-geometry-details p{margin-block:6px}.real-geometry-details a{color:inherit;text-decoration:underline}.circle-credit{text-align:right;color:#adb3bb;margin:8px 0 2px;font-size:11px}.two-torus-view{flex-direction:column;flex:1;min-width:0;display:flex}.torus-frame{background:radial-gradient(at 45% 38%,#353639,#292a2d 76%);border:1px solid #55565a;border-radius:7px;flex:1;min-width:0;min-height:390px;position:relative;overflow:hidden}.torus-frame canvas{display:block;touch-action:none!important}.torus-frame.touch-scroll>div,.torus-frame.touch-scroll canvas{touch-action:pan-y!important}.torus-reset{font-size:11px;position:absolute;top:8px;right:8px}.torus-touch{font-size:11px;position:absolute;top:8px;left:8px}.torus-hint{color:#b7c1cc;pointer-events:none;font-size:11px;position:absolute;bottom:10px;left:10px;right:10px}.torus-readout{color:#c5cdd6;margin:10px 0 0;font-size:12px;line-height:1.6}.torus-key{color:#aeb8c3;margin:6px 0 0;font-size:11px;line-height:1.5}.torus-display-controls{flex-wrap:wrap;gap:8px 12px;margin:8px 0;display:flex}.torus-display-controls .two-select-label{min-width:0;max-width:100%}.torus-display-controls select{max-width:100%}.torus-unavailable{color:#d1dae4;pointer-events:none;background:#24282df2;border:1px solid #6c7884;border-radius:6px;padding:15px;font-size:13px;line-height:1.6;position:absolute;inset:60px 15px auto}.amplitude-phase-mode button:disabled{opacity:.5;cursor:not-allowed}[data-theme=light] :is(.bloch-circle-view,.torus-frame,.real-geometry-unavailable){background:#fff;border-color:#c9cfd6}[data-theme=light] .bloch-circle-view{--circle-a:#2b5794;--circle-b:#a13c4f;--circle-c:#8653a1;--circle-state:#b26b0d;--circle-mixedness:#287448}[data-theme=light] .bloch-circle-view .circle-r-text{fill:var(--circle-state)}[data-theme=light] .bloch-circle-view .circle-s-text{fill:var(--circle-mixedness)}[data-theme=light] :is(.bloch-circle-drawing text,.torus-readout,.torus-key){fill:#435163;color:#435163}[data-theme=light] :is(.real-geometry-details,.real-geometry-unavailable,.real-geometry-eligibility,.circle-credit,.torus-hint){color:#586474}[data-theme=light] .torus-unavailable{color:#435163;background:#fffffff2;border-color:#c9cfd6}.compact-sphere .bloch-circle-drawing{height:280px}.compact-sphere .bloch-circle-view{padding:4px 6px}.compact-sphere .circle-values{gap:6px;padding:4px;font-size:11px}.compact-sphere .real-geometry-unavailable{min-height:280px;padding:16px}.mobile-compact .torus-frame{flex:none;height:310px;min-height:310px}@media (orientation:landscape) and (height<=550px) and (width>=650px){.compact-sphere .bloch-circle-drawing{height:220px}.compact-single-workspace{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);grid-template-areas:"sphere actions""state playback""evolution evolution""complex complex""rotations rotations""measurement measurement""mixed mixed""display display";align-items:start}.compact-sphere{grid-area:1/1}.compact-sphere .sphere-frame{height:calc(100svh - 250px);min-height:100px;max-height:240px}.compact-state{grid-area:2/1}.compact-state .single-probabilities{gap:8px;display:flex}.compact-actions,.compact-playback{grid-column:2}.compact-single-workspace>.compact-options,.compact-single-workspace>.mixed-panel,.compact-single-workspace>.complex-amplitudes-panel{grid-column:1/-1}}.free-frame-control{z-index:7;flex-direction:column;align-items:flex-end;gap:6px;display:flex;position:absolute;top:8px;right:8px}.sphere-view-tools{align-items:center;gap:6px;min-width:0;display:flex}.measurement-overlay-toggle{display:none}.sphere-top-right-controls{z-index:7;pointer-events:none;flex-direction:column;align-items:flex-end;gap:8px;max-width:calc(100% - 16px);display:flex;position:absolute;top:8px;right:8px}.sphere-top-right-controls .free-frame-control{pointer-events:auto;position:static}.sphere-top-right-controls .bloch-probability-key{max-width:100%;position:static}.free-frame-switch{background:#292c31ed;border:1px solid #64676d;border-radius:6px;padding:2px;display:inline-flex}.free-frame-switch button{color:#cdd2da;cursor:pointer;background:0 0;border:0;border-radius:4px;min-height:30px;padding:4px 8px;font:11px/1.3 system-ui,sans-serif}.free-frame-switch button[aria-pressed=true]{color:#fff;background:#42618a;box-shadow:inset 0 1px #fff3}.free-frame-switch button:focus-visible{outline-offset:1px;outline:2px solid #f2d18f}.free-frame-control .transport-button{width:34px;min-height:34px;padding:4px}.free-evolution-panel{min-width:0;padding:16px 18px}.free-evolution-panel>summary{cursor:pointer;font-size:15px;font-weight:600}.free-frequency{margin-top:12px;display:block}.free-frequency>span{justify-content:space-between;align-items:center;gap:8px;font-size:12px;display:flex}.free-frequency input[type=number]{width:84px;color:inherit;font:inherit;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;background:#37383b;border:1px solid #68696c;border-radius:4px;padding:4px 6px}.free-evolution-readouts{color:#efc274;font:13px/1.5 var(--math-font);font-variant-numeric:tabular-nums;background:#25282e;border:1px solid #66676b;border-radius:5px;flex-wrap:wrap;gap:6px 16px;margin-top:8px;padding:8px;display:flex}.free-evolution-counter-row{align-items:center;gap:8px;margin-top:8px;display:flex}.free-evolution-counter-row .free-evolution-readouts{flex:1;gap:2px 12px;min-width:0;margin-top:0}.free-evolution-reset{flex:none;margin:0}.free-evolution-counter-row>button{flex:0 0 34px;justify-content:center;align-items:center;width:34px;min-height:34px;padding:4px;display:inline-flex}.free-evolution-counter-toggle[aria-pressed=true]{color:#9ad7bd;border-color:#72a98c}.free-counter-status{margin-top:5px}.complex-relative-phase{align-items:center;gap:6px;margin:6px 0;display:flex}.complex-relative-phase input{width:auto;margin:0}.compact-single-workspace>.free-evolution-panel{grid-area:evolution;padding:12px}[data-theme=light] .free-frame-switch,[data-theme=light] .free-frequency input,[data-theme=light] .free-evolution-readouts{color:#344253;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;background:#fffffff0;border-color:#b7c0cb}[data-theme=light] .free-frame-switch button{color:#344253}[data-theme=light] .free-frame-switch button[aria-pressed=true]{color:#fff}@media (width<=600px),(pointer:coarse){.free-frame-switch button{min-height:44px;padding:4px 6px;font-size:10px}.free-frame-control .transport-button{min-height:44px}.sphere-frame:has(.free-frame-control) .sphere-touch-toggle{top:58px}.free-frequency input[type=number]{min-height:44px;font-size:16px}}@media (width<=1000px){.app-shell:is(.single-shell,.two-shell) :is(select,input[type=number],input[type=text],input[type=search]){box-sizing:border-box;height:33px;min-height:33px;padding:3px 5px;font-size:12px;line-height:18px}.free-frame-control{gap:4px}.sphere-view-tools{flex:1}.sphere-view-tools .sphere-view-control{flex:1;min-width:0}.measurement-overlay-toggle.two-button{z-index:7;justify-content:center;align-items:center;width:33px;min-height:33px;padding:4px;display:inline-flex;position:absolute;bottom:8px;right:8px}.measurement-overlay-toggle[aria-pressed=true]{color:#d5f8ff;background:linear-gradient(#294b58,#1d343e);border-color:#72a6b5;box-shadow:inset 0 2px 4px #0008}.sphere-frame.has-credit .measurement-overlay-toggle{bottom:34px}.sphere-frame:not(.has-credit):has(.measurement-overlay-toggle) .sphere-hint{text-align:left;left:8px;right:49px}.sphere-frame:has(.measurement-overlay-toggle) .amplitude-explanation{right:49px}.sphere-frame .bloch-probability-key{display:none}.sphere-frame :is(.probability-scale-value,.probability-scale-expectation){border-radius:3px;padding:1px 3px;font-size:10px;line-height:1.15}.free-frame-long-label{display:none}.free-frame-switch{box-sizing:border-box;height:32px}.free-frame-switch button{height:26px;min-height:0;padding:3px 6px;font-size:10px}.free-frame-control .transport-button{box-sizing:border-box;width:32px;height:32px;min-height:32px}.sphere-frame:has(.free-frame-control) .sphere-touch-toggle{top:8px}}:root{--type-panel:16px;--type-section:14px;--type-label:12px;--type-control:12px;--type-body:12px;--type-note:11px;--type-data:12px}.panel .eyebrow{display:none}h2,.complex-amplitudes-panel>summary,.mixed-panel>summary,.two-measurement-panel>summary{font-size:var(--type-panel);font-weight:600}.single-controls h3,.compact-single-workspace .compact-options h3{font-size:var(--type-section);font-weight:600}.two-sphere-panel .panel-heading h3{font-size:var(--type-section);margin:0;font-weight:600}.two-density-grid h3{font-size:var(--type-section)}.visual-panel>.single-details>summary{font-size:var(--type-section);font-weight:600}.single-playback-history>summary,.gate-convention-details>summary{font-size:13px;font-weight:500}.single-details>summary,.task-explanation>summary,.spinor-marker-controls .single-details>summary,.single-history-details>summary,.two-details>summary,.real-geometry-details>summary{font-size:var(--type-body);font-weight:400}.two-torus-view>.real-geometry-details>summary{font-size:var(--type-section);font-weight:500}.single-visual-readout .amplitude-notes>summary,.reduced-source-notes>summary{font-size:var(--type-note);font-weight:400}.two-button,.measure-button,.reset-button,.amplitude-phase-mode button{font-size:var(--type-control)}.two-select-label,.sphere-view-control,.single-check,.single-number-label,.axis-components label,.angle-control>span,.compact-ry-control{font-size:var(--type-label)}.angle-control>span>strong{font-weight:500}.sphere-view-control select,.two-select-label select{font-family:inherit;font-size:var(--type-control)}.single-help,.compact-options .single-help,.two-subtle,.two-caption,.two-details p,.real-geometry-details,.real-geometry-unavailable p{font-size:var(--type-body);line-height:1.6}.single-visual-readout .amplitude-notes,.single-visual-readout .amplitude-notes .single-help,.reduced-source-notes .single-help,.two-wave-explanation,.amplitude-matrix-note,.real-geometry-eligibility{font-size:var(--type-note)}.complex-component-stats,.amplitude-stats,.two-wave-cell .amplitude-stats,.single-metrics,.reduced-stats,.torus-readout,.circle-values{font-size:var(--type-data);font-variant-numeric:tabular-nums}.spinor-disc code{font-size:12px}.spinor-disc>span{font-size:14px}:is(.complex-component svg,.complex-wave-overlay,.two-amplitude-wave,.complex-glyph,.spinor-disc svg,.bloch-circle-drawing) text{font-size:var(--chart-label-size,11px)}@media (width<=1000px){:root{--type-label:14px;--type-control:14px;--type-body:13px;--type-note:12px;--type-data:13px}.two-select-label,.sphere-view-control,.single-check,.single-number-label,.axis-components label,.angle-control>span,.compact-ry-control{font-size:var(--type-label)}.sphere-view-control select,.two-select-label select,.angle-value input,.single-number-label input,.axis-components input{font-size:12px}.single-help,.compact-options .single-help,.two-subtle,.two-caption,.single-details summary{font-size:var(--type-body)}.visual-panel>.single-details>summary{font-size:var(--type-section)}.task-explanation>summary,.spinor-marker-controls .single-details>summary,.single-history-details>summary,.two-details>summary{font-size:var(--type-note)}}.mobile-compact{--type-panel:14px;--type-section:13px}.compact-single-workspace>:is(.compact-options,.mixed-panel,.complex-amplitudes-panel)>summary{font-size:var(--type-panel);font-weight:600}.compact-single-workspace .compact-options h3{font-size:var(--type-section)}.compact-actions>details>summary{font-size:var(--type-section);font-weight:500}.mobile-compact .compact-actions h2{font-size:12px;font-weight:600}.mobile-compact :is(.two-state-panel,.two-amplitude-panel,.two-entanglement-panel) h2{font-size:var(--type-panel);font-weight:600}.mobile-compact .two-sphere-panel .panel-heading h3{font-size:var(--type-section);font-weight:600}.mobile-compact .reduced-stats{font-size:12px}.mobile-compact .amplitude-stats{font-size:var(--type-data)}.mobile-compact .amplitude-cell-title code{font-size:11px}.mobile-compact .compact-sphere .sphere-view-control{font-size:var(--type-label)}.mobile-compact .compact-sphere .sphere-view-control select{font-size:12px}.mobile-compact .two-circuit-panel .two-select-label{font-size:var(--type-label)}.mobile-compact .two-circuit-panel .two-select-label select,.mobile-compact .circuit-rotation-controls select{font-size:12px}.mobile-compact .compact-ry-control{font-size:var(--type-label)}.mobile-compact .amplitude-phase-mode button{font-size:13px}.mobile-compact .compact-options .task-explanation>summary{font-size:var(--type-note);font-weight:400}.compact-sphere .circle-values{font-size:12px}.tutorial-entry{justify-content:center;align-items:center;gap:6px;min-height:40px;display:inline-flex}.tutorial-mode{max-width:1800px;margin:auto;padding:16px}.tutorial-header,.tutorial-header-actions,.tutorial-brand{align-items:center;gap:10px;display:flex}.tutorial-header{flex-wrap:wrap;justify-content:space-between;margin-bottom:16px}.tutorial-exit{justify-content:center;align-items:center;gap:6px;display:inline-flex}.tutorial-brand{font-size:16px;font-weight:600}.tutorial-layout{display:block}.tutorial-index,.tutorial-instructions{padding:16px}:is(.tutorial-index,.tutorial-instructions,.tutorial-reading) h2{margin:0 0 12px;font-size:16px}.tutorial-reading h1{font-size:23px}:is(.tutorial-index,.tutorial-instructions,.tutorial-reading) p{font-size:13px;line-height:1.6}:is(.tutorial-header-actions,.tutorial-index,.tutorial-instructions,.tutorial-reading) button{min-height:40px}.tutorial-mode button:focus-visible,.tutorial-mode [tabindex="-1"]:focus-visible{outline-offset:3px;outline:2px solid #80b5e9}.tutorial-mode .tutorial-note{color:#b2b3b8;font-size:11px}.tutorial-index{display:none}.tutorial-index.is-open{display:block}.tutorial-index-heading{justify-content:space-between;align-items:center;gap:8px;display:flex}.tutorial-index-heading h2{margin-bottom:0}.tutorial-index .tutorial-index-collapse{border:1px solid #7778;flex:0 0 32px;justify-content:center;align-items:center;width:32px;min-height:32px;padding:0;display:inline-flex}.tutorial-index :is(ol,ul){padding-left:20px}.tutorial-index ul{list-style-type:disc}.tutorial-index li{margin:6px 0}.tutorial-index button{text-align:left;font:inherit;color:inherit;background:0 0;border:0;border-radius:5px;width:100%;padding:6px;font-size:12px}.tutorial-index button[aria-current]{color:#a9cbf6;background:#7da9e91c;box-shadow:inset 3px 0 #83aadd}.tutorial-lesson-link{font-weight:600!important}.tutorial-step-heading{color:#b2b3b8;justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px;font-size:12px;display:flex}.tutorial-action{border-left:3px solid #d7b46c;padding-left:10px}.tutorial-navigation{justify-content:space-between;gap:12px;margin-top:16px;display:flex}.tutorial-navigation button{justify-content:center;align-items:center;gap:4px;display:inline-flex}.tutorial-navigation .tutorial-index-chevron{width:16px;height:16px}.tutorial-instructions p+p{margin-top:8px}.tutorial-index-toggle,.tutorial-card-toggle{display:inline-flex}.tutorial-index-toggle{align-items:center;gap:0}.tutorial-card-toggle{align-items:center;gap:4px}.tutorial-card-toggle .tutorial-index-chevron{width:16px;height:16px}.tutorial-index-chevron{flex:none;display:block}.tutorial-index-toggle .tutorial-index-chevron{width:16px;height:16px}.tutorial-reading{max-width:var(--app-content-width);min-width:0;margin:auto;padding:24px}.tutorial-reading section{max-width:70ch;margin-top:28px}.tutorial-practice{min-width:0}.tutorial-practice[hidden]{display:none}.tutorial-desktop{max-width:none;padding:0}.tutorial-desktop:not(.tutorial-is-reading)>.tutorial-header{display:none}.tutorial-desktop.tutorial-is-reading>.tutorial-header{max-width:1276px;margin-inline:auto;padding:20px 34px 0}.tutorial-desktop .tutorial-index{top:90px;left:max(16px, calc((100vw - var(--app-content-width)) / 2));z-index:30;width:240px;max-height:calc(100svh - 110px);position:fixed;overflow-y:auto;box-shadow:0 12px 40px #0008}.tutorial-index-docked{--tutorial-sidebar-width:clamp(180px, calc(100vw - 1280px), 240px)}.tutorial-index-docked .tutorial-layout{grid-template-columns:var(--tutorial-sidebar-width) minmax(0, 1fr);max-width:calc(var(--app-content-width) + var(--tutorial-sidebar-width) + 36px);align-items:start;gap:12px;margin-inline:auto;padding-inline:12px;display:grid}.tutorial-index-docked .tutorial-index{grid-area:1/1;width:auto;max-height:calc(100svh - 56px);margin-top:28px;position:sticky;top:28px;left:auto;box-shadow:0 8px 24px #0004}.tutorial-index-docked :is(.tutorial-practice,.tutorial-reading){grid-area:1/2}.tutorial-index-docked .tutorial-practice .app-shell{padding-inline:0}.tutorial-index-docked .tutorial-reading{width:100%}.tutorial-index-docked.tutorial-is-reading>.tutorial-header{max-width:calc(var(--app-content-width) + var(--tutorial-sidebar-width) + 36px);padding-inline:calc(var(--tutorial-sidebar-width) + 24px) 12px}.tutorial-desktop [data-tutorial-muted]{opacity:.25;filter:grayscale()}.tutorial-desktop [data-tutorial-muted] [data-tutorial-muted]{opacity:1;filter:none}.tutorial-desktop [data-tutorial-focus],.tutorial-desktop[data-focus=probabilities] .single-state-summary,.tutorial-desktop[data-focus=sphere-explore] .single-state-summary{outline-offset:4px;border-radius:6px;outline:2px solid #d7b46c}.tutorial-mode[data-lesson-step=first-qubit\/read-state] :is(.single-state-representations>.equation,.compact-state>.single-state-column),.tutorial-mode[data-focus=pair-state] .two-state-panel{outline-offset:3px;border-radius:6px;outline:2px solid #d7b46c}.tutorial-desktop .single-gate-anchor{position:relative}.tutorial-desktop .single-guide-overlay{top:var(--guide-card-top,calc(100% + 190px));z-index:10;position:absolute;left:0;right:0}.tutorial-desktop .single-visual-guide-anchor{flex:none;height:0;min-height:0;position:relative}.tutorial-desktop .single-visual-guide-overlay{z-index:10;width:min(420px,100%);position:absolute;top:12px;right:0}.tutorial-desktop:is([data-focus=rotations],[data-focus=measurement],[data-focus=amplitudes],[data-focus=mixtures],[data-focus=representations],[data-focus=spinors],[data-focus=pair-reduced]) .single-visual-guide-overlay,.tutorial-desktop .tutorial-pair-guide{top:var(--visual-guide-top,53vh);left:var(--visual-guide-left,24px);width:var(--visual-guide-width,360px);z-index:50;position:fixed;right:auto}.tutorial-desktop:is([data-focus=rotations],[data-focus=measurement],[data-focus=amplitudes],[data-focus=mixtures],[data-focus=representations],[data-focus=spinors],[data-focus=pair-reduced]) .single-visual-guide-overlay .tutorial-instructions,.tutorial-desktop .tutorial-pair-guide .tutorial-instructions{max-height:var(--visual-guide-height,min(440px, 40svh))}.tutorial-desktop .tutorial-instructions{background:#343539;border-color:#9b8d70;flex-direction:column;max-height:min(440px,52svh);display:flex;box-shadow:0 10px 32px #0008}.tutorial-desktop .tutorial-instructions h2{flex-shrink:0}.tutorial-desktop #tutorial-step-body{scrollbar-width:thin;min-height:0;padding:2px 4px 2px 0;overflow-y:auto}.tutorial-desktop .tutorial-step-heading,.tutorial-desktop .tutorial-navigation{flex-shrink:0}.tutorial-desktop .tutorial-instructions .tutorial-note{margin-top:8px}.tutorial-desktop .tutorial-instructions{padding-bottom:24px}.tutorial-card-tools{align-items:center;gap:4px;display:flex}.tutorial-desktop .tutorial-instructions .tutorial-card-drag{min-width:0;color:inherit;font:inherit;text-align:left;cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none;background:0 0;border:0;flex:1;align-items:center;gap:5px;padding:0;display:flex}.tutorial-card-drag:active{cursor:grabbing}.tutorial-desktop .tutorial-instructions .tutorial-card-resize{color:#c9bd9f;cursor:nwse-resize;touch-action:none;background:0 0;border:0;justify-content:center;align-items:center;width:18px;height:18px;min-height:18px;padding:0;display:inline-flex;position:absolute;bottom:3px;right:3px}.tutorial-desktop .tutorial-floating-host{z-index:50}.tutorial-practice.mobile-compact .app-shell{background:0 0;min-height:0;padding:0}.tutorial-practice.mobile-compact .topbar{display:none}.tutorial-practice.mobile-compact .compact-single-workspace{grid-template-columns:minmax(0,1fr);grid-template-areas:"sphere""state""actions""playback";gap:10px}.tutorial-practice.mobile-compact .compact-single-workspace>:is(.complex-amplitudes-panel,.compact-rotations,.compact-measurement,.mixed-panel,.compact-display-options),.tutorial-practice.mobile-compact .compact-actions>details,.tutorial-practice.mobile-compact .sphere-view-control,.tutorial-practice.mobile-compact .mobile-credit{display:none}.tutorial-mode:is([data-focus=angles],[data-focus=sphere-explore]) .tutorial-practice.mobile-compact .compact-angle-options{outline-offset:2px;border-radius:6px;outline:2px solid #d7b46c;grid-column:1/-1;display:block}.tutorial-mode[data-focus=rotations] .tutorial-practice.mobile-compact .compact-single-workspace{grid-template-areas:"sphere""state""actions""playback""rotations"}.tutorial-mode[data-focus=measurement] .tutorial-practice.mobile-compact .compact-single-workspace{grid-template-areas:"sphere""state""actions""playback""measurement"}.tutorial-mode[data-focus=amplitudes] .tutorial-practice.mobile-compact .compact-single-workspace{grid-template-areas:"sphere""state""actions""playback""complex"}.tutorial-mode[data-focus=mixtures] .tutorial-practice.mobile-compact .compact-single-workspace{grid-template-areas:"sphere""state""actions""playback""complex""mixed"}.tutorial-mode[data-focus=measurement] .tutorial-practice.mobile-compact .compact-measurement,.tutorial-mode[data-focus=rotations] .tutorial-practice.mobile-compact .compact-rotations,.tutorial-mode:is([data-focus=amplitudes],[data-focus=mixtures]) .tutorial-practice.mobile-compact .complex-amplitudes-panel,.tutorial-mode[data-focus=mixtures] .tutorial-practice.mobile-compact .mixed-panel{display:block}.tutorial-mode[data-focus=measurement] .tutorial-practice.mobile-compact .compact-measurement,.tutorial-mode[data-focus=rotations] .tutorial-practice.mobile-compact .compact-rotations,.tutorial-mode[data-focus=mixtures] .tutorial-practice.mobile-compact .mixed-panel,.tutorial-mode[data-focus=amplitudes] .tutorial-practice.mobile-compact .complex-amplitudes-panel{outline-offset:2px;outline:2px solid #d7b46c}.tutorial-mode:is([data-focus=representations],[data-focus=spinors]) .tutorial-practice.mobile-compact .compact-single-workspace{grid-template-areas:"sphere""state""actions""playback""complex""rotations"}.tutorial-mode:is([data-focus=representations],[data-focus=spinors]) .tutorial-practice.mobile-compact :is(.sphere-view-control,.compact-rotations,.complex-amplitudes-panel),.tutorial-mode[data-focus=spinors] .tutorial-practice.mobile-compact .compact-actions>.compact-gate-options,.tutorial-mode[data-focus=pair-reduced] .tutorial-practice.mobile-compact .mixed-panel{display:block}.tutorial-mode[data-focus=pair-reduced] .tutorial-practice.mobile-compact .compact-single-workspace{grid-template-areas:"sphere""state""actions""playback""mixed"}.tutorial-practice.mobile-compact .two-measurement-panel{display:none}.tutorial-mode[data-focus=pair-measurement] .tutorial-practice.mobile-compact .two-measurement-panel{display:block}.tutorial-practice.mobile-compact .compact-actions{grid-template-columns:1fr 1fr;gap:12px;display:grid}.tutorial-practice.mobile-compact .compact-actions .button-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.tutorial-mode[data-focus=presets] .compact-actions>div:first-child,.tutorial-mode[data-focus=gates] .compact-actions>div:nth-child(2),.tutorial-mode:is([data-focus=gate-explore],[data-focus=history]) .compact-actions>div:nth-child(2),.tutorial-mode[data-focus=probabilities] .compact-state,.tutorial-mode[data-focus=sphere-explore] .compact-state{outline-offset:3px;border-radius:6px;outline:2px solid #d7b46c}.tutorial-mode:not([data-focus=overview]) .compact-playback,.tutorial-mode[data-focus=presets] .compact-actions>div:nth-child(2),.tutorial-mode[data-focus=gates] .compact-actions>div:first-child{opacity:.65}.tutorial-mode :is(.compact-playback,.compact-actions>div):focus-within,.tutorial-mode :is(.compact-playback,.compact-actions>div):hover,.tutorial-mode:is([data-focus=gate-explore],[data-focus=rotations],[data-focus=history],[data-focus=amplitudes],[data-focus=mixtures]) .compact-playback{opacity:1}[data-theme=light] .tutorial-mode .tutorial-note,[data-theme=light] .tutorial-step-heading{color:#596575}[data-theme=light] .tutorial-index button[aria-current]{color:#274b7a}[data-theme=light] .tutorial-desktop .tutorial-instructions{background:#fff}@media (width<=1000px){.header-controls .tutorial-entry{flex-shrink:0;padding:6px}.header-controls .tutorial-entry span{display:none}.tutorial-mode{padding:max(8px, env(safe-area-inset-top)) 8px max(12px, env(safe-area-inset-bottom))}.tutorial-header{gap:8px;margin-bottom:10px}.tutorial-header-actions{flex-wrap:wrap;gap:6px}.tutorial-header-actions button{min-height:44px;font-size:12px}.tutorial-mobile-title{min-width:0}.tutorial-mobile-title>span{font-size:11px}.tutorial-mobile-title h2{color:#ece8df;margin:3px 0 0;font-size:13px;line-height:1.4}[data-theme=light] .tutorial-mobile-title h2{color:#344253}.tutorial-instructions .tutorial-card-toggle{min-height:44px;font-size:12px}.tutorial-instructions .tutorial-navigation{margin-top:10px}.tutorial-layout{flex-direction:column;gap:10px;display:flex}.tutorial-layout>*{box-sizing:border-box;width:100%}.tutorial-instructions{padding:12px}.tutorial-reading{padding:16px}.tutorial-mode .tutorial-note{font-size:12px}.tutorial-index button{font-size:13px}.tutorial-index .tutorial-lesson-link{justify-content:space-between;align-items:center;gap:8px;display:flex}.tutorial-lesson-link .tutorial-index-chevron{width:16px;height:16px}.tutorial-practice.mobile-compact .sphere-frame{height:clamp(220px,32svh,320px);min-height:220px}}
