:root{color-scheme:light;--bg:#f6f5ef;--paper:#fffefa;--ink:#24323b;--muted:#69736f;--teal:#124f48;--teal-soft:#eaf0eb;--border:#dcded6;--rust:#b34d36;--focus:#237b71;font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:16px;color:var(--ink);background:var(--bg)}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit;color:inherit}button,select,input[type=checkbox],input[type=range],summary{cursor:pointer}button,input,select,textarea{border:1px solid var(--border);border-radius:5px;background:var(--paper)}button{padding:.64rem .8rem;font-size:.875rem;line-height:1.2;transition:background .15s,border-color .15s}button:hover{background:#eff2ec;border-color:#bbc9c0}button:active{background:#e0e9e2}button:disabled{opacity:.5;cursor:default}input,select,textarea{padding:.58rem .6rem;min-width:0;max-width:100%;font-size:.875rem}input[type=number]{font-variant-numeric:tabular-nums}select{appearance:none;padding-right:1.8rem;background-image:url("data:image/svg+xml,%3Csvg width='12' height='8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m2 2 4 4 4-4' fill='none' stroke='%235e7069' stroke-width='1.4'/%3E%3C/svg%3E");background-position:right .6rem center;background-repeat:no-repeat}input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible,summary:focus-visible,a:focus-visible,.file-link:focus-within{outline:2px solid var(--focus);outline-offset:3px}input[type=checkbox]{appearance:auto;accent-color:var(--teal);width:15px;height:15px;flex:0 0 15px;padding:0;margin:0}a{color:var(--teal);text-underline-offset:3px}p{line-height:1.55}.page{max-width:1550px;padding:36px 4.4vw 22px;margin:auto}.site-header{display:flex;justify-content:space-between;align-items:center;gap:30px;border-bottom:1px solid #bdc6bc;padding-bottom:24px;margin-bottom:24px}.eyebrow{margin:0 0 10px;font-size:.6875rem;font-weight:650;letter-spacing:.15em;text-transform:uppercase;color:var(--teal)}h1,h2{font-family:Georgia,"Times New Roman",serif;font-weight:400}h1{font-size:clamp(2.1rem,3.7vw,3.1rem);line-height:1.08;letter-spacing:-.045em;margin:0 0 11px}h2{margin:0}.subtitle{font-size:.94rem;max-width:720px;color:#5a6664;margin:0}.math{font-family:"Cambria Math",Georgia,serif}.header-actions{display:flex;flex:0 0 auto;flex-wrap:wrap;justify-content:flex-end;gap:8px;max-width:310px}.secondary-actions{display:flex;align-items:center;gap:16px;margin-top:2px}.text-button,.file-link{color:var(--muted);font-size:.8125rem;text-decoration:underline;text-underline-offset:3px}.text-button{background:transparent;border:0;padding:3px 0}.file-link{cursor:pointer}.file-link input{position:absolute;width:1px;height:1px;padding:0;opacity:0;overflow:hidden}.explorer{display:grid;grid-template-columns:280px minmax(0,1fr);gap:24px;align-items:start}.sidebar,.main-column{display:flex;flex-direction:column;gap:16px;min-width:0}.card{background:var(--paper);border:1px solid var(--border);border-radius:12px;padding:20px}.section-title{font:650 .6875rem/1.4 Inter,"Segoe UI",Arial,sans-serif;letter-spacing:.12em;text-transform:uppercase;color:var(--teal);margin:0 0 18px}.field{display:flex;flex-direction:column;gap:7px;margin-bottom:16px}.field label,.row-field label,legend{font-size:.875rem}.row-field{display:flex;flex-direction:row;justify-content:space-between;align-items:center}.row-field select{width:70px}.field-caption{display:flex;justify-content:space-between;font-size:.8125rem;color:var(--muted);margin:20px 0 9px}.roots-list{display:flex;flex-direction:column;gap:7px;margin-bottom:20px}.root-row{display:grid;grid-template-columns:28px minmax(0,1fr) minmax(0,1fr);align-items:center;gap:7px}.root-row input{width:100%;padding:.5rem .35rem}.root-row label,.root-label{font-size:.875rem;font-family:Georgia,serif}.leading-field{border:0;border-top:1px solid var(--border);padding:13px 0 0;margin:0 0 16px}.leading-field legend{padding:0 7px 0 0}.complex-fields{display:flex;gap:10px}.complex-fields label{display:flex;align-items:center;gap:6px;min-width:0;font-size:.8125rem;color:var(--muted)}.complex-fields input{width:75px;flex:1}.full-width{width:100%}.secondary{background:#f5f7f1}.compact-details{margin-top:16px;padding-top:14px;border-top:1px solid var(--border)}details summary{font-size:.875rem;color:var(--teal);line-height:1.5;list-style:none}details summary:before{content:'▸';font-size:.75rem;display:inline-block;width:15px}details[open]>summary:before{content:'▾'}summary::-webkit-details-marker{display:none}.compact-details[open] summary{margin-bottom:14px}.compact-details label{display:block;font-size:.8125rem;line-height:1.4;margin-bottom:7px}textarea{width:100%;resize:vertical;line-height:1.5}.help{font-size:.8125rem;color:var(--muted);line-height:1.5;margin:10px 0 0}.code{font-family:Consolas,monospace;font-size:.8rem}.readouts{margin:0}.readouts div{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid #e8e9e2;font-size:.8125rem}.readouts div:first-child{padding-top:0}.readouts dt{color:var(--muted)}.readouts dd{margin:0;font-variant-numeric:tabular-nums}.status{color:var(--teal);font-size:.8125rem;margin:14px 0 0;min-height:20px}.checkboxes{display:grid;gap:13px}.checkboxes label,.inline-check{display:flex;align-items:center;gap:9px;font-size:.875rem;line-height:1.4}.plot-card{padding:0;overflow:hidden}.plot-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:20px 24px;border-bottom:1px solid #e5e8df}.plot-heading h2{font-size:1.75rem;line-height:1.2;margin-bottom:7px;letter-spacing:-.02em}.equation{font-size:1.05rem;line-height:1.5;overflow-wrap:anywhere}.badge{font-size:.75rem;color:var(--teal);background:var(--teal-soft);border-radius:20px;padding:6px 9px;white-space:nowrap}.plot-wrap{position:relative;background:#fcfcf8}#plot{display:block;width:100%;height:560px;touch-action:none;cursor:grab;outline-offset:-5px}#plot:active{cursor:grabbing}#plot .root,#plot .zero{cursor:grab}#plot text{user-select:none;pointer-events:none}.plot-tools{position:absolute;top:14px;right:17px;display:flex;border:1px solid var(--border);border-radius:5px;overflow:hidden;background:var(--paper)}.plot-tools button{border:0;border-radius:0;padding:7px 10px;background:transparent;min-width:32px;font-size:.8125rem}.plot-tools button+button{border-left:1px solid var(--border)}.plot-tools button:hover{background:#edf2eb}.plane-label{position:absolute;top:15px;left:18px;font-size:.8125rem;color:#79827b;margin:0;pointer-events:none}.plot-caption{padding:14px 24px;border-top:1px solid #edf0e6}.legend{display:flex;flex-wrap:wrap;gap:12px 20px;font-size:.8125rem;color:#5d6d64}.legend>span{display:inline-flex;align-items:center;gap:7px}.line{display:inline-block;width:23px;height:0;border-top:2px solid var(--teal)}.secondary-line{border-color:var(--rust)}.zero-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#24323b}.joint-dot{display:inline-block;width:7px;height:7px;border:1px solid var(--rust);transform:rotate(45deg)}.plot-caption .help{margin:9px 0 0;font-size:.75rem}.warning{padding:12px 24px;color:#8a4e22;background:#faf0e2;font-size:.875rem;margin:0;border-top:1px solid #ead7b9}.phase-panel{padding:20px 24px 22px;border-top:1px solid var(--border)}.phase-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.phase-heading>label{font-size:.94rem}.phase-number{display:flex;align-items:center;gap:6px;font-size:.875rem}.phase-number input{width:83px;text-align:right}.phase-slider{display:block;width:100%;height:18px;padding:0;accent-color:var(--teal);border:0;background:transparent}.phase-ticks{display:flex;justify-content:space-between;margin:5px 2px 18px;color:#7c857d;font-size:.75rem;font-variant-numeric:tabular-nums}.phase-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}.play-controls{display:flex;align-items:center;gap:8px}.accent{background:var(--teal);color:white;border-color:var(--teal);min-width:65px}.accent:hover{background:#1e635a;border-color:#1e635a}.button-group{display:flex}.button-group button{padding:8px 11px;border-radius:0;min-width:32px}.button-group button:first-child{border-radius:5px 0 0 5px}.button-group button:last-child{border-radius:0 5px 5px 0;margin-left:-1px}.quick-phases{display:flex;gap:4px;align-items:center}.quick-phases>span{font-size:.75rem;color:var(--muted);margin-right:4px}.quick-phases button{font-size:.75rem;padding:7px 8px}.speed-field{display:flex;align-items:center;gap:7px;font-size:.8125rem}.speed-field select{font-size:.8125rem;padding-top:7px;padding-bottom:7px}.tracing-card{padding:20px 24px}.trace-heading{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-bottom:20px}.trace-heading .section-title{margin:0}.trace-heading .inline-check{font-size:.8125rem}.trace-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.trace-fields .field{margin:0}.trace-fields label{font-size:.8125rem}.tracing-card .help{margin-top:16px}.notes-card{padding:4px 24px}.notes-card>details{padding:17px 0}.notes-card>details+details{border-top:1px solid var(--border)}.note-content{font-size:.875rem;line-height:1.7;max-width:820px;color:#52635b}.note-content p{margin:14px 0 0}.site-footer{display:flex;justify-content:space-between;gap:16px;border-top:1px solid var(--border);margin-top:26px;padding-top:16px;color:#7a837d;font-size:.75rem}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:1450px){#plot{height:610px}}
@media(max-width:1120px){.page{padding:28px 3vw 20px}.site-header{align-items:flex-start}.header-actions{max-width:220px}.explorer{grid-template-columns:245px minmax(0,1fr);gap:18px}.card{padding:18px}.plot-card{padding:0}.plot-heading,.phase-panel,.tracing-card{padding:18px}.plot-heading{align-items:flex-start}.badge{font-size:.6875rem}#plot{height:510px}.trace-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.plot-caption{padding:14px 18px}.trace-heading{align-items:flex-start;flex-direction:column;gap:10px}.quick-phases{order:3;flex-basis:100%}.notes-card{padding:2px 18px}}
@media(max-width:760px){.page{padding:24px 18px 18px}.site-header{display:block;margin-bottom:18px}.eyebrow{font-size:.625rem}h1{font-size:2.25rem;letter-spacing:-.035em}.subtitle{font-size:.875rem}.header-actions{justify-content:flex-start;max-width:none;margin-top:18px;gap:8px}.secondary-actions{margin:0;flex-basis:100%;gap:16px;padding-top:4px}.explorer{display:flex;flex-direction:column;gap:18px}.main-column{order:0;width:100%}.sidebar{order:1;width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.polynomial-card{grid-row:span 2}.plot-heading{padding:17px}.plot-heading h2{font-size:1.5rem}.equation{font-size:1rem}.badge{font-size:.625rem;padding:6px 8px}#plot{height:440px}.phase-actions{gap:10px}.quick-phases{gap:4px}.quick-phases button{padding:7px 10px}.notes-card{padding:2px 18px}.site-footer{font-size:.6875rem}.plot-caption .help{font-size:.75rem}.phase-panel{padding:17px}.plot-caption{padding:13px 17px}.trace-heading{flex-direction:row;align-items:center}.trace-heading .inline-check{font-size:.75rem}.main-column .notes-card{order:3}}
@media(max-width:460px){.page{padding:20px 12px 16px}h1{font-size:2.05rem}.sidebar{grid-template-columns:1fr}.polynomial-card{grid-row:auto}.plot-heading{gap:10px}.plot-heading h2{font-size:1.35rem}.badge{max-width:95px;text-align:center;white-space:normal;line-height:1.3}#plot{height:375px}.legend{gap:10px 13px;font-size:.75rem}.trace-heading{display:block}.trace-heading .inline-check{margin-top:12px;font-size:.8125rem}.trace-fields{gap:13px}.trace-fields label{font-size:.75rem}.phase-actions{gap:12px}.quick-phases{justify-content:space-between}.quick-phases>span{font-size:.6875rem}.quick-phases button{font-size:.75rem;padding:7px 8px}.speed-field{margin-left:auto}.site-footer{flex-direction:column;gap:5px}.plot-tools{right:12px;top:12px}}
.eyebrow,.section-title{font-size:.75rem}.subtitle,.note-content{font-size:1rem}.readouts div,.checkboxes label,.inline-check,.trace-fields label,.trace-heading .inline-check,.complex-fields label,.compact-details label,.quick-phases button,.speed-field,.speed-field select,.file-link,.text-button{font-size:.875rem}.badge,.phase-ticks,.plot-caption .help,.site-footer,.quick-phases>span{font-size:.75rem}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.primary-line{border-color:#a63f4b}.secondary-line{border-color:#315f9b}.web-line{border-color:#bd902f;box-shadow:0 0 0 3px #bd902f30;border-radius:2px}.joint-dot{border-color:#716887}
.web-tolerance-field{display:flex;align-items:center;gap:14px;margin-top:20px;padding-top:16px;border-top:1px solid var(--border);font-size:.875rem}.web-tolerance-field>div{display:flex;align-items:center;gap:6px}.web-tolerance-field input{width:78px}
#plot,#plot:active{cursor:default;outline:none;touch-action:pan-y pinch-zoom;user-select:none;-webkit-tap-highlight-color:transparent}
#plot .root-marker{cursor:grab;outline:none;touch-action:none}
#plot .root-marker:focus-visible .root-focus-ring{opacity:1}
#plot[data-dragging] .root-marker{cursor:grabbing}
#plot[data-dragging] .root-marker .root-focus-ring{opacity:0}
.view-controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:12px 24px;border-bottom:1px solid #e5e8df;background:var(--paper)}
.view-control-group{display:flex;align-items:center;gap:9px}
.view-control-group>span{font-size:.875rem;color:var(--muted)}
.view-controls .plot-tools{position:static;inset:auto;flex:0 0 auto}
.view-controls .plot-tools button{min-height:34px;font-size:.875rem}
@media(max-width:1120px){.view-controls{padding:12px 18px}}
@media(max-width:760px){.view-controls{padding:12px 17px}}
.math .katex{font-size:1.05em}.math{font-family:KaTeX_Main,"Cambria Math",Georgia,serif}.plot-heading>div{min-width:0;flex:1 1 auto;max-width:100%}.plot-heading>.badge{flex:0 0 auto}.equation{max-width:100%;overflow-x:auto;overflow-y:hidden;overflow-wrap:normal;white-space:nowrap;padding:3px 0 7px;scrollbar-width:thin;scrollbar-color:#bcc8bd transparent}.equation .katex{white-space:nowrap}.equation:focus-visible{outline:2px solid var(--focus);outline-offset:3px}.root-name .katex{font-size:1.05em}.note-content .math{max-width:100%}.note-content .math .katex{line-height:1.6}.plot-status{position:absolute;top:54px;right:17px;margin:0;padding:5px 9px;border:1px solid #dce4dc;border-radius:5px;background:rgba(255,254,250,.94);color:var(--teal);font-size:.8125rem;line-height:1.3;pointer-events:none}.plot-status[hidden]{display:none}@media(max-width:460px){.plot-status{right:12px;top:52px}.plot-heading>.badge{max-width:84px}.equation{font-size:.95rem}}

.core-swatch{display:inline-block;width:15px;height:11px;background:rgb(136 0 136 / 35.5742%);border:1px solid #88008880;border-radius:2px;vertical-align:middle}
