/*
 * SaaS Motion Pro — css/tools/curves.css
 * © 2026 Sabbir Hossen — SaaS Motion Pro. All rights reserved.
 */
.curves-top { display: flex; flex-direction: column; gap: 12px; }
.app.w-md .curves-top, .app.w-lg .curves-top { flex-direction: row; align-items: flex-start; }
.curves-editor { padding: 8px; flex: none; }
.app.w-md .curves-editor, .app.w-lg .curves-editor { width: 300px; }
.curves-side { flex: 1; min-width: 0; }
.curves-svg { width: 100%; max-height: 340px; touch-action: none; cursor: crosshair; user-select: none; }
.curves-svg .unit { fill: var(--bg); stroke: var(--border-strong); stroke-width: 1; }
.curves-svg .g { stroke: var(--border); stroke-width: 0.6; }
.curves-svg .g-main { stroke: var(--border-strong); stroke-width: 0.9; }
.curves-svg .diag { stroke: var(--border-strong); stroke-dasharray: 3 3; stroke-width: 0.8; }
.curves-svg .arm { stroke: var(--text-3); stroke-width: 1.1; }
.curves-svg .curve { fill: none; stroke: url(#curvesGrad); stroke-width: 2.6; stroke-linecap: round; }
.curves-svg .end { fill: var(--text-2); }
.curves-svg .dot { fill: var(--accent-2); }
.curves-svg .h { fill: #fff; stroke: var(--accent); stroke-width: 3; cursor: grab; transition: r .1s; }
.curves-svg .h:hover { r: 8.5; }
.curves-svg.dragging, .curves-svg.dragging .h { cursor: grabbing; }
.curves-svg .lbl { fill: var(--text-3); font-size: 8px; font-family: var(--mono); }
.curves-track { position: relative; height: 18px; margin: 6px 4px 2px; border-radius: 99px; background: var(--bg); border: 1px solid var(--border); }
.curves-track i { position: absolute; left: 1px; top: 1px; width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.curves-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.curves-nums .input { width: 100%; min-width: 0; text-align: center; font-variant-numeric: tabular-nums; padding-left: 4px; padding-right: 4px; }
.curves-css { font-family: var(--mono); font-size: 11px; }
.curves-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 6px; }
.curves-chip { position: relative; }
.curves-chip.on { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.curves-chip .grow { overflow: hidden; text-overflow: ellipsis; }
.curves-mini { width: 22px; height: 22px; flex: none; color: var(--accent-hi); }
.curves-del { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 5px; color: var(--text-3); flex: none; }
.curves-del svg { width: 11px; height: 11px; }
.curves-del:hover { background: var(--hover); color: var(--err); }
