/* Robot designer (js/tools/designer*.js). Every class is prefixed dz-. */
.dz-modal .modal-b { padding-top: 0; }
.dz-modal .modal-f { align-items: center; }
.dz-status { margin-right: auto; color: var(--muted); font-size: 13px; }
.dz-status b { color: var(--text); font-weight: 600; }
.dz-status.dz-mod b { color: var(--gold); }

.dz-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.dz-chip { height: 32px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--stroke); background: rgba(255, 255, 255, 0.04); color: var(--muted); font-size: 12.5px; font-weight: 600; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.dz-chip:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.22); }
.dz-chip.on { background: rgba(255, 255, 255, 0.14); color: var(--text); border-color: rgba(255, 255, 255, 0.28); }
.dz-lead { margin: 10px 2px 14px; color: var(--muted); font-size: 13px; min-height: 18px; }

.dz-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 18px; align-items: start; }
@media (max-width: 860px) { .dz-cols { grid-template-columns: 1fr; } }

.dz-group { margin: 12px 2px 4px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.dz-group:first-child { margin-top: 0; }
.dz-row { display: grid; grid-template-columns: minmax(0, 1fr) 86px 52px 74px; gap: 8px; align-items: center; padding: 5px 8px; border-radius: 9px; border: 1px solid transparent; }
.dz-row:hover { background: rgba(255, 255, 255, 0.03); }
.dz-row.dz-changed { background: var(--gold-soft); border-color: rgba(255, 194, 61, 0.28); }
.dz-l { display: flex; flex-direction: column; min-width: 0; }
.dz-l b { font-size: 13px; font-weight: 600; }
.dz-l small { color: var(--faint); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dz-in { text-align: right; }
.dz-u { color: var(--muted); font-size: 12px; }
.dz-stock { color: var(--faint); font: 500 11px var(--mono); text-align: right; white-space: nowrap; }

.dz-card { border: 1px solid var(--stroke); border-radius: 14px; background: rgba(255, 255, 255, 0.025); padding: 12px 14px; margin-bottom: 12px; }
.dz-card-h { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
.dz-slider { display: flex; align-items: center; gap: 10px; margin-top: 6px; color: var(--muted); font-size: 12.5px; }
.dz-slider input { flex: 1; accent-color: #f4f6fa; }
.dz-slider span { font: 600 12px var(--mono); color: var(--text); min-width: 48px; text-align: right; }
.dz-kv { display: grid; grid-template-columns: minmax(0, 1fr) auto 82px; gap: 10px; align-items: baseline; padding: 5px 0; border-top: 1px solid rgba(255, 255, 255, 0.05); font-size: 13px; }
.dz-kv:first-child { border-top: 0; }
.dz-kv span small { display: block; color: var(--faint); font-size: 11px; }
.dz-kv b { font: 600 12.5px var(--mono); }
.dz-kv i { font-style: normal; color: var(--faint); font: 500 11px var(--mono); text-align: right; }

/* side-view drawing */
.dz-svg { width: 100%; height: auto; display: block; }
.dz-svg .dz-floor { stroke: rgba(255, 255, 255, 0.35); stroke-width: 1.5; }
.dz-svg .dz-st { stroke: var(--gold); stroke-width: 1; stroke-dasharray: 5 4; opacity: 0.8; }
.dz-svg .dz-hi { stroke: var(--blue); stroke-width: 1; stroke-dasharray: 5 4; opacity: 0.9; }
.dz-svg .dz-st-t { fill: var(--gold); } .dz-svg .dz-hi-t { fill: #8fb0ff; }
.dz-svg .dz-t { font: 500 12px var(--font); fill: var(--muted); stroke: none; }
.dz-svg .dz-chassis { fill: rgba(255, 255, 255, 0.06); stroke: rgba(255, 255, 255, 0.28); stroke-width: 1; }
.dz-svg .dz-bump { fill: rgba(240, 67, 79, 0.35); stroke: rgba(240, 67, 79, 0.7); stroke-width: 1; }
.dz-svg .dz-wheel { fill: rgba(0, 0, 0, 0.35); stroke: rgba(255, 255, 255, 0.4); stroke-width: 1.5; }
.dz-svg .dz-arc { fill: none; stroke: rgba(255, 255, 255, 0.3); stroke-width: 1; stroke-dasharray: 2 3; }
.dz-svg .dz-arm line { stroke: #f4f6fa; stroke-width: 4; stroke-linecap: round; }
.dz-svg .dz-ghost line { stroke: rgba(255, 255, 255, 0.22); stroke-width: 3; stroke-linecap: round; }
.dz-svg .dz-ring { fill: rgba(240, 67, 79, 0.25); stroke: var(--red); stroke-width: 1.5; }
.dz-svg .dz-ghost .dz-ring { fill: none; stroke: rgba(240, 67, 79, 0.35); stroke-dasharray: 3 3; }
.dz-svg .dz-piv { fill: #07080b; stroke: #f4f6fa; stroke-width: 1.5; }
.dz-svg .dz-apex line { stroke: rgba(62, 230, 164, 0.75); stroke-width: 6; }
.dz-svg .dz-apex rect { fill: var(--green); }
.dz-svg .dz-apex-t { fill: var(--green); }

/* tests */
.dz-runbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dz-picks { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-right: auto; }
.dz-pick { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text); }
.dz-pick input { accent-color: #f4f6fa; }
.dz-rerun { color: var(--muted); }
.dz-progress { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.dz-bar { flex: 1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.dz-bar i { display: block; height: 100%; width: 0; background: #f4f6fa; transition: width 0.2s; }
.dz-progress span { min-width: 220px; text-align: right; }
.dz-note { line-height: 1.5; }
.dz-empty { margin-top: 18px; padding: 22px; border: 1px dashed var(--stroke); border-radius: 14px; color: var(--muted); text-align: center; font-size: 13px; }

.dz-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 13px; }
.dz-table th { text-align: left; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 8px; border-bottom: 1px solid var(--stroke); }
.dz-table td { padding: 6px 8px; border-top: 1px solid rgba(255, 255, 255, 0.04); vertical-align: middle; }
.dz-table tr.dz-first td { border-top-color: var(--stroke); }
.dz-table td:first-child { font-weight: 600; white-space: nowrap; }
.dz-table td:nth-child(3), .dz-table td:nth-child(4), .dz-table td:nth-child(5) { font: 500 12.5px var(--mono); white-space: nowrap; }
.dz-table small { color: var(--faint); font-family: var(--font); }
.dz-up { color: var(--green); } .dz-down { color: var(--danger); } .dz-same { color: var(--faint); font-family: var(--font); }
.dz-res { display: inline-block; padding: 2px 8px; border-radius: 999px; font: 600 11px var(--font); }
.dz-ok { background: rgba(62, 230, 164, 0.14); color: var(--green); }
.dz-bad { background: rgba(255, 90, 95, 0.14); color: #ff8a8e; }
.dz-mid { background: rgba(255, 255, 255, 0.08); color: var(--muted); }
.dz-verdict { margin-top: 16px; border: 1px solid var(--stroke); border-radius: 14px; padding: 12px 14px; background: rgba(255, 255, 255, 0.025); }
.dz-verdict p { margin: 6px 0; font-size: 13.5px; line-height: 1.5; }
.dz-details p { margin: 8px 2px 0; color: var(--faint); font-size: 12px; line-height: 1.5; }

/* saved */
.dz-saveform { display: flex; gap: 8px; }
.dz-saveform .field-in { height: 40px; font-family: var(--font); }
.dz-muted { color: var(--muted); font-size: 12.5px; }
.dz-actions { text-align: right; white-space: nowrap; }
.dz-actions .btn + .btn { margin-left: 6px; }
.dz-savedtable td:first-child { white-space: normal; }
