/* CSS Easing & Cubic-Bezier Generator — tool-specific styles */
.eg-presets { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.eg-preset { background: var(--bg-soft); border: 1px solid var(--line); color: var(--muted); border-radius: 999px;
  padding: 6px 13px; font-size: .8rem; font-weight: 600; font-family: inherit; cursor: pointer; }
.eg-preset:hover { border-color: var(--accent); color: var(--text); }
.eg-preset.active { background: color-mix(in srgb, var(--accent) 18%, var(--card-2)); border-color: var(--accent); color: var(--text); }
.eg-layout { display: grid; grid-template-columns: 260px 1fr; gap: 20px; align-items: start; }
.eg-curve-wrap { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; }
.eg-svg { width: 100%; height: auto; display: block; touch-action: none; }
.eg-grid-bg { fill: var(--card-2); }
.eg-axis { stroke: var(--line); stroke-width: 1.5; }
.eg-guide { stroke: var(--muted-2); stroke-width: 1.5; stroke-dasharray: 3 3; }
.eg-path { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.eg-endpoint { fill: var(--muted-2); }
.eg-handle { fill: var(--accent-grad, var(--accent)); fill: var(--accent); stroke: #0b0e1c; stroke-width: 1.5; cursor: grab; }
.eg-handle:hover, .eg-handle:focus { fill: color-mix(in srgb, var(--accent) 70%, white); outline: none; }
.eg-handle:active { cursor: grabbing; }
.eg-side { display: flex; flex-direction: column; gap: 16px; }
.eg-preview-track { position: relative; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm);
  height: 60px; padding: 0 4px; }
.eg-ball { position: absolute; top: 50%; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-grad);
  transform: translateY(-50%); left: 0; box-shadow: 0 4px 14px -4px rgba(108,139,255,.7); }
.eg-duration { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.eg-duration label { font-size: .78rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: .03em; }
.eg-stepper { display: flex; align-items: center; gap: 8px; }
.eg-stepper button { width: 30px; height: 30px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--text); font-size: 1rem; cursor: pointer; }
.eg-stepper span { min-width: 44px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; font-size: .86rem; }
.eg-values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.eg-values div { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 4px; text-align: center; }
.eg-values label { display: block; font-size: .68rem; color: var(--muted-2); text-transform: uppercase; }
.eg-values span { display: block; font-weight: 700; font-variant-numeric: tabular-nums; font-size: .88rem; margin-top: 2px; }
.cl-output-bar { display: flex; align-items: center; margin-top: 18px; }
.cl-output-bar .spacer { flex: 1; }
.cl-code { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px;
  margin-top: 10px; font-size: .84rem; line-height: 1.6; overflow-x: auto; color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
@media (max-width: 760px) { .eg-layout { grid-template-columns: 1fr; } }
