#vWork{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:12px;align-items:start;margin-top:14px}
.v-col{display:grid;gap:11px;min-width:0}
.v-card{padding:15px;border:1px solid #3d3656;border-radius:15px;background:#1b1829;min-width:0}
.v-card h2{margin:0 0 10px;font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#c8b4ff}
.v-inputs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.v-inputs label{display:grid;gap:4px;min-width:0;font-size:13px;font-weight:700}
.v-inputs input{width:100%;box-sizing:border-box;min-height:50px;padding:7px 10px;border:1px solid #4a4560;border-radius:10px;background:#100e1c;color:#fff;font:inherit;font-size:18px}
.l-x{color:#ff8f8f}.l-y{color:#7ee2a8}.l-z{color:#7cc4ff}
#vPresets,.v-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
#vPresets button{min-height:38px;padding:0 10px;border:1px solid #4a4560;border-radius:999px;background:none;color:#d6d0e3;font:13px ui-monospace,Consolas,monospace;cursor:pointer}
#vPresets button[aria-pressed=true]{border-color:#f6cd63;background:#f6cd631a;color:#fff}
.v-btn{min-height:44px;padding:0 13px;border:1px solid #4a4560;border-radius:10px;background:none;color:#ece7f6;font:inherit;font-size:14px;cursor:pointer}
.v-btn:hover:not(:disabled){border-color:#c8b4ff}.v-btn:disabled{opacity:.45;cursor:default}
.v-answer{border-color:#6a5a8e;background:linear-gradient(120deg,#33245a,#1b1829 75%)}
.v-answer small{color:#d6d0e3;font-size:14px}
#vLength{display:block;color:#f6cd63;font-size:clamp(40px,6vw,66px);font-weight:800;line-height:1.1;overflow-wrap:anywhere}
#vProof{margin:6px 0 0;color:#e4def0;font:14px/1.5 ui-monospace,Consolas,monospace;overflow-wrap:anywhere}
#vZero{margin:8px 0 0;color:#ffd9a0;font-size:14px}
.v-table{display:grid;gap:7px}
.v-row{display:grid;grid-template-columns:24px minmax(0,1fr) 88px 70px;align-items:center;gap:8px;font-size:14px;color:#fff}
.v-row b{font-weight:800}
.v-row small{color:#bdb6cc;font-size:12px}
.v-head{color:#bdb6cc;font-size:12px}
.v-track{height:9px;overflow:hidden;border-radius:5px;background:#100e1c}
.v-track i{display:block;height:100%;border-radius:5px;background:currentColor}
#vSvg{display:block;width:100%;max-height:calc(100vh - 170px);aspect-ratio:1;border-radius:15px;background:radial-gradient(circle at 50% 45%,#2c2350,#14111f 75%);cursor:grab;touch-action:none}
#vSvg:active{cursor:grabbing}
#vSvg:focus-visible{outline:2px solid #f6cd63}
.v-stage{position:sticky;top:84px;display:grid;gap:6px}
.v-stage small{color:#bdb6cc;font-size:12px;text-align:center}
.ax-x,.ax-y,.ax-z{stroke-width:1.5;opacity:.55}.ax-x{stroke:#ff8f8f}.ax-y{stroke:#7ee2a8}.ax-z{stroke:#7cc4ff}
.lb-x,.lb-y,.lb-z{font:700 14px sans-serif}.lb-x{fill:#ff8f8f}.lb-y{fill:#7ee2a8}.lb-z{fill:#7cc4ff}
.leg-x,.leg-y,.leg-z{stroke-width:2.5;stroke-dasharray:6 4}.leg-x{stroke:#ff8f8f}.leg-y{stroke:#7ee2a8}.leg-z{stroke:#7cc4ff}
.guide{stroke:#ffffff55;stroke-width:1;stroke-dasharray:3 4}
.vec{stroke:#f6cd63;stroke-width:5;stroke-linecap:round}.vec-head{fill:#f6cd63}
#vStatus{min-height:20px;margin:0;color:#c9f3da;font-size:14px}#vStatus.is-bad{color:#ffb4b4}
.v-scroll{overflow-x:auto}
.v-card table{width:100%;border-collapse:collapse;font-size:13px}
.v-card th,.v-card td{padding:6px 8px;border-bottom:1px solid #2d2942;color:#ece7f6;text-align:right;white-space:nowrap}.v-card th{color:#bdb6cc;font-weight:600}
.v-card th:first-child,.v-card td:first-child{text-align:left}
.v-muted{margin:0;color:#bdb6cc;font-size:14px}
[data-tool=vector_magnitude_calculator] .nf-hero{padding-block:18px}
@media(max-width:900px){#vWork{grid-template-columns:minmax(0,1fr)}.v-stage{position:static}#vSvg{max-height:none;max-width:440px;margin:auto}}
@media(max-width:700px){[data-tool=vector_magnitude_calculator] .nf-hero{padding:16px}[data-tool=vector_magnitude_calculator] .nf-badges,[data-tool=vector_magnitude_calculator] .nf-eyebrow{display:none}.v-actions .v-btn{flex:1 1 40%}.v-row{grid-template-columns:20px minmax(0,1fr) 70px 58px}}
/* restyle 2026-11-02 */
[data-tool=vector_magnitude_calculator] .nf-hero{padding:24px 28px;border:1px solid #6f5686;border-radius:20px;background:radial-gradient(circle at 92% 8%,#f6cd6324,transparent 34%),radial-gradient(circle at 8% 100%,#8b6cff33,transparent 46%),linear-gradient(135deg,#2d2640,#242032 60%,#1d1a29)}
[data-tool=vector_magnitude_calculator] .nf-badges{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
#vWork{gap:18px;margin:18px 0 22px}
.v-col{gap:14px}
.v-card{padding:18px;border-radius:16px}
.v-card h2{font-size:12px;letter-spacing:.09em;color:#b9a6e8}
.v-inputs label.l-x,.v-row.l-x b{color:#ff8f8f}.v-inputs label.l-y,.v-row.l-y b{color:#7ee2a8}.v-inputs label.l-z,.v-row.l-z b{color:#7cc4ff}
.v-row.l-x .v-track i{background:#ff8f8f}.v-row.l-y .v-track i{background:#7ee2a8}.v-row.l-z .v-track i{background:#7cc4ff}
.v-inputs input:focus{outline:none;border-color:#f6cd63;box-shadow:0 0 0 3px #f6cd6326}
.v-answer{padding:20px 22px;border-color:#6f5686;background:radial-gradient(circle at 100% 0,#f6cd631f,transparent 45%),linear-gradient(120deg,#33245a,#1b1829 75%)}
.v-answer small{text-transform:uppercase;letter-spacing:.09em;font-size:12px;font-weight:700;color:#d6c9f5}
#vLength{font-size:clamp(48px,7vw,78px);margin-top:2px}
.v-col>.v-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0}
.v-col>.v-actions .v-btn{width:100%}
#vCopy{order:-1;grid-column:1/-1;border:0;background:#f6cd63;color:#1b1626;font-weight:800}
#vCopy:hover:not(:disabled){background:#ffd97a}
.v-stage{padding:14px;border:1px solid #3d3656;border-radius:18px;background:#1b1829}
#vSvg{border-radius:12px;max-height:calc(100vh - 200px)}
@media(max-width:700px){[data-tool=vector_magnitude_calculator] .nf-hero{padding:18px}.v-col>.v-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.v-col>.v-actions .v-btn{flex:none}.v-stage{padding:10px}}
#vCsv{grid-column:span 2}
#vStatus:empty{display:none}
@media(max-width:700px){.v-row{grid-template-columns:16px minmax(0,1fr) 92px 52px;gap:6px;font-size:13px}.v-row span{white-space:nowrap}}
