
/* Resolutor de mallas y nudos */
.btn-sm { font-size: .86rem; padding: 6px 11px; }
.cz-examples { display: flex; flex-wrap: wrap; gap: 8px; }
.cz-draw { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 6px; }
.cz-svg svg { display: block; width: 100%; max-width: 640px; height: auto; margin: 0 auto; user-select: none; -webkit-tap-highlight-color: transparent; }
.cz-edge { cursor: pointer; outline: none; }
.cz-hit { fill: transparent; }
.cz-edge:hover .cz-hit, .cz-edge:focus-visible .cz-hit { fill: var(--accent-soft); }
.cz-edge.sel .cz-hit { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 2; }
.cz-w { stroke: var(--wire); stroke-width: 2.4; stroke-linecap: round; }
.cz-ph { stroke: var(--border); stroke-width: 2; stroke-dasharray: 3 7; stroke-linecap: round; }
.cz-edge.empty:hover .cz-ph { stroke: var(--accent); }
.cz-body { fill: var(--panel); stroke: var(--wire); stroke-width: 2.4; }
.cz-edge.sel .cz-body, .cz-edge.sel .cz-w { stroke: var(--accent); }
.cz-sign { font: 700 16px system-ui, sans-serif; fill: var(--text); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.cz-arrow { fill: none; stroke: var(--text); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cz-lbl { font: 500 15px system-ui, sans-serif; fill: var(--muted); pointer-events: none; }
.cz-nm { font-weight: 700; fill: var(--text); }
.cz-pt { fill: var(--border); }
.cz-pt.on { fill: var(--wire); }
.cz-jn { fill: var(--wire); }
.cz-mesh { pointer-events: none; }
.cz-marc { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cz-mlbl { font: 700 14px Georgia, serif; fill: var(--accent); text-anchor: middle; dominant-baseline: central; }
.cz-node { pointer-events: none; }
.cz-nb { fill: var(--accent); }
.cz-node.ref .cz-nb { fill: var(--muted); }
.cz-nt { font: 700 12px system-ui, sans-serif; fill: #fff; text-anchor: middle; dominant-baseline: central; }
.cz-gnd { stroke: var(--wire); stroke-width: 2; fill: none; }
.cz-editor { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--accent); background: var(--accent-soft); border-radius: 12px; padding: 12px 14px; }
.cz-ed-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cz-editor .seg { background: var(--panel); }
.cz-editor input[type=text] { background: var(--panel); max-width: 200px; }
.cz-x { font: inherit; font-size: 1.2rem; line-height: 1; border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 2px 6px; }
.cz-warn { color: var(--cell-x); margin: 0 0 4px; }
.cz-table td, .cz-table th { text-align: right; white-space: nowrap; }
.cz-table td:first-child, .cz-table th:first-child { text-align: left; }
.cz-dir { font-family: system-ui, sans-serif; font-weight: 700; color: var(--accent); }
.cz-abs { color: var(--muted); font-size: .85em; }
.cz-gen { color: #16a34a; font-size: .85em; font-weight: 600; }
.cz-list { margin: 0 0 8px; padding-left: 20px; }
.cz-list li { margin-bottom: 4px; }
.cz-eq { font-family: Georgia, "Times New Roman", serif; font-size: 1.05rem; }
.cz-eqb { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 8px 12px; margin-bottom: 8px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; }
.cz-eql { font-size: .82rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; min-width: 90px; }
.cz-sys { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 12px; overflow-x: auto; }
.cz-ml, .cz-op { font-family: Georgia, serif; font-size: 1.05rem; }
.cz-mx { border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; border-left: 2px solid var(--text); border-right: 2px solid var(--text); border-radius: 6px; }
.cz-mx.det { border-radius: 0; }
.cz-mx td { padding: 3px 10px; text-align: right; font-family: Georgia, serif; white-space: nowrap; }
.cz-mx.aug td.b { border-left: 1px dashed var(--muted); }
.cz-gnote { margin: 8px 0 4px !important; font-size: .95rem; }
@media (prefers-color-scheme: dark) { .cz-gen { color: #4ade80; } }
.cz-select { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; }
@media (max-width: 560px) {
  .cz-draw { padding: 2px; margin: 0 -8px; }
  .cz-lbl { font-size: 21px; }
  .cz-mlbl { font-size: 19px; }
  .cz-nt { font-size: 15px; }
  .cz-sign { font-size: 20px; }
}
