.clip-editor-component {
  --tool-panel: var(--surface);
  --tool-panel-2: var(--page);
  --tool-line: var(--line);
  --tool-text: var(--text);
  --tool-muted: var(--muted);
  --tool-accent: var(--accent);
  color: var(--text);
}
.clip-editor-component .tool-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.clip-editor-component .tool-panel + .tool-panel {
  margin-top: 14px;
}
.clip-editor-component .tool-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.clip-editor-component .tool-stack {
  display: grid;
  gap: 14px;
}
.clip-editor-component .tool-field {
  display: grid;
  gap: 7px;
  flex: 1;
  min-width: 140px;
}
.clip-editor-component .tool-field span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}
.clip-editor-component .tool-input,
.clip-editor-component .tool-select {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--text);
  background: var(--page);
  font: inherit;
}
.clip-editor-component .tool-button {
  min-height: 48px;
  padding: 10px 18px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: var(--accent);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.clip-editor-component .tool-button.secondary {
  color: var(--text);
  border: 1px solid var(--line);
  background: transparent;
}
.clip-editor-component .tool-button.bad {
  background: #a9364b;
}
.clip-editor-component .tool-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.clip-editor-component .tool-note {
  color: var(--muted);
  font-size: 0.88rem;
}
.clip-editor-component .tool-error {
  padding: 12px 14px;
  border: 1px solid rgba(255, 107, 122, 0.35);
  border-radius: 10px;
  color: #ffc1c8;
  background: rgba(255, 107, 122, 0.08);
}
.clip-editor-component .tool-kicker {
  color: var(--accent-light);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}
.clip-editor-component [hidden] {
  display: none !important;
}
@media (max-width: 800px) {
  .clip-editor-component .tool-panel {
    padding: 15px;
  }
  .clip-editor-component .tool-row {
    display: grid;
    grid-template-columns: 1fr;
  }
}
