.factor-grid{grid-template-columns:1fr 1fr;align-items:start;gap:8px 16px;display:grid}@media (width<=560px){.factor-grid{grid-template-columns:1fr}}.factor-chips{grid-template-columns:repeat(6,1fr);gap:6px;margin:12px 0 4px;display:grid}@media (width<=560px){.factor-chips{grid-template-columns:repeat(3,1fr)}}.factor-chip{border:1.5px dashed var(--line);min-height:44px;color:var(--muted);cursor:pointer;font:inherit;background:0 0;border-radius:10px;justify-items:center;padding:6px 2px;display:grid}.factor-chip b{font-size:.9rem;line-height:1.2}.factor-chip small{font-variant-numeric:tabular-nums;font-size:.75rem}.factor-chip.first{border:2px solid var(--accent);color:var(--ink);background:color-mix(in srgb, var(--accent) 14%, transparent)}.factor-chip.second{border:2px solid var(--blue);color:var(--ink);background:color-mix(in srgb, var(--blue) 14%, transparent)}.factor-node{fill:var(--surface);stroke:var(--ink);stroke-width:1.5px}.factor-box{fill:var(--surface);stroke:var(--muted);stroke-width:1.5px;cursor:pointer}.factor-box.first{stroke:var(--accent);stroke-width:3px}.factor-box.second{stroke:var(--blue);stroke-width:3px}.panel svg text.factor-name{fill:var(--ink);pointer-events:none;font-weight:600}.panel svg text.factor-flabel{fill:var(--ink);font:italic 700 15px var(--serif)}.panel svg text.factor-num{font-variant-numeric:tabular-nums;font-size:11px}.factor-path{stroke:var(--green);fill:none;stroke-linecap:round;opacity:.5;transition:opacity .15s}.factor-head{fill:var(--green);opacity:.5}.factor-path.zero{stroke-dasharray:3 4}.factor-path.first,.factor-head.first{stroke:var(--accent);fill:var(--accent);opacity:1}.factor-path.second,.factor-head.second{stroke:var(--blue);fill:var(--blue);opacity:1}.factor-path.first,.factor-path.second,.factor-path.phi{fill:none}.factor-path.phi{stroke:var(--gold);opacity:.6}.factor-path.phi.on{opacity:1}.factor-path.hl{filter:drop-shadow(0 0 3px);stroke-dasharray:none}.panel svg text.t-first{fill:var(--accent);font-weight:700}.panel svg text.t-second{fill:var(--blue);font-weight:700}.panel svg text.t-phi{fill:var(--gold);font-weight:700}.factor-common{fill:var(--green);transition:opacity .15s}.factor-unique{fill:var(--muted);opacity:.3;transition:opacity .15s}.factor-common.hl{stroke:var(--ink);stroke-width:1.5px}.factor-unique.hl{opacity:.75;stroke:var(--ink);stroke-width:1.5px}.factor-cell{stroke:var(--surface);stroke-width:2px;cursor:pointer}.factor-cell.pos{fill:var(--green)}.factor-cell.neg{fill:var(--blue)}.factor-cell.samp.pos{fill:var(--accent)}.factor-cell.diag{fill:var(--line);cursor:default}.factor-cellsel{fill:none;stroke:var(--ink);stroke-width:2.5px;pointer-events:none}.panel svg text.factor-val{fill:var(--ink);font-variant-numeric:tabular-nums;pointer-events:none;font-size:11px}.legend i.factor-k-green{background:var(--green);opacity:.7;border:0;border-radius:2px}.legend i.factor-k-acc{background:var(--accent);opacity:.7;border:0;border-radius:2px}.legend i.factor-k-uniq{background:var(--muted);opacity:.3;border:0;border-radius:2px}.t-first{color:var(--accent)}.t-second{color:var(--blue)}.t-phi{color:var(--gold)}.equation .term-first{color:var(--accent)}.equation .term-second{color:var(--blue)}.equation .term-phi{color:var(--gold)}.equation .term-common{color:var(--green)}.equation .term-unique{color:var(--muted)}.equation[data-hl=first] .term-first,.equation[data-hl=second] .term-second,.equation[data-hl=phi] .term-phi,.equation[data-hl=common] .term-common,.equation[data-hl=unique] .term-unique{background:color-mix(in srgb, currentColor 22%, transparent)}.factor-split{border:1px solid var(--line);border-radius:10px;height:40px;margin:12px 0 4px;display:flex;overflow:hidden}.factor-split>div{font:600 .8rem var(--sans);white-space:nowrap;min-width:0;color:var(--ink);place-items:center;transition:flex-grow .3s,box-shadow .15s;display:grid;overflow:hidden}.factor-split .c{background:color-mix(in srgb, var(--green) 40%, transparent)}.factor-split .u{background:color-mix(in srgb, var(--muted) 22%, transparent)}.factor-split .hl{box-shadow:inset 0 0 0 3px var(--ink)}.factor-dot{fill:var(--green);opacity:.45}@container panel (width<=400px){.panel svg text.factor-flabel{font-size:17px}}.factor-pick{color:var(--muted);margin:12px 0 6px;font-size:.92rem}#factor-sim{font-weight:600}.factor-one{max-width:320px;margin:8px auto 4px}.factor-one figcaption{text-align:center;color:var(--muted);font-size:.9rem}.factor-more{margin-top:12px}.factor-more>summary{cursor:pointer;min-height:44px;color:var(--green);align-items:center;font-weight:600;list-style:none;display:flex}.factor-more>summary::-webkit-details-marker{display:none}.factor-more>summary:before{content:"▸";margin-right:8px}.factor-more[open]>summary:before{content:"▾"}.factor-more[open]>summary{margin-bottom:8px}@media (width<=560px){.factor-seg{grid-auto-columns:1fr;grid-auto-flow:column;width:100%;display:grid}.factor-seg button{padding:6px 8px;line-height:1.2}}
