/* 画布专业视觉（11-21）：叠在 canvas-prompt-clean 之后，统一字号/色调/边框/胶囊/输入框/对齐 */

.free-canvas-page {
  --fc-bg: #eceef2;
  --fc-ink: #1c1f26;
  --fc-ink-2: #5e6572;
  --fc-muted: #8a919c;
  --fc-line: #e3e6eb;
  --fc-line-2: #d5d9e0;
  --fc-fill: #f4f5f7;
  --fc-panel: #ffffff;
  --fc-accent: #1c1f26;
  --fc-radius: 14px;
  --fc-chip-h: 28px;
  --fc-fs: 12px;
  --fc-shadow: 0 1px 2px rgba(28, 31, 38, 0.05), 0 10px 28px rgba(28, 31, 38, 0.08);
}

.free-canvas-page .react-flow__node { font-size: 12px !important; }
.free-canvas-page .react-flow__edge-path {
  stroke: #b8bec8 !important;
  stroke-width: 1.5 !important;
  stroke-dasharray: none !important;
  animation: none !important;
}
.free-canvas-page .react-flow__edge.animated path {
  stroke-dasharray: none !important;
  animation: none !important;
}

.fc-asset-node { position: relative; }

.free-canvas-page .fc-asset-node-header,
.fc-asset-node-header {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  height: 20px !important;
  min-height: 20px !important;
  margin-bottom: 6px !important;
  padding: 0 24px 0 2px !important;
  color: #6b7280 !important;
  font-size: 11px !important;
  line-height: 20px !important;
}
.free-canvas-page .fc-asset-node-header > svg,
.fc-asset-node-header > svg {
  width: 11px !important;
  height: 11px !important;
  position: static !important;
  top: 0 !important;
  flex-shrink: 0 !important;
  color: #8a919c !important;
}
.free-canvas-page .fc-node-title,
.fc-node-title {
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 20px !important;
  height: 20px !important;
  color: #6b7280 !important;
  letter-spacing: 0.01em;
}

.free-canvas-page .fc-asset-node .fc-node-del,
.fc-asset-node .fc-node-del,
.fc-node-del {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  width: 20px !important;
  height: 20px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid #e3e6eb !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #8a919c !important;
  box-shadow: none !important;
  display: grid !important;
  place-items: center !important;
  line-height: 0 !important;
}
.free-canvas-page .fc-asset-node .fc-node-del svg,
.fc-node-del svg {
  display: block;
  width: 11px;
  height: 11px;
}
.fc-node-del:hover {
  background: #fef2f2 !important;
  border-color: #fecaca !important;
  color: #c23b3b !important;
  box-shadow: none !important;
}

.fc-asset-card {
  border-radius: 14px !important;
  border: 1px solid #e3e6eb !important;
  box-shadow: 0 1px 2px rgba(28, 31, 38, 0.04) !important;
  position: relative;
  overflow: hidden;
}
.fc-asset-node.is-selected .fc-asset-card {
  border-color: #1c1f26 !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 24px rgba(28, 31, 38, 0.1) !important;
}

.fc-asset-body { background: #f3f4f6 !important; color: #c0c5cd !important; }
.fc-asset-body.is-character,
.fc-asset-body.is-scene {
  width: 220px !important;
  height: 280px !important;
}
.fc-asset-body.is-image,
.fc-asset-body.is-video {
  width: 200px !important;
  height: 356px !important;
}
.fc-asset-body.is-audio {
  width: 320px !important;
  height: 112px !important;
}
.fc-asset-body.is-text {
  width: 360px !important;
  min-height: 140px !important;
}
.fc-asset-body .fc-placeholder-icon {
  width: 22px !important;
  height: 22px !important;
  padding: 16px !important;
  border-radius: 999px !important;
  background: #eceef2 !important;
  border: 1px solid #e3e6eb !important;
  box-sizing: content-box !important;
  color: #9aa1ab !important;
}
.fc-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #eceef2;
  color: #9aa1ab;
  border: 1px solid #e3e6eb;
}
.fc-asset-video-play {
  width: 52px !important;
  height: 52px !important;
}

