.advanced-math{--advanced-canvas:#101820;--advanced-grid:#263a4a;--advanced-axis:#92a9ba;--advanced-text:#dce6ee;--advanced-series-1:#f0a32b;--advanced-series-2:#62b7e8;--advanced-series-3:#e46f8d;color:var(--ink);gap:18px;display:grid}.advanced-math__intro{justify-content:space-between;align-items:flex-start;gap:20px;padding:4px 2px 18px;display:flex}.advanced-math__intro h2{letter-spacing:-.02em;margin:3px 0 4px;font-size:1.35rem}.advanced-math__intro p{max-width:760px;color:var(--muted);margin:0;font-size:.9rem}.advanced-math__eyebrow{color:var(--accent-strong);letter-spacing:.08em;text-transform:uppercase;font-size:.72rem;font-weight:750}.advanced-math__constants{flex-wrap:wrap;justify-content:flex-end;gap:6px;display:flex}.advanced-math__constants span{border:1px solid var(--line);color:var(--muted);background:var(--surface-2);border-radius:999px;padding:5px 9px;font:.74rem Cascadia Code,Consolas,monospace}.advanced-math__tabs{border-bottom:1px solid var(--line);scrollbar-width:thin;gap:6px;padding:4px 2px 10px;display:flex;overflow-x:auto}.advanced-math button{cursor:pointer;border:1px solid var(--line);color:var(--ink);background:var(--surface);border-radius:8px;padding:7px 11px;font-size:.82rem}.advanced-math__tabs button{white-space:nowrap}.advanced-math button:hover{border-color:var(--accent);background:var(--accent-soft)}.advanced-math__tabs button.is-active{color:var(--accent-strong);border-color:var(--accent);background:var(--accent-soft);font-weight:700}.advanced-math button:focus-visible,.advanced-math input:focus-visible,.advanced-math select:focus-visible,.advanced-math textarea:focus-visible{outline:3px solid color-mix(in srgb, var(--accent) 25%, transparent);outline-offset:1px}.advanced-math__panel{min-width:0}.advanced-math__layout{grid-template-columns:minmax(300px,.82fr) minmax(0,1.18fr);align-items:start;gap:14px;display:grid}.advanced-math__layout--graph{grid-template-columns:minmax(280px,.42fr) minmax(0,1.58fr)}.advanced-math__layout--wide-result{grid-template-columns:minmax(280px,.75fr) minmax(0,1.25fr)}.advanced-math__card{border:1px solid var(--line);background:color-mix(in srgb, var(--surface) 97%, var(--surface-2));border-radius:12px;min-width:0;padding:18px}.advanced-math__card h3{margin:0 0 4px;font-size:1rem}.advanced-math__card>p{color:var(--muted);margin:0 0 14px;font-size:.84rem}.advanced-math__section-head{justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:10px;display:flex}.advanced-math__section-head p{color:var(--muted);margin:2px 0 0;font-size:.8rem}.advanced-math__field{color:var(--muted);gap:5px;margin-bottom:12px;font-size:.78rem;font-weight:650;display:grid}.advanced-math__field small{color:var(--muted);font-size:.7rem;font-weight:450}.advanced-math input,.advanced-math select,.advanced-math textarea{border:1px solid var(--line);width:100%;color:var(--ink);background:var(--surface);border-radius:8px;padding:8px 10px}.advanced-math input{min-height:40px}.advanced-math textarea{resize:vertical;min-height:150px;font:.84rem/1.5 Cascadia Code,Consolas,monospace}.advanced-math__two-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;display:grid}.advanced-math__two-fields .advanced-math__field{margin-bottom:12px}.advanced-math__result-area{gap:10px;margin-top:13px;display:grid}.advanced-math__result-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));align-items:stretch;gap:9px;display:grid}.advanced-math__result{border:1px solid var(--line);background:var(--surface-2);border-radius:10px;align-content:start;gap:6px;min-width:0;padding:13px;display:grid}.advanced-math__result>span{color:var(--muted);text-transform:uppercase;letter-spacing:.04em;font-size:.69rem;font-weight:700;line-height:1.35}.advanced-math__result strong{min-width:0;color:var(--accent-strong);font-variant-numeric:tabular-nums;overflow-wrap:break-word;word-break:normal;font:700 clamp(.78rem,.55rem + .55vw,.98rem) Cascadia Code,Consolas,monospace;display:block}.advanced-math__result small{color:var(--muted);overflow-wrap:break-word;font-size:.7rem;line-height:1.35}.advanced-math__error{border:1px solid color-mix(in srgb, var(--danger) 50%, var(--line));color:var(--danger);background:color-mix(in srgb, var(--danger) 7%, var(--surface));border-radius:9px;padding:12px;font-size:.84rem}.advanced-math__equation,.advanced-math__decomposition{border:1px solid var(--line);color:var(--accent-strong);background:var(--surface-2);border-radius:9px;padding:14px;font:700 .86rem/1.65 Cascadia Code,Consolas,monospace;overflow-x:auto}.advanced-math__decomposition{text-align:center;place-items:center;min-height:105px;font-size:clamp(1rem,2vw,1.35rem);display:grid}.advanced-math__term-list{grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:9px;display:grid}.advanced-math__callout{border-left:3px solid var(--accent);color:var(--muted);background:var(--accent-soft);margin-top:10px;padding:11px 12px;font-size:.78rem}.advanced-math__details{margin-top:4px}.advanced-math__details summary{cursor:pointer;color:var(--muted);font-size:.8rem;font-weight:650}.advanced-math__details .advanced-math__equation{margin-top:8px}.advanced-math__graph-card{min-width:0}.advanced-math__graph-toolbar{flex-wrap:wrap;gap:6px;display:flex}.advanced-math__graph-toolbar button{min-width:34px;padding:5px 8px;font-size:.75rem}.advanced-math__canvas-wrap{border:1px solid var(--line);background:var(--advanced-canvas);border-radius:10px;width:100%;height:430px;min-height:430px;overflow:hidden}.advanced-math__canvas-wrap canvas{cursor:grab;touch-action:none;user-select:none;width:100%;height:100%;display:block}.advanced-math__canvas-wrap canvas.is-interacting{cursor:grabbing}.advanced-math__graph-hint{color:var(--muted);margin:8px 0 0!important;font-size:.72rem!important}.advanced-math__legend{min-height:24px;color:var(--muted);flex-wrap:wrap;gap:10px;margin:0 0 8px;font-size:.72rem;display:flex}.advanced-math__legend span{align-items:center;gap:5px;display:inline-flex}.advanced-math__legend i{background:var(--legend-color);border-radius:2px;width:18px;height:3px}.advanced-math__complex-grid,.advanced-math__point-fieldset{border:1px solid var(--line);border-radius:9px;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:0 0 12px;padding:12px;display:grid}.advanced-math__complex-grid legend,.advanced-math__point-fieldset legend{color:var(--muted);padding:0 5px;font-size:.75rem;font-weight:700}.advanced-math__complex-grid .advanced-math__field,.advanced-math__point-fieldset .advanced-math__field{margin-bottom:0}.advanced-math__point-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.advanced-math__point-grid .advanced-math__point-fieldset{grid-template-columns:1fr}@media (prefers-color-scheme:dark){.advanced-math{--advanced-canvas:#0b1117;--advanced-grid:#26333e;--advanced-axis:#8ba2b4;--advanced-text:#dce6ee}}@media (width<=980px){.advanced-math__layout,.advanced-math__layout--graph,.advanced-math__layout--wide-result{grid-template-columns:1fr}}@media (width<=700px){.advanced-math__intro,.advanced-math__section-head{flex-direction:column}.advanced-math__constants{justify-content:flex-start}.advanced-math__card{padding:13px}.advanced-math__two-fields,.advanced-math__point-grid,.advanced-math__result-grid{grid-template-columns:1fr}.advanced-math__canvas-wrap{height:350px;min-height:350px}}
