body.bmc-math{--surface:#ffffff;--surface-muted:#f8fafc;--border:#e2e8f0;--text-main:#0f172a;--text-muted:#64748b;--primary:#6366f1;--primary-dark:#4f46e5;--accent:#818cf8;--shadow-soft:0 4px 24px rgba(15,23,42,0.06);--shadow-card:0 2px 12px rgba(15,23,42,0.04);color:var(--text-main);}
.vc-lab{display:flex;flex-direction:column;gap:1.25rem;margin-bottom:2.5rem;}
.vc-op-rail{display:flex;gap:0.5rem;overflow-x:auto;padding-bottom:0.35rem;margin:0 -0.25rem;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:thin;}
.vc-op-rail::-webkit-scrollbar{height:4px;}
.vc-op-rail::-webkit-scrollbar-thumb{background:var(--border);border-radius:4px;}
.vc-op-chip{flex:0 0 auto;scroll-snap-align:start;border:1px solid var(--border);background:var(--surface);color:var(--text-main);font-size:0.8125rem;font-weight:600;letter-spacing:0.02em;padding:0.65rem 1rem;border-radius:999px;cursor:pointer;transition:background 0.15s ease,border-color 0.15s ease,box-shadow 0.15s ease;}
.vc-op-chip:hover{border-color:var(--primary);color:var(--primary);}
.vc-op-chip[aria-pressed="true"]{background:linear-gradient(135deg,var(--primary),var(--primary-dark));border-color:transparent;color:#fff;box-shadow:var(--shadow-soft);}
.vc-grid{display:grid;grid-template-columns:1fr;gap:1rem;}
@media (min-width:768px){.vc-grid{grid-template-columns:1fr 1fr;gap:1.25rem;}}
.vc-vector-slab{border:1px solid var(--border);border-radius:16px;background:var(--surface);padding:1rem 1.1rem;box-shadow:var(--shadow-soft);}
.vc-vector-slab header{display:flex;align-items:center;justify-content:space-between;margin-bottom:0.85rem;}
.vc-vector-slab h2{margin:0;font-size:0.75rem;font-weight:700;text-transform:uppercase;letter-spacing:0.12em;color:var(--text-muted);}
.vc-tag{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:1rem;font-weight:700;padding:0.2rem 0.55rem;border-radius:8px;background:var(--surface-muted);}
.vc-tag-a{color:#c41e3a;}
.vc-tag-b{color:#1565c0;}
.vc-comp-row{display:grid;grid-template-columns:auto 1fr;gap:0.65rem;align-items:center;margin-bottom:0.5rem;}
.vc-comp-row:last-child{margin-bottom:0;}
.vc-comp-row span{font-size:0.7rem;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:0.08em;min-width:1.25rem;}
.vc-comp-row input{width:100%;box-sizing:border-box;padding:0.65rem 0.5rem;border:1px solid var(--border);border-radius:10px;background:var(--surface-muted);color:var(--text-main);font-size:1rem;font-variant-numeric:tabular-nums;text-align:center;}
.vc-comp-row input:focus{outline:2px solid var(--primary);outline-offset:1px;border-color:var(--primary);}
.vc-stage-wrap{border:1px solid var(--border);border-radius:20px;background:var(--surface-muted);padding:0.75rem;overflow:hidden;}
.vc-stage-wrap canvas{display:block;width:100%;height:auto;aspect-ratio:100/62;vertical-align:middle;border-radius:12px;background:linear-gradient(165deg,#ffffff,#f1f5f9);border:1px solid var(--border);touch-action:pan-y;}
.vc-readout{border:1px solid var(--border);border-radius:16px;background:var(--surface);padding:1rem 1.15rem;box-shadow:var(--shadow-soft);}
.vc-readout h3{margin:0 0 0.65rem;font-size:0.7rem;font-weight:700;text-transform:uppercase;letter-spacing:0.14em;color:var(--text-muted);}
.vc-readout-inner{font-size:0.9375rem;line-height:1.55;color:var(--text-main);}
.vc-readout-inner dl{margin:0;}
.vc-readout-inner dt{margin:0.75rem 0 0.2rem;font-size:0.68rem;font-weight:700;text-transform:uppercase;letter-spacing:0.1em;color:var(--text-muted);}
.vc-readout-inner dt:first-child{margin-top:0;}
.vc-readout-inner dd{margin:0;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:0.875rem;word-break:break-word;}
.vc-readout-inner ul{margin:0.35rem 0 0;padding-left:1.1rem;}
.vc-readout-inner li{margin:0.25rem 0;}
.vc-muted{color:var(--text-muted);font-size:0.875rem;}
.vc-callout{border-left:4px solid var(--accent);padding:0.85rem 1rem;margin:2rem 0;background:var(--surface-muted);border-radius:0 12px 12px 0;}
.vc-prose{margin-top:2.5rem;padding-bottom:2rem;}
.vc-prose h2{font-size:1.35rem;margin:2rem 0 0.75rem;font-weight:700;color:var(--text-main);}
.vc-prose h2:first-child{margin-top:0;}
.vc-prose p{margin:0 0 1rem;line-height:1.65;color:var(--text-main);}
.vc-prose table{width:100%;border-collapse:collapse;font-size:0.9rem;margin:1rem 0 1.5rem;}
.vc-prose th,.vc-prose td{border:1px solid var(--border);padding:0.65rem 0.75rem;text-align:left;}
.vc-prose th{background:var(--surface-muted);font-weight:700;font-size:0.75rem;text-transform:uppercase;letter-spacing:0.06em;}
.vc-prose dl{margin:1rem 0;}
.vc-prose dt{font-weight:700;margin-top:0.75rem;color:var(--text-main);}
.vc-prose dd{margin:0.25rem 0 0 0;color:var(--text-muted);}