.fc-handle {
  width: 8px !important;
  height: 8px !important;
  border: 1.5px solid #fff !important;
  background: #b8bec8 !important;
}
.fc-asset-node.is-selected .fc-handle { background: #1c1f26 !important; }

.fc-asset-card .fc-node-meta,
.fc-node-meta {
  position: absolute !important;
  left: 8px !important;
  right: 8px !important;
  bottom: 8px !important;
  display: flex !important;
  justify-content: center !important;
  padding: 0 !important;
  z-index: 2;
  pointer-events: none;
}
.fc-node-meta .fc-gen-chip,
.fc-node-meta span {
  height: 20px !important;
  padding: 0 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  color: #6b7280 !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  line-height: 20px !important;
  box-shadow: 0 1px 4px rgba(28, 31, 38, 0.08) !important;
}

.fc-generate-panel {
  width: min(780px, calc(100vw - 48px)) !important;
  padding: 12px 14px 10px !important;
  border: 1px solid #e3e6eb !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(28, 31, 38, 0.05), 0 10px 28px rgba(28, 31, 38, 0.08) !important;
}
.fc-generate-panel.has-media { border-color: #d5d9e0 !important; }

.fc-generate-head {
  align-items: center !important;
  min-height: 24px !important;
  margin-bottom: 8px !important;
  color: #5e6572 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

.fc-generate-panel .fc-generate-input,
.fc-generate-panel .fc-generate-editor {
  border: 1px solid #e3e6eb !important;
  background: #f4f5f7 !important;
  padding: 10px 12px !important;
  min-height: 84px !important;
  max-height: 180px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  color: #1c1f26 !important;
  -webkit-text-fill-color: #1c1f26 !important;
}
.fc-generate-panel .fc-generate-input:focus {
  background: #fff !important;
  border-color: #d5d9e0 !important;
  box-shadow: 0 0 0 3px rgba(28, 31, 38, 0.06) !important;
}

.fc-generate-panel .fc-generate-editor.is-empty::before {
  content: "描述镜头、运动与氛围，Enter 生成 · @ 引用资产" !important;
  color: #8a919c !important;
  -webkit-text-fill-color: #8a919c !important;
  font-weight: 400 !important;
}

.fc-generate-bottom {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
  margin-top: 10px !important;
  min-width: 0;
}
.fc-generate-panel .fc-gen-opts {
  margin-top: 0 !important;
  flex: 0 1 auto;
  min-width: 0;
}
.fc-generate-panel .fc-gen-opts-triggers {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  overflow: visible !important;
  gap: 6px !important;
}

.fc-generate-bottom > *,
.fc-generate-panel .fc-mode-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.fc-generate-panel .fc-gen-opt-btn,
.fc-generate-panel .fc-mode-chip,
.fc-generate-panel .fc-generate-optimize,
.fc-generate-panel .fc-gen-chip {
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 10px !important;
  border: 1px solid #d5d9e0 !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #1c1f26 !important;
  -webkit-text-fill-color: #1c1f26 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  flex-shrink: 0;
}
.fc-generate-panel .fc-gen-opt-btn.active,
.fc-generate-panel .fc-gen-chip.selected {
  border-color: #1c1f26 !important;
  background: #f4f5f7 !important;
  color: #1c1f26 !important;
  -webkit-text-fill-color: #1c1f26 !important;
}
.fc-generate-panel .fc-gen-opt-price { color: #059669 !important; }

.free-canvas-page .fc-generate-submit,
.fc-generate-panel .fc-generate-submit,
.fc-audio-gen .fc-generate-submit {
  box-sizing: border-box !important;
  width: 28px !important;
  min-width: 28px !important;
  max-width: 28px !important;
  height: 28px !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 999px !important;
  background-color: #1c1f26 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 7-7 7 7'/%3E%3Cpath d='M12 19V5'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 14px 14px !important;
  color: #fff !important;
  font-size: 0 !important;
  line-height: 0 !important;
  overflow: hidden !important;
  display: grid !important;
  place-items: center !important;
  flex-shrink: 0 !important;
  gap: 0 !important;
}
.fc-generate-submit svg:not(.fc-spin) {
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
}
.fc-generate-submit:has(.fc-spin) {
  background-image: none !important;
}
.fc-generate-submit .fc-spin {
  opacity: 1 !important;
  width: 14px !important;
  height: 14px !important;
}

.fc-generate-help:hover:not(:disabled) {
  color: #1c1f26 !important;
  background: #f4f5f7 !important;
}
.fc-generate-tag {
  background: #f4f5f7 !important;
  color: #5e6572 !important;
  font-size: 11px !important;
  font-weight: 500 !important;
}

.fc-icon-btn {
  width: 36px !important;
  height: 36px !important;
  color: #5e6572 !important;
}

.fc-asset-video-play.is-clickable:hover {
  background: rgba(28, 31, 38, 0.72) !important;
  color: #fff !important;
}

.fc-audio-gen,
.fc-text-ai {
  width: min(780px, calc(100vw - 48px)) !important;
  padding: 12px 14px 10px !important;
  border: 1px solid #e3e6eb !important;
  border-radius: 16px !important;
  box-shadow: 0 1px 2px rgba(28, 31, 38, 0.05), 0 10px 28px rgba(28, 31, 38, 0.08) !important;
}
.fc-audio-gen .fc-generate-head {
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #6b7280 !important;
}
.fc-audio-gen-text,
.fc-audio-gen-voice {
  min-height: 72px !important;
  padding: 10px 12px !important;
  border: 1px solid #e3e6eb !important;
  border-radius: 10px !important;
  background: #f4f5f7 !important;
  color: #1c1f26 !important;
  -webkit-text-fill-color: #1c1f26 !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  font-weight: 400 !important;
}
.fc-audio-gen-voice {
  min-height: 36px !important;
  height: 36px !important;
}
.fc-audio-gen-text::placeholder,
.fc-audio-gen-voice::placeholder {
  color: #8a919c !important;
  -webkit-text-fill-color: #8a919c !important;
  font-weight: 400 !important;
}
.fc-audio-gen-text:focus,
.fc-audio-gen-voice:focus {
  border-color: #d5d9e0 !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(28, 31, 38, 0.06) !important;
}
.fc-audio-bottom {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
  margin-top: 10px !important;
}
.fc-audio-bottom > *,
.fc-audio-gen .fc-mode-wrap {
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}
.fc-audio-gen .fc-gen-chip,
.fc-audio-gen .fc-mode-chip {
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 10px !important;
  border: 1px solid #d5d9e0 !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #1c1f26 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
}
.fc-audio-toggle {
  height: 28px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #5e6572 !important;
  gap: 5px !important;
}
.fc-audio-price {
  height: 28px !important;
  padding: 0 10px !important;
  border: none !important;
  background: transparent !important;
  color: #6b7280 !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}
.fc-node-preview-btn {
  background: #1c1f26 !important;
  color: #fff !important;
  font-weight: 500 !important;
}
