/* Original SVG workspace; all rules are scoped to the algebra owner. */
.algebra-studio{--asu-ink:#15233e;--asu-blue:#345bff;--asu-coral:#fa745b;--asu-line:#dce3f1;box-sizing:border-box;min-width:0;margin:0!important;padding:0!important;background:#fff;color:var(--asu-ink);border-radius:0;font-family:Inter,"Segoe UI",Arial,sans-serif}
.algebra-studio *{box-sizing:border-box}
.algebra-studio .asu-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:7px 16px;background:#fff}
.algebra-studio .asu-tool-intro{max-width:520px;min-width:0}
.algebra-studio .asu-eyebrow{display:block;font-size:10px!important;font-weight:800;letter-spacing:.15em;color:#557095;margin:0 0 4px}
.algebra-studio .asu-hint{margin:0;font-size:14px!important;font-weight:600;line-height:1.3;letter-spacing:-.02em;color:var(--asu-ink)}
.algebra-studio .asu-palette{display:flex;align-items:center;gap:7px;flex:none;flex-wrap:wrap}
.algebra-studio .asu-palette button{appearance:none;display:flex;align-items:center;flex-direction:column;justify-content:center;gap:3px;min-width:52px;height:48px;padding:5px 9px;border:1px solid #dce3f1!important;border-radius:14px;background:#fff!important;box-shadow:0 2px 2px #15233e04;color:var(--asu-ink)!important;touch-action:none;cursor:grab;font-family:inherit;transition:box-shadow .15s,border-color .15s,background .15s}
.algebra-studio .asu-palette button:hover{box-shadow:0 5px 12px #253c6b12;border-color:#99abfc!important}
.algebra-studio .asu-palette button[aria-pressed=true]{background:#edf1ff!important;border-color:var(--asu-blue)!important;outline:2px solid #345bff33;outline-offset:2px}
.algebra-studio .asu-palette-icon{display:flex;align-items:center;justify-content:center;height:21px;min-width:27px;font-size:17px!important;font-style:normal;font-weight:750;color:var(--asu-ink)}
.algebra-studio .asu-palette-icon i{display:flex;align-items:center;gap:2px;padding:4px;border:1px solid #f4ba7c;border-radius:5px;background:#fff0d9;height:21px}
.algebra-studio .asu-palette-icon b{display:block;width:7px;height:11px;background:#eeaa48;border-radius:2px}
.algebra-studio .asu-palette-icon.x{min-width:46px;background:#dfe6ff;border:1px solid #8d9ef3;border-radius:5px;color:#3455cf}
.algebra-studio .asu-palette-icon.value{font-size:13px!important;white-space:nowrap;color:#256ba4}
.algebra-studio .asu-palette-caption{font-size:9px!important;line-height:1;color:#637390;font-weight:650}
.algebra-studio .asu-inventory-note{font-size:12px!important;color:#637390;max-width:200px;line-height:1.4}
.algebra-studio .asu-workspace{position:relative;background:#f6f8fc;border:1px solid var(--asu-line);border-radius:20px;overflow:hidden;margin:0 12px}
.algebra-studio .asu-live-strip{display:flex;gap:12px;align-items:center;min-height:38px;padding:6px 16px;border-bottom:1px solid var(--asu-line);background:#fff;position:relative;z-index:1}
.algebra-studio .asu-live-strip>span:first-child{flex:none;font-size:11px!important;font-weight:750;text-transform:uppercase;letter-spacing:.08em;color:#6d7d98}
.algebra-studio .asu-formula{font-size:16px!important;font-weight:750;letter-spacing:-.02em;line-height:1.4;margin:0;color:var(--asu-ink);font-variant-numeric:tabular-nums}
.algebra-studio .asu-object-count{font-size:11px!important;color:#71809b;white-space:nowrap;margin-left:auto}
.algebra-studio .asu-viewport{width:100%;min-width:0;max-height:650px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#9aaacb transparent;background:#f6f8fc}
.algebra-studio svg.asu-canvas{display:block;max-width:none!important;flex:none;touch-action:pan-x pan-y;font-family:Inter,"Segoe UI",Arial,sans-serif}
.algebra-studio .asu-paper{pointer-events:none;opacity:.7}
.algebra-studio .asu-zone{fill:#ffffffdb;stroke:#ced7e9;stroke-width:1.3}
.algebra-studio .asu-zone-group{cursor:crosshair;outline:none}
.algebra-studio .asu-zone-group:focus-visible .asu-zone{stroke:#345bff;stroke-width:2.5}
.algebra-studio .asu-zone-group.is-drop-target .asu-zone{fill:#eff3ff;stroke:#5877ff;stroke-width:2;stroke-dasharray:5 4}
.algebra-studio .asu-zone-label{font-size:13px;font-weight:650;fill:#5a6d8d;pointer-events:none}
.algebra-studio .asu-empty-label{font-size:11px;fill:#a0acc0;pointer-events:none}
.algebra-studio .asu-ref-zone .asu-zone{fill:#eaf4fc;stroke:#b7d9f2}
.algebra-studio .asu-ref-value{font-size:16px;font-weight:750;fill:#256ba4;pointer-events:none}
.algebra-studio .asu-out-zone .asu-zone{fill:#fff3ef;stroke:#f1c2b6;stroke-dasharray:5 4}
.algebra-studio .asu-out-zone .asu-zone-label{fill:#b5614e}
.algebra-studio .asu-piece{cursor:grab;touch-action:none;outline:none}
.algebra-studio .asu-piece:active{cursor:grabbing}
.algebra-studio .asu-tile{fill:#ffe9c6;stroke:#e5b46c;stroke-width:1.5;filter:drop-shadow(0 3px 1px #8b651d13)}
.algebra-studio .asu-variable .asu-tile{fill:#dfe6ff;stroke:#8599f1;stroke-width:1.5;filter:drop-shadow(0 3px 1px #345bff13)}
.algebra-studio .asu-reference .asu-tile{fill:#cde8fc;stroke:#78b4df}
.algebra-studio .asu-piece.is-selected .asu-tile,.algebra-studio .asu-piece:focus-visible .asu-tile{stroke:#345bff;stroke-width:3;filter:drop-shadow(0 0 4px #345bff33)}
.algebra-studio .asu-hit{fill:transparent;stroke:none;pointer-events:all}
.algebra-studio .asu-unit-cells rect{fill:#d88d2f;stroke:#fff6e8;stroke-width:.5;pointer-events:none}
.algebra-studio .asu-variable .asu-unit-cells rect{fill:#5875d9;stroke:#eef1ff}
.algebra-studio .asu-reference .asu-unit-cells rect{fill:#4c9dd7;stroke:#e8f5ff}
.algebra-studio .asu-letter{font-size:20px;font-weight:750;fill:#3455cf;pointer-events:none}
.algebra-studio .asu-package-fold{fill:none;stroke:#aebbf4;stroke-width:1;pointer-events:none}
.algebra-studio .asu-select-dot{fill:#345bff;stroke:#fff;stroke-width:2;pointer-events:none}
.algebra-studio .asu-side-value{font-size:22px;font-weight:750;letter-spacing:-.04em;fill:#23395f;pointer-events:none}
.algebra-studio .asu-relation-badge circle{fill:#fff;stroke:#dce3f1;stroke-width:1}
.algebra-studio .asu-relation-badge text{font-size:22px;font-weight:650;fill:#345bff}
.algebra-studio .asu-balance-rig{pointer-events:none}
.algebra-studio .asu-balance-base{fill:#d9e0ee;stroke:none}
.algebra-studio .asu-beam{fill:#5877ff;stroke:none}
.algebra-studio .asu-arm{fill:none;stroke:#5272ff;stroke-width:6;stroke-linecap:round}
.algebra-studio .asu-pan-wire{fill:none;stroke:#b4c1da;stroke-width:2}
.algebra-studio .asu-pan-foot{fill:none;stroke:#b0bed8;stroke-width:3;stroke-linecap:round}
.algebra-studio .asu-beam g{transition:transform 280ms ease}
.algebra-studio .asu-grid-cell{fill:#fff9;stroke:#d5deed;stroke-width:1;cursor:crosshair;pointer-events:all}
.algebra-studio .asu-grid-cell:focus-visible{stroke:#345bff;stroke-width:3;outline:none}
.algebra-studio .asu-area-seam{stroke:#a9b9f5;stroke-width:1;pointer-events:none}
.algebra-studio .asu-area-letter{font-size:19px;font-weight:700;fill:#3253c4;pointer-events:none}
.algebra-studio .asu-unit .asu-area-letter{fill:#ae6b18}
.algebra-studio .asu-cut-line{stroke:#fa745b;stroke-width:2.5;stroke-dasharray:5 4;pointer-events:none}
.algebra-studio .asu-measure{fill:none;stroke:#879ab9;stroke-width:1.5;pointer-events:none}
.algebra-studio .asu-dimension{font-size:14px;font-weight:650;fill:#627596;pointer-events:none}
.algebra-studio [data-asu-resize]{cursor:ew-resize;touch-action:none;outline:none}
.algebra-studio [data-asu-resize] rect{fill:#345bff;stroke:#fff;stroke-width:2;filter:drop-shadow(0 3px 3px #345bff28)}
.algebra-studio [data-asu-resize] text{font-size:13px;font-weight:750;fill:#fff;pointer-events:none}
.algebra-studio [data-asu-resize]:focus-visible rect{stroke:#162b75;stroke-width:4}
.algebra-studio .asu-canvas-note{font-size:12px;font-weight:650;fill:#6d7f9d;pointer-events:none}
.algebra-studio .asu-area-linked{pointer-events:none}
.algebra-studio .asu-area-linked text{font-size:20px;font-weight:750;fill:#283d64}
.algebra-studio .asu-area-linked .asu-canvas-note{font-size:11px;font-weight:650;fill:#71829e}
.algebra-studio .asu-linked-variable{fill:#dfe6ff;stroke:#bcc9fa}
.algebra-studio .asu-linked-unit{fill:#ffecd1;stroke:#efd0a5}
.algebra-studio .asu-drop-preview{pointer-events:none}
.algebra-studio .asu-drop-preview rect{fill:#345bff24;stroke:#345bff;stroke-width:2;stroke-dasharray:5 3}
.algebra-studio .asu-drop-preview text{fill:#345bff;font-size:15px;font-weight:750}
.algebra-studio .asu-drop-preview.is-invalid rect{fill:#fa745b22;stroke:#de624c}
.algebra-studio .asu-drop-preview.is-invalid text{fill:#bd4a36}
.algebra-studio .asu-drag-readout{pointer-events:none;position:absolute;bottom:67px;left:50%;transform:translateX(-50%);margin:0;padding:8px 13px;border:1px solid #dce3f1;border-radius:30px;background:#fffef5;box-shadow:0 3px 18px #253c6b16;color:#3455cf;font-size:12px!important;font-weight:650;white-space:nowrap;z-index:3}
.algebra-studio .asu-context{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-height:52px;padding:5px 12px;border-top:1px solid var(--asu-line);background:#fff;position:relative;z-index:2}
.algebra-studio .asu-context button,.algebra-studio .asu-history button{appearance:none;min-height:42px;padding:9px 13px;border:1px solid #d4ddec!important;border-radius:11px;background:#fff!important;color:#344967!important;font-size:12px!important;font-family:inherit;font-weight:650;cursor:pointer}
.algebra-studio .asu-context button:hover,.algebra-studio .asu-history button:hover{border-color:#99abfc!important;background:#f5f7ff!important}
.algebra-studio .asu-context button[data-studio-action=check]{margin-left:auto;background:#345bff!important;border-color:#345bff!important;color:#fff!important;box-shadow:0 3px 8px #345bff21}
.algebra-studio .asu-context button[data-studio-action=lock],.algebra-studio .asu-context button[data-studio-action=partition]{background:#edf1ff!important;border-color:#bbc8ff!important;color:#3455cf!important}
.algebra-studio .asu-context button[data-studio-action=deselect]{min-width:34px;padding:4px 8px;font-size:22px!important;color:#7b8ba4!important;border-color:transparent!important}
.algebra-studio .asu-selection-count{font-size:12px!important;color:#345bff;font-weight:700;padding:0 3px}
.algebra-studio .asu-context [data-asu-proof-chip]{background:#dfe6ff!important;color:#3455cf!important;font-size:18px!important;cursor:grab;touch-action:none}
.algebra-studio .asu-context [data-asu-proof-target]{border-style:dashed!important;background:#f6f8ff!important}
.algebra-studio .asu-status{font-size:13px!important;line-height:1.55;min-height:20px;margin:13px 18px 6px;color:#667995}
.algebra-studio .asu-help{border:0;border-top:1px solid #e7ecf5;border-radius:0;padding:0;margin:12px 18px}
.algebra-studio .asu-help summary{min-height:42px;padding:12px 0;cursor:pointer;font-size:12px!important;color:#647897;font-weight:600}
.algebra-studio .asu-help p,.algebra-studio .asu-help li{font-size:13px!important;line-height:1.55;color:#627492}
.algebra-studio .asu-history{display:flex;gap:7px;margin:10px 18px}
.algebra-studio .asu-history button:disabled{opacity:.38;cursor:default}
.mis-studio .algebra-studio .asu-help:not([open]){display:none}
.mis-studio .algebra-studio .asu-history{margin:0;gap:0;min-height:0}
@media(max-width:620px){
 .algebra-studio .asu-toolbar{align-items:flex-start;flex-direction:column;gap:12px;padding:14px 12px}
 .algebra-studio .asu-hint{font-size:14px!important;line-height:1.4}
 .algebra-studio .asu-palette{gap:6px;flex-wrap:nowrap}
 .algebra-studio .asu-palette button{min-width:54px;height:59px;padding:5px 9px;gap:4px;border-radius:12px}
 .algebra-studio .asu-workspace{margin:0 4px;border-radius:16px}
 .algebra-studio .asu-live-strip{gap:9px;padding:11px 12px;flex-wrap:wrap;min-height:54px}
 .algebra-studio .asu-live-strip>span:first-child{font-size:9px!important}
 .algebra-studio .asu-formula{font-size:15px!important}
 .algebra-studio .asu-object-count{font-size:10px!important}
 .algebra-studio .asu-context{gap:6px;padding:8px;min-height:62px}
 .algebra-studio .asu-context button{min-height:44px;font-size:11px!important;padding:9px 10px}
 .algebra-studio .asu-context button[data-studio-action=check]{margin-left:0}
 .algebra-studio .asu-status{font-size:12px!important;margin:11px 12px}
 .algebra-studio .asu-viewport{max-height:570px}
 .algebra-studio[data-asu-mode=area] .asu-viewport{scrollbar-width:auto;scrollbar-color:#879bc8 #e5ebf7}
 .algebra-studio .asu-inventory-note{max-width:none;font-size:11px!important}
}
@media(prefers-reduced-motion:reduce){.algebra-studio .asu-beam g,.algebra-studio .asu-palette button{transition:none}}
