/* DSP Academy Tools: uses the theme's --dsp-* colour tokens (light/dark). */
.dspt { border: 1px solid var(--dsp-line, #d8dee6); border-radius: 12px; padding: 18px; margin: 24px 0; background: var(--dsp-surface, #fff); }
.dspt h3 { margin: 18px 0 8px; font-size: 1.05rem; }
.dspt h3:first-child { margin-top: 0; }
.dspt-row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; margin-bottom: 12px; }
.dspt-field { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--dsp-muted, #5b6573); min-width: 120px; }
.dspt-field input, .dspt-field select { min-height: 40px; padding: 0 10px; border: 1px solid var(--dsp-line, #d8dee6); border-radius: 8px; background: var(--dsp-bg, #fff); color: var(--dsp-ink, #111); font-size: 15px; width: 140px; max-width: 100%; }
.dspt-range { flex: 1 1 240px; }
.dspt-range input { width: 100%; padding: 0; min-height: 32px; accent-color: var(--dsp-accent, #0b6bcb); }
.dspt-btn { min-height: 40px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--dsp-accent, #0b6bcb); background: var(--dsp-accent, #0b6bcb); color: #fff; font-weight: 600; cursor: pointer; }
.dspt-btn + .dspt-btn { background: transparent; color: var(--dsp-accent, #0b6bcb); }
.dspt-canvas { display: block; width: 100%; height: 280px; margin: 8px 0; }
.dspt-short { height: 200px; }
.dspt-square { height: 300px; }
.dspt-two { display: grid; grid-template-columns: 300px 1fr; gap: 12px; }
@media (max-width: 700px) { .dspt-two { grid-template-columns: 1fr; } .dspt-field input, .dspt-field select { width: 100%; } .dspt-field { flex: 1 1 140px; } }
.dspt-out { font-size: 15px; margin: 8px 0 0; }
.dspt-legend { font-size: 13px; color: var(--dsp-muted, #5b6573); display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin: 0; }
.dspt-legend span { display: inline-block; width: 22px; height: 3px; vertical-align: middle; margin-right: -8px; }
.dspt-legend .k1 { background: var(--dsp-ink2, #5b6573); }
.dspt-legend .k2 { background: var(--dsp-accent, #0b6bcb); height: 8px; width: 8px; border-radius: 50%; }
.dspt-legend .k3 { background: repeating-linear-gradient(90deg, var(--dsp-accent, #0b6bcb) 0 6px, transparent 6px 10px); }
.dspt-export { margin-top: 10px; }
.dspt-export pre { max-height: 260px; overflow: auto; white-space: pre-wrap; word-break: break-all; }
