.time-curve-dialog {
  width: min(740px, calc(100vw - 28px));
  max-width: 740px;
}

.time-curve-editor {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 9px;
  border: 1px solid #414f52;
  border-radius: 6px;
  background: #21292d;
  color: #dbe5e2;
  font-size: 12px;
}

.time-curve-toolbar, .time-curve-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 9px;
}

.time-curve-tabs { gap: 4px; }
.time-curve-editor label { display: inline-flex; flex-wrap: nowrap; align-items: center; gap: 4px; }
.time-curve-editor label[hidden] { display: none; }
.time-curve-editor :is(button, select, input) {
  min-height: 28px;
  padding: 3px 7px;
  border: 1px solid #516260;
  border-radius: 4px;
  background: #2a3539;
  color: #e3eae5;
  font: inherit;
}

.time-curve-editor button[aria-pressed='true'] { background: #385044; border-color: #81a58b; }
.time-curve-editor button:disabled { opacity: .45; }
.time-curve-editor input { width: 72px; }
.time-curve-editor :is(button, input, select, svg):focus-visible {
  outline: 2px solid #c9eabb;
  outline-offset: 2px;
}

.time-curve-graph {
  display: block;
  width: 100%;
  height: clamp(155px, 31vh, 245px);
  border: 1px solid #455651;
  border-radius: 4px;
  background: #161e20;
  color: #a5dba2;
  cursor: crosshair;
  touch-action: none;
  user-select: none;
}

.time-curve-graph[data-lane='volume'] { color: #efbd79; }
.time-curve-graph text { fill: #b2bdbb; font: 11px sans-serif; pointer-events: none; }
.time-curve-grid-major { stroke: #4c5a55; }
.time-curve-grid-minor { stroke: #2e3c37; }
.time-curve-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.time-curve-point { fill: #21292d; stroke: currentColor; stroke-width: 2; cursor: grab; }
.time-curve-point.is-selected { fill: currentColor; }
.time-curve-hint, .time-curve-status { margin: 0; color: #b9c6c1; line-height: 1.45; }
.time-curve-status { color: #ffd09c; }
