/* Estilos propios de la calculadora de circuitos de corriente alterna (se cargan además de styles.css) */
:root { --ph-v: #4f46e5; --ph-i: #ea580c; --ph-r: #dc2626; --ph-l: #16a34a; --ph-c: #0284c7; }
@media (prefers-color-scheme: dark) { :root { --ph-v: #a5a0ff; --ph-i: #fb923c; --ph-r: #f87171; --ph-l: #4ade80; --ph-c: #38bdf8; } }
.ac-inputs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px 16px; }
.ac-inputs .field small { color: var(--muted); font-size: .8rem; }
.ac-w { fill: none; stroke: var(--wire); stroke-width: 2; stroke-linejoin: round; }
.ac-mask { fill: var(--bg); }
.ac-src { fill: var(--bg); }
.ac-dot { fill: var(--wire); }
.ac-arrow { fill: none; stroke: var(--ph-i); stroke-width: 2; }
.ac-lbl { font: 600 13px system-ui, sans-serif; fill: var(--text); text-anchor: middle; }
.ac-lbl.start { text-anchor: start; }
.ac-viz { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 16px; align-items: start; }
.ac-viz svg, #triangle svg { display: block; width: 100%; max-width: 380px; height: auto; margin: 0 auto; }
#triangle svg { max-width: 520px; }
.ph-grid { fill: none; stroke: var(--border); stroke-width: 1; }
.ph-axis { stroke: var(--muted); stroke-width: 1; opacity: .6; }
.ph-ax { font: 600 12px system-ui, sans-serif; fill: var(--muted); text-anchor: end; }
.ph-phi { text-anchor: middle; font-size: 14px; fill: var(--text); }
.ph-arc { fill: none; stroke: var(--muted); stroke-width: 1.5; }
.ph-lbl { font: 700 14px Georgia, "Times New Roman", serif; text-anchor: middle; paint-order: stroke; stroke: var(--panel); stroke-width: 3px; stroke-linejoin: round; }
.ph-lbl.ph-main { font-size: 16px; }
.ph-sub { font-size: 10px; }
.ph-proj { stroke-dasharray: 3 4; stroke-width: 1; opacity: .7; }
.ph-wave { fill: none; stroke-width: 2.5; }
.ph-thin { opacity: .95; }
.ph-v { --c: var(--ph-v); } .ph-i { --c: var(--ph-i); } .ph-r { --c: var(--ph-r); } .ph-l { --c: var(--ph-l); } .ph-c { --c: var(--ph-c); }
g.ph-v line, g.ph-i line, g.ph-r line, g.ph-l line, g.ph-c line, line.ph-proj, path.ph-wave { stroke: var(--c); }
g.ph-v path, g.ph-i path, g.ph-r path, g.ph-l path, g.ph-c path, circle.ph-dotw { fill: var(--c); }
text.ph-lbl { fill: var(--c); }
.ph-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .88rem; font-weight: 600; margin: 4px 0 8px; }
.ph-legend span { display: inline-flex; align-items: center; gap: 6px; color: var(--c); }
.ph-legend i { width: 18px; height: 4px; border-radius: 2px; background: var(--c); display: inline-block; }
.pt-fill { fill: var(--accent-soft); }
.pt-p, .pt-q, .pt-s { stroke-width: 3; stroke-linecap: round; }
.pt-p { stroke: var(--ph-r); } .pt-q { stroke: var(--ph-l); } .pt-s { stroke: var(--ph-v); }
.pt-new { stroke: var(--ph-c); stroke-width: 2.5; stroke-dasharray: 6 5; fill: none; }
.pt-qc { stroke: var(--ph-c); stroke-width: 2; fill: none; }
.pt-lbl { font: 600 13px system-ui, sans-serif; fill: var(--text); text-anchor: middle; paint-order: stroke; stroke: var(--panel); stroke-width: 3px; stroke-linejoin: round; }
.pt-lbl.start { text-anchor: start; }
.pt-pc { fill: var(--ph-r); } .pt-qcol { fill: var(--ph-l); } .pt-sc { fill: var(--ph-v); } .pt-c { fill: var(--ph-c); }
.ac-table td, .ac-table th { white-space: nowrap; }
.ac-table td:first-child { font-family: inherit !important; font-weight: 600 !important; }
#table { margin-top: 14px; }
.ac-table th:first-child { font-family: inherit !important; }
