/* Laboratorio de referencias CNC (prefijo cr). Paleta de la serie: ámbar + azul + azul marino. */
.cr { --cr-acc: #d98a0b; --cr-soft: #fff4de; --cr-blue: #1f5fa8; --cr-muted: var(--muted, #4a5d70); --cr-line: var(--line, #cfdae6);
  background: var(--card, #ffffff); color: #0b1f33; border: 1px solid var(--cr-line); border-radius: 8px; padding: 18px; margin: 26px 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; font-size: 16px; line-height: 1.45; }
.cr *, .cr *::before, .cr *::after { box-sizing: border-box; }
.cr-head { display: flex; flex-direction: column; gap: 2px; }
.cr-head strong { font-size: 1.15rem; }
.cr-head span { color: var(--cr-muted); font-size: .92rem; line-height: 1.5; }
.cr button { font: inherit; cursor: pointer; }
.cr-tabs, .cr-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.cr-tab, .cr-pre { font-size: .88rem; font-weight: 600; padding: 7px 12px; min-height: 40px; border-radius: 4px; border: 1px solid var(--cr-line); background: #f3f6f9; color: #0b1f33; }
.cr-tab[aria-pressed="true"] { background: #0b1f33; border-color: #0b1f33; color: #fff; }
.cr-pre[aria-pressed="true"] { background: var(--cr-soft); border-color: var(--cr-acc); }
.cr button:focus-visible, .cr select:focus-visible, .cr input:focus-visible { outline: 3px solid var(--cr-acc); outline-offset: 2px; }
.cr-panel[hidden] { display: none; }
.cr-panel { min-width: 0; }
.cr-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px; min-width: 0; }
.cr-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
@media (max-width: 820px) { .cr-body { grid-template-columns: minmax(0, 1fr); } }
.cr-svgbox { min-width: 0; }
.cr-svg { display: block; width: 100%; height: auto; max-width: 100%; background: #f8fafc; border: 1px solid #e1e8ef; border-radius: 4px; }
.cr-svg text { font-family: Helvetica, Arial, sans-serif; fill: #0b1f33; font-size: 17px; }
.cr-svg text.s { font-size: 16px; fill: #4a5d70; }
.cr-svg text.b { font-weight: 700; font-size: 17px; }
.cr-svg text.bad { fill: #b42318; }
.cr-trav { fill: #fff; stroke: #0b1f33; stroke-width: 2; }
.cr-mz { fill: #0b1f33; }
.cr-ax { stroke: #0b1f33; stroke-width: 2; fill: none; }
.cr-zc { stroke: #4a5d70; stroke-width: 2; fill: none; }
.cr-zc.on { stroke: #d98a0b; stroke-width: 3.5; }
.cr-zline { stroke: #1a7f4b; stroke-width: 2.5; stroke-dasharray: 6 4; fill: none; }
.cr-int { fill: none; stroke: #1a7f4b; stroke-width: 2.5; }
.cr-err { stroke: #b42318; stroke-width: 2.5; stroke-dasharray: 6 4; fill: none; }
.cr-tool.ok { fill: #1a7f4b; stroke: #fff; stroke-width: 1.5; }
.cr-tool.bad { fill: #b42318; stroke: #fff; stroke-width: 1.5; }
.cr-part { fill: #dbe5ef; stroke: #0b1f33; stroke-width: 2; }
.cr-vise { fill: #2a6fb0; stroke: #0b1f33; stroke-width: 2; }
.cr-cut { fill: rgba(217, 138, 11, .25); stroke: #d98a0b; stroke-width: 2.5; }
.cr-cut2 { fill: #f4c76a; stroke: #0b1f33; stroke-width: 1.5; }
.cr-holder { fill: #4a5d70; stroke: #0b1f33; stroke-width: 1.5; }
.cr-run { fill: #2a6fb0; }
.cr-over { fill: #b42318; }
.cr fieldset { border: 1px solid var(--cr-line); border-radius: 6px; margin: 0; padding: 6px 10px 8px; min-width: 0; }
.cr legend { font-size: .85rem; font-weight: 700; padding: 0 6px; }
.cr-row { display: flex; flex-direction: column; gap: 2px; padding: 5px 0; min-width: 0; }
.cr-row label { font-size: .86rem; font-weight: 600; }
.cr-row input[type=number], .cr-row select { width: 100%; min-width: 0; min-height: 40px; font: inherit; padding: 6px 8px; border: 1px solid var(--cr-line); border-radius: 4px; background: #fff; color: #0b1f33; }
.cr-in { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cr-in input[type=range] { flex: 1 1 auto; min-width: 0; height: 30px; accent-color: var(--cr-acc); }
.cr-in output { flex: 0 0 auto; min-width: 5.5em; text-align: right; font-variant-numeric: tabular-nums; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .88rem; }
.cr-grid { display: grid; grid-template-columns: 2.6em repeat(3, minmax(0, 1fr)); gap: 4px; align-items: center; }
.cr-gh { font-size: .8rem; font-weight: 700; text-align: center; color: var(--cr-muted); }
.cr-gl { font-size: .86rem; font-weight: 700; }
.cr-grid input { width: 100%; min-width: 0; min-height: 38px; font: inherit; font-size: .85rem; padding: 4px 4px; border: 1px solid var(--cr-line); border-radius: 4px; background: #fff; color: #0b1f33; font-variant-numeric: tabular-nums; }
.cr-chk { display: flex; align-items: flex-start; gap: 8px; font-size: .88rem; padding: 5px 0; line-height: 1.35; }
.cr-chk input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--cr-acc); }
.cr-res { min-width: 0; overflow-x: auto; }
.cr-t { border-collapse: collapse; width: 100%; font-size: .86rem; }
.cr-t th, .cr-t td { border: 1px solid var(--cr-line); padding: 5px 6px; text-align: right; font-variant-numeric: tabular-nums; }
.cr-t th { background: #eef2f6; }
.cr-t td:first-child, .cr-t th:first-child { text-align: left; }
.cr-t tr.hl td { background: var(--cr-soft); font-weight: 700; }
.cr-t td.bad { color: #b42318; font-weight: 700; }
.cr-msg { margin: 0; padding: 10px 12px; border-radius: 4px; border-left: 4px solid var(--cr-blue); background: #eef4fb; font-size: .92rem; line-height: 1.5; }
.cr-msg.ok { border-left-color: #1a7f4b; background: #e9f6ef; }
.cr-msg.bad { border-left-color: #b42318; background: #fdecea; }
@media (max-width: 520px) { .cr-t { font-size: .78rem; } .cr-t th, .cr-t td { padding: 4px 3px; } .cr-t td:first-child { width: 34%; } .cr { padding: 14px; } }
