/* ==========================================================================
   App Editors shared styles — canonical copy for NON-canvas pages (home batch bar)
   ==========================================================================
   Reused from canvas-css for editor overlays launched from BatchJobCard:
   annotate / crop / expand / pen-crop / customgrid / multigrid / camera-studio
   / fullscreen overlay / anim-btn. Per-source legacy copies retained in their
   original files; keep this file synchronized when changing those rules.
   Dark-theme variable fallbacks below supply pages that do not load base.css.
   On canvas pages base.css (incl. :root[data-theme=light]) wins by specificity,
   so theme behaviour is preserved.
   （annotate.css 已并入本文件并删除；本文件是 .annotate-* 的唯一权威来源。）
   ========================================================================== */
:root {
  --black-alpha-40: rgba(0, 0, 0, 0.4);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --brand: #6366f1;
  --brand-alpha-10: rgba(99, 102, 241, 0.1);
  --brand-alpha-30: rgba(99, 102, 241, 0.3);
  --crop-stage-block-gutter: 144px;
  --crop-stage-inline-gutter: clamp(32px, 6vw, 96px);
  --cs-camera-accent: #22d3ee;
  --cs-light-accent: #fb923c;
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.15);
  --dur-fast: 150ms;
  --dur-normal: 200ms;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.5, 1);
  --glass-bg: rgba(20, 20, 28, 0.92);
  --glass-bg-light: rgba(56, 56, 76, 0.3);
  --glass-blur-lg: 24px;
  --glass-blur-md: 16px;
  --glass-blur-sm: 6px;
  --glass-panel-bg: rgba(20, 20, 28, 0.77);
  --glass-ring: rgba(255, 255, 255, 0.16);
  --node-image-bg: rgba(16, 185, 129, 0.15);
  --node-image-light: #4ade80;
  --node-image-text: #34d399;
  --node-panorama-bg: rgba(6, 182, 212, 0.15);
  --node-panorama-light: #22d3ee;
  --success: #22c55e;
  --success-light: #4ade80;
  --theme-bg: #0a0a0f;
  --theme-border: #2a2a3a;
  --theme-card: #1a1a26;
  --theme-hover: #252535;
  --theme-surface: #14141c;
  --theme-text: #dddde4;
  --theme-text-muted: #7d7d91;
  --theme-text-secondary: #8888a0;
  --transition-base: var(--dur-fast) var(--ease-out-expo);
  --warning-bg: rgba(249, 115, 22, 0.15);
  --warning-light: #fb923c;
  --white-alpha-06: rgba(255, 255, 255, 0.06);
  --white-alpha-08: rgba(255, 255, 255, 0.08);
}

@keyframes fadeIn {

  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }

}

@keyframes stageZoomIn {

  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }

}

@keyframes imgZoomIn {

  from { transform: scale(0.86); filter: blur(14px); }
  55% { filter: blur(3px); }
  to { transform: scale(1); filter: blur(0); }

}

.crop-overlay {

  display: flex;
  flex-direction: column;
  padding: 0;

}

.crop-overlay > .fullscreen-close--absolute {

  display: none;

}

.crop-content {

  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  width: 100%;
  height: 100%;

}

.crop-toolbar-dock {

  position: fixed;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: max-content;
  max-width: calc(100vw - 24px);
  pointer-events: none;
  white-space: nowrap;

}

.crop-toolbar-dock > * {

  pointer-events: auto;

}

.crop-toolbar-dock .crop-aspect-bar {

  position: relative;
  top: auto;
  left: auto;
  transform: none;
  max-width: calc(100vw - 166px);

}

.crop-aspect-bar {

  position: fixed;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10001;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: var(--glass-bg-light);
  backdrop-filter: blur(var(--glass-blur-md));
  border: 1px solid var(--glass-ring);
  border-radius: 10px;
  flex-shrink: 0;
  /* 窄屏防溢出：按钮不收缩，超出时横向滚动且隐藏滚动条 */
  max-width: calc(100vw - 24px);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;

}

.crop-aspect-bar::-webkit-scrollbar {

  display: none;

}

.crop-aspect-btn {

  height: 32px;
  min-height: 32px;
  padding: 3px 10px;
  border-radius: 6px;
  background: transparent;
  color: var(--theme-text-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: color var(--transition-base), background var(--transition-base), border-color var(--transition-base);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;

}

.crop-aspect-btn.crop-aspect-close {

  padding: 3px 6px;
  border-color: transparent;
  margin-right: 4px;

}

.crop-aspect-btn.crop-aspect-close.act-cancel:hover,
.crop-aspect-btn.crop-aspect-close:hover {

  color: var(--danger);
  background: var(--danger-bg);

}

.crop-aspect-btn:hover {

  color: var(--theme-text);
  background: var(--theme-hover);

}

.crop-aspect-btn.active {

  color: var(--brand);
  background: var(--brand-alpha-10);
  border-color: var(--brand-alpha-30);

}

[data-theme='light'] .crop-aspect-bar {

  --theme-text-secondary: var(--theme-text);

}

.crop-aspect-spacer {

  flex: 1;
  min-width: 8px;

}

.crop-action-btn {

  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 4px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition-base), color var(--transition-base), border-color var(--transition-base);
  white-space: nowrap;
  background: transparent;
  color: var(--theme-text-secondary);

}

.crop-action-btn:hover {

  color: var(--theme-text);
  background: var(--theme-hover);

}

.crop-action-btn.confirm {

  color: var(--success);
  border-color: rgba(34, 197, 94, 0.3);

}

.crop-action-btn.confirm:hover {

  background: rgba(34, 197, 94, 0.1);
  color: var(--success-light);
  border-color: rgba(34, 197, 94, 0.5);

}

.crop-action-btn.cancel:hover {

  color: var(--danger);
  background: var(--danger-bg);

}

.crop-stage {

  --crop-stage-inline-gutter: clamp(32px, 6vw, 96px);
  --crop-stage-block-gutter: 144px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  min-height: 0;
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 100%;

}

.crop-zoom-stage {

  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
  max-width: calc(100vw - var(--crop-stage-inline-gutter));
  max-height: calc(100vh - var(--crop-stage-block-gutter));
  max-height: calc(100dvh - var(--crop-stage-block-gutter));

}

.crop-react-wrapper {

  max-width: 100%;
  max-height: 100%;

}

.crop-image {

  max-width: calc(100vw - var(--crop-stage-inline-gutter));
  max-height: calc(100vh - var(--crop-stage-block-gutter));
  max-height: calc(100dvh - var(--crop-stage-block-gutter));
  display: block;
  user-select: none;
  -webkit-user-drag: none;

}

.crop-zoom-indicator {

  position: absolute;
  bottom: 12px;
  right: 16px;
  padding: 3px 10px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 6px;
  color: var(--theme-text-secondary);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  z-index: 10;

}

.crop-mode-toggle {

  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border-radius: 8px;
  background: var(--theme-hover, rgba(255, 255, 255, 0.05));

}

.crop-bar-divider {

  width: 1px;
  align-self: stretch;
  margin: 2px 4px;
  background: var(--theme-border);

}

.crop-pen-hint {

  font-size: 11px;
  color: var(--theme-text-muted, rgba(255, 255, 255, 0.4));
  white-space: nowrap;
  padding: 0 4px;

}

.crop-action-btn:disabled {

  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;

}

.crop-pen-svg {

  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  touch-action: none;

}

.crop-stage.pen-mode .crop-react-wrapper {

  pointer-events: none;

}

.crop-stage.pen-mode .ReactCrop__crop-selection {

  display: none;

}

.crop-stage.pen-mode .crop-pen-svg {

  cursor: crosshair;

}

.crop-pen-fill {

  fill: var(--brand-alpha-10, rgba(99, 102, 241, 0.18));

}

.crop-pen-stroke {

  stroke: var(--brand, #6366f1);

}

.crop-pen-handles line {

  stroke: var(--brand, #6366f1);
  opacity: 0.7;

}

.crop-pen-handles circle {

  fill: #fff;
  stroke: var(--brand, #6366f1);

}

.crop-pen-anchor {

  fill: #fff;
  stroke: #111;
  cursor: pointer;

}

.crop-pen-anchor.selected {

  fill: var(--brand, #6366f1);
  stroke: #fff;

}

.crop-pen-anchor.first {

  fill: var(--success, #22c55e);
  stroke: #fff;

}

.expand-stage {

  padding-bottom: 132px;

}

.expand-frame {

  position: relative;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35), 0 8px 40px rgba(0, 0, 0, 0.5);
  background-color: #15151c;
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.06) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.06) 75%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.06) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.06) 75%);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;

}

.expand-src-img {

  position: absolute;
  user-select: none;
  -webkit-user-drag: none;
  cursor: grab;
  touch-action: none;
  box-shadow: 0 0 0 1px var(--brand-alpha-30, rgba(99, 102, 241, 0.3));

}

.expand-src-img:active {

  cursor: grabbing;

}

.expand-controls {

  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10001;
  width: min(92vw, 440px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  background: var(--glass-bg-light);
  backdrop-filter: blur(var(--glass-blur-md));
  border: 1px solid var(--glass-ring);
  border-radius: 12px;

}

[data-theme='light'] .expand-controls {

  --theme-text-secondary: var(--theme-text);

}

.expand-control-row {

  display: flex;
  align-items: center;
  gap: 10px;

}

.expand-label {

  font-size: 12px;
  font-weight: 500;
  color: var(--theme-text-secondary);
  white-space: nowrap;

}

.expand-value {

  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--theme-text-secondary);
  min-width: 36px;
  text-align: right;

}

.expand-slider {

  flex: 1;
  min-width: 0;

}

.expand-slider {

  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: var(--theme-border);
  outline: none;
  cursor: pointer;

}

.expand-slider::-webkit-slider-thumb {

  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand);
  cursor: pointer;
  border: 2px solid var(--theme-surface, #15151c);

}

.expand-prompt-input {

  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--theme-border);
  border-radius: 8px;
  background: var(--theme-surface, rgba(0, 0, 0, 0.25));
  color: var(--theme-text);
  font-size: 12px;
  outline: none;
  transition: border-color var(--transition-base);

}

.expand-prompt-input:focus {

  border-color: var(--brand-alpha-30, rgba(99, 102, 241, 0.4));

}

.expand-prompt-input::placeholder {

  color: var(--theme-text-muted, rgba(255, 255, 255, 0.35));

}

.ReactCrop .ReactCrop__crop-selection {

  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.55);

}

.ReactCrop.ReactCrop--active .ReactCrop__crop-selection {

  animation: none;
  will-change: top, left, width, height;

}

.image-editor-zoom-controls {

  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  box-sizing: border-box;
  padding: 6px 10px;
  flex: 0 0 auto;
  color: var(--theme-text-secondary);
  background: color-mix(in srgb, var(--theme-surface) 95%, transparent);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 1px solid color-mix(in srgb, var(--theme-border) 80%, transparent);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  pointer-events: auto;

}

.image-editor-zoom-btn,
.image-editor-zoom-value {

  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;

}

.image-editor-zoom-btn {

  width: 28px;

}

.image-editor-zoom-value {

  min-width: 38px;
  padding-inline: 2px;
  color: var(--theme-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;

}

.image-editor-zoom-btn:hover,
.image-editor-zoom-value:hover {

  color: var(--theme-text);
  background: color-mix(in srgb, var(--theme-text) 8%, transparent);

}

.image-editor-zoom-btn:disabled {

  opacity: 0.3;
  pointer-events: none;

}

.annotate-overlay {

  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  animation: fadeIn var(--dur-normal) var(--ease-out-expo);

}

.annotate-toolbar {

  position: fixed;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10001;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 4px 8px;
  background: var(--glass-panel-bg);
  backdrop-filter: blur(var(--glass-blur-lg));
  border: 1px solid var(--glass-ring);
  border-radius: 10px;
  box-shadow: 0 4px 24px var(--black-alpha-40);
  white-space: nowrap;

}

.annotate-btn {

  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--theme-text-secondary);
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  padding: 0;
  flex-shrink: 0;

}

.annotate-btn:hover {

  color: var(--theme-text);
  background: var(--white-alpha-08);

}

.annotate-btn.active {

  color: var(--success);
  background: rgba(34, 197, 94, 0.12);

}

.annotate-btn:disabled {

  opacity: 0.3;
  cursor: default;
  pointer-events: none;

}

.annotate-btn.act-cancel:hover {

  color: var(--danger);
  background: var(--danger-bg);

}

.annotate-save {

  gap: 6px;
  padding: 0 12px;
  width: auto;
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  margin-left: 2px;

}

.annotate-save:hover {

  background: rgba(34, 197, 94, 0.1);
  color: var(--success-light);
  border-color: rgba(34, 197, 94, 0.5);

}

.annotate-save span {

  white-space: nowrap;

}

.annotate-divider {

  width: 1px;
  height: 22px;
  background: var(--theme-border);
  margin: 0 6px;
  flex-shrink: 0;

}

.annotate-colors {

  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 2px;

}

.annotate-color-swatch {

  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
  flex-shrink: 0;

}

.annotate-color-swatch:hover {

  transform: scale(1.2);

}

.annotate-color-swatch.active {

  border-color: var(--theme-text);
  transform: scale(1.15);

}

.annotate-size {

  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 2px;

}

.annotate-size-value {

  font-size: 12px;
  color: var(--theme-text);
  font-variant-numeric: tabular-nums;
  min-width: 20px;
  text-align: center;

}

.annotate-size-label {

  font-size: 11px;
  color: var(--theme-text-muted);
  white-space: nowrap;

}

.annotate-size-range {

  width: 80px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--theme-border);
  border-radius: 2px;
  outline: none;
  cursor: pointer;

}

.annotate-size-range::-webkit-slider-thumb {

  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--theme-text);
  border: none;
  cursor: pointer;

}

.annotate-size-range::-moz-range-thumb {

  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--theme-text);
  border: none;
  cursor: pointer;

}

.annotate-stage {

  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 80px 40px 40px;
  box-sizing: border-box;

}

.annotate-viewport {

  position: relative;
  display: inline-block;
  line-height: 0;
  transform-origin: center;
  animation: stageZoomIn 0.5s var(--ease-out-expo) both;

}

.annotate-image {

  display: block;
  max-width: 85vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  user-select: none;
  -webkit-user-drag: none;

}

.annotate-canvas {

  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;

}

.annotate-text-input {

  position: absolute;
  z-index: 10;
  background: rgba(0, 0, 0, 0.65);
  border: 1px dashed var(--theme-border);
  border-radius: 4px;
  color: inherit;
  outline: none;
  padding: 2px 6px;
  min-width: 80px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: bold;
  line-height: 1.4;
  caret-color: var(--theme-text);

}

.annotate-text-input::placeholder {

  color: var(--theme-text-muted);
  font-weight: 400;

}

.annotate-text-label {

  position: absolute;
  z-index: 5;
  pointer-events: auto;
  cursor: move;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: bold;
  line-height: 1.2;
  white-space: pre-wrap;
  user-select: none;
  -webkit-user-drag: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 1px 3px;
  transition: border-color 0.15s;

}

.annotate-text-label:hover {

  border-color: var(--theme-border);
  background: rgba(0, 0, 0, 0.25);

}

.annotate-text-label.selected {

  border-color: var(--theme-text);
  background: rgba(0, 0, 0, 0.3);

}

.annotate-text-label:hover .annotate-text-delete,
.annotate-text-label.selected .annotate-text-delete {

  opacity: 1;

}

.annotate-text-delete {

  position: absolute;
  top: -8px;
  right: -8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid var(--theme-border);
  color: var(--theme-text-secondary);
  font-size: 11px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;

}

.annotate-text-delete:hover {

  color: var(--danger);
  background: rgba(0, 0, 0, 0.9);

}

.customgrid-content {

  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  pointer-events: none;

}

.customgrid-overlay > .fullscreen-close--absolute {

  display: none;

}

.customgrid-toolbar {

  position: fixed;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10001;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 4px 8px;
  background: var(--glass-bg-light);
  backdrop-filter: blur(var(--glass-blur-md));
  border: 1px solid var(--theme-border);
  border-radius: 10px;
  box-shadow: 0 4px 24px var(--black-alpha-40);
  white-space: nowrap;
  pointer-events: auto;

}

.customgrid-btn {

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 32px;
  padding: 0 10px;
  border: none;
  background: transparent;
  color: var(--theme-text-secondary);
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
  white-space: nowrap;

}

.customgrid-btn:hover {

  color: var(--theme-text);
  background: var(--white-alpha-08);

}

.customgrid-btn.active {

  color: var(--brand, #8a93ff);
  background: rgba(138, 147, 255, 0.12);

}

.customgrid-btn:disabled {

  opacity: 0.3;
  cursor: default;
  pointer-events: none;

}

.customgrid-btn.act-cancel:hover {

  color: var(--danger);
  background: var(--danger-bg);

}

.customgrid-btn.act-cancel {

  width: 32px;
  padding: 0;

}

.customgrid-btn.act-confirm {

  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 0 12px;

}

.customgrid-btn.act-confirm:hover {

  background: rgba(34, 197, 94, 0.1);
  color: var(--success-light);
  border-color: rgba(34, 197, 94, 0.5);

}

.customgrid-mode-toggle {

  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0 2px;

}

.customgrid-bar-divider {

  width: 1px;
  height: 22px;
  background: var(--theme-border);
  margin: 0 6px;
  flex-shrink: 0;

}

.customgrid-bar-spacer {

  flex: 1;

}

.customgrid-hint {

  font-size: 11px;
  color: var(--theme-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

}

.customgrid-stage {

  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 40px 40px;
  box-sizing: border-box;
  overflow: auto;
  pointer-events: auto;
  cursor: crosshair;

}

.customgrid-image-wrap {

  position: relative;
  display: inline-block;
  line-height: 0;
  animation: stageZoomIn 0.5s var(--ease-out-expo, ease-out) both;

}

.customgrid-image {

  display: block;
  max-width: 85vw;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 4px;
  user-select: none;
  -webkit-user-drag: none;

}

.customgrid-line {

  position: absolute;
  z-index: 2;
  pointer-events: auto;
  cursor: grab;
  transition: opacity 0.12s;
  /* 可交互区域比视觉线更大 */

}

.customgrid-line::before {

  content: '';
  position: absolute;
  background: var(--brand, #8a93ff);
  pointer-events: none;
  border-radius: 1px;
  box-shadow: 0 0 6px rgba(138, 147, 255, 0.35);

}

.customgrid-line--h {

  left: 0;
  right: 0;
  height: 16px;
  transform: translateY(-50%);

}

.customgrid-line--h::before {

  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);

}

.customgrid-line--v {

  top: 0;
  bottom: 0;
  width: 16px;
  transform: translateX(-50%);

}

.customgrid-line--v::before {

  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);

}

.customgrid-line.dragging {

  cursor: grabbing;
  z-index: 3;

}

.customgrid-line.dragging::before {

  box-shadow: 0 0 10px rgba(138, 147, 255, 0.6);

}

.customgrid-line-del {

  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid var(--theme-border);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s;
  z-index: 4;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* 居中对齐到线的交叉处 */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

}

.customgrid-line-del::after {

  content: '×';
  color: var(--theme-text-secondary);
  font-size: 12px;
  line-height: 1;
  pointer-events: none;

}

.customgrid-line:hover .customgrid-line-del,
.customgrid-line.dragging .customgrid-line-del {

  opacity: 1;

}

.customgrid-line-del:hover {

  background: var(--danger);
  border-color: var(--danger);

}

.customgrid-line-del:hover::after {

  color: #fff;

}

﻿/* ============================================
   Node Components — Frosted Glass Design System (base)
   ⚠ 本文件的 .fullscreen-/.image-editor-zoom- 规则已摘录进
   public/canvas-css/app-editors.css（底部操作栏复用，全站加载）；改动需两处同步。
   ============================================ */

/* Node Wrapper — label sits above the glass card */
.node-wrapper {

  display: flex;
  flex-direction: column;
  position: relative;
  transition: width 0.28s var(--ease-spring);

}

.fullscreen-overlay {

  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(var(--glass-blur-sm));

}

.fullscreen-overlay--transparent {

  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(8px);
  flex-direction: column;
  padding: 0;

}

.fullscreen-panel {

  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur-lg));
  border: 1px solid var(--glass-ring);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 64px rgba(0, 0, 0, 0.48);
  position: relative;
  transform-origin: center center;
  will-change: transform, opacity, filter;

}

.fullscreen-header {

  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-bottom: 1px solid var(--theme-border);
  flex-shrink: 0;

}

.fullscreen-title {

  font-size: 13px;
  font-weight: 600;
  color: var(--theme-text);

}

.fullscreen-close {

  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--theme-text-secondary);
  cursor: pointer;
  border-radius: 6px;
  transition: color var(--transition-base), background var(--transition-base);

}

.fullscreen-close:hover {

  color: var(--theme-text);
  background: var(--white-alpha-06);

}

.fullscreen-body {

  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;

}

.fullscreen-body textarea.fullscreen-textarea {

  width: 100%;
  height: 72vh;
  font-size: 14px;
  line-height: 1.75;
  color: var(--theme-text);
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  font-family: inherit;
  white-space: pre-wrap;
  word-break: break-word;

}

.fullscreen-body textarea.fullscreen-textarea::placeholder {

  color: var(--theme-text-muted);

}

.fullscreen-md-view {

  min-height: 72vh;
  font-size: 14px;
  line-height: 1.85;
  color: var(--theme-text);

}

.fullscreen-md-view .markdown-rendered {

  font-size: 14px;
  line-height: 1.85;

}

.fullscreen-md-view .markdown-rendered h1 {
 font-size: 24px; 
}

.fullscreen-md-view .markdown-rendered h2 {
 font-size: 20px; 
}

.fullscreen-md-view .markdown-rendered h3 {
 font-size: 16px; 
}

.fullscreen-md-view .markdown-rendered h4,
.fullscreen-md-view .markdown-rendered h5,
.fullscreen-md-view .markdown-rendered h6 {
 font-size: 14px; 
}

.fullscreen-md-view .markdown-rendered code {

  font-size: 13px;

}

.fullscreen-md-view .markdown-rendered pre code {

  font-size: 12px;

}

.fullscreen-toolbar {

  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;

}

.fullscreen-header-extra {

  display: flex;
  align-items: center;

}

.fullscreen-close--absolute {

  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur-sm));
  border: 1px solid var(--glass-ring);
  border-radius: 8px;

}

.fullscreen-close--absolute:hover {

  background: rgba(40, 40, 52, 0.9);

}

.fullscreen-body--pano {

  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 80vh;

}

.fullscreen-body--pano .panorama-viewer-wrapper {

  min-height: 0;
  overflow: hidden;

}

.fullscreen-body--pano .panorama-scene-shell {

  border-radius: 0;

}

.fullscreen-body--pano .panorama-scene-webgl {

  border-radius: 0;

}

.fullscreen-pano-toolbar {

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 14px;
  flex-shrink: 0;
  border-top: 1px solid var(--glass-ring);
  background: var(--glass-bg);

}

.fullscreen-img-view {

  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 4px;
  user-select: none;
  -webkit-user-drag: none;
  /* Apple Photos 式放大浮现：从略缩 + 柔焦优雅展开（放慢，不突兀）*/
  transform-origin: center;
  animation: imgZoomIn 1.8s var(--ease-out-expo) both;

}

.fullscreen-video-view {

  max-width: 92vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: 4px;
  background: #000;
  outline: none;
  animation: imgZoomIn 0.5s var(--ease-out-expo) both;

}

.zoomable-image-stage.is-flying .fullscreen-img-view {

  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;

}

.zoomable-image-container .fullscreen-img-view {

  animation: none;
  cursor: inherit;

}

.composer-toolbar-dock .image-editor-zoom-controls {

  flex: 0 0 auto;

}

.camera-studio-overlay {

  --cs-camera-accent: var(--node-panorama-light, #22d3ee);
  --cs-light-accent: var(--warning-light, #fbbf24);
  --cs-grid-color: var(--theme-text-muted);

}

.camera-studio-overlay .fullscreen-panel {

  max-height: calc(100vh - 24px);
  overflow: hidden;

}

.camera-studio-overlay .fullscreen-header {

  position: relative;
  min-height: 48px;
  padding: 8px 12px 8px 16px;

}

.camera-studio-overlay .fullscreen-title {

  font-size: 13px;
  font-weight: 650;

}

.camera-studio-overlay .fullscreen-header-extra {

  margin-left: auto;
  margin-right: 8px;

}

.camera-studio-body {

  padding: 0;
  overflow: hidden;

}

.camera-studio-shell {

  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(340px, 0.7fr);
  height: min(74vh, 680px);
  min-height: 560px;
  background: var(--theme-bg);

}

.camera-studio-stage {

  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  border-right: 1px solid var(--theme-border);
  background: var(--theme-bg);
  overflow: hidden;

}

.camera-studio-viewport {

  position: relative;
  min-height: 0;
  touch-action: none;
  cursor: grab;
  overflow: hidden;
  background-color: var(--theme-bg);
  background-image:
    linear-gradient(var(--border-subtle, rgba(255,255,255,0.04)) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle, rgba(255,255,255,0.04)) 1px, transparent 1px);
  background-size: 32px 32px;

}

.camera-studio-viewport:active {

  cursor: grabbing;

}

.camera-studio-canvas {

  display: block;
  width: 100%;
  height: 100%;

}

.camera-studio-axis,
.camera-studio-readout {

  position: absolute;
  z-index: 2;
  pointer-events: none;
  color: var(--theme-text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0;

}

.camera-studio-axis--yaw {

  left: 12px;
  bottom: 12px;

}

.camera-studio-axis--pitch {

  top: 12px;
  right: 12px;
  writing-mode: vertical-rl;

}

.camera-studio-readout {

  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 7px;
  border: 1px solid var(--theme-border);
  border-radius: 4px;
  background: color-mix(in srgb, var(--theme-surface) 82%, transparent);

}

.camera-studio-readout span {

  color: var(--cs-camera-accent);

}

.camera-studio-readout strong {

  color: var(--theme-text);
  font-weight: 600;

}

.camera-studio-focus-switch,
.camera-studio-mode,
.camera-studio-temperature {

  display: inline-flex;
  align-items: center;
  padding: 2px;
  border: 1px solid var(--theme-border);
  border-radius: 6px;
  background: var(--theme-card);

}

.camera-studio-focus-switch {

  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 3;
  transform: translateX(-50%);

}

.camera-studio-mode button,
.camera-studio-focus-switch button,
.camera-studio-temperature button {

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--theme-text-secondary);
  font-size: 11px;
  font-weight: 550;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;

}

.camera-studio-mode button:hover,
.camera-studio-focus-switch button:hover,
.camera-studio-temperature button:hover {

  color: var(--theme-text);

}

.camera-studio-mode button.is-active,
.camera-studio-focus-switch button.is-active,
.camera-studio-temperature button.is-active {

  color: var(--cs-camera-accent);
  background: var(--node-panorama-bg, rgba(6, 182, 212, 0.15));

}

.camera-studio-mode button.is-light,
.camera-studio-focus-switch button.is-light {

  color: var(--cs-light-accent);
  background: var(--warning-bg);

}

.camera-studio-prompt {

  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 6px 10px;
  min-height: 98px;
  padding: 12px 14px;
  border-top: 1px solid var(--theme-border);
  background: var(--theme-surface);

}

.camera-studio-prompt > div {

  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--theme-text-secondary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;

}

.camera-studio-prompt > div svg {

  color: var(--cs-camera-accent);

}

.camera-studio-prompt > div b {

  padding: 2px 5px;
  border-radius: 3px;
  background: var(--node-panorama-bg, rgba(6, 182, 212, 0.15));
  color: var(--cs-camera-accent);
  font-size: 9px;

}

.camera-studio-prompt > button {

  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--theme-border);
  border-radius: 5px;
  background: var(--theme-card);
  color: var(--theme-text-secondary);
  cursor: pointer;

}

.camera-studio-prompt > button:hover {

  color: var(--theme-text);
  background: var(--theme-hover);

}

.camera-studio-prompt p {

  grid-column: 1 / -1;
  max-height: 46px;
  margin: 0;
  overflow-y: auto;
  color: var(--theme-text-secondary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  line-height: 1.55;

}

.camera-studio-controls {

  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  min-height: 0;
  padding: 16px;
  overflow-y: auto;
  background: var(--theme-surface);

}

.camera-studio-section-title {

  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--theme-text);
  font-size: 12px;
  font-weight: 650;

}

.camera-studio-section-title svg {

  color: var(--cs-camera-accent);

}

.camera-studio-section-title.is-light svg {

  color: var(--cs-light-accent);

}

.camera-studio-presets {

  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;

}

.camera-studio-presets button {

  min-width: 0;
  min-height: 30px;
  padding: 5px 4px;
  border: 1px solid var(--theme-border);
  border-radius: 5px;
  background: var(--theme-card);
  color: var(--theme-text-secondary);
  font-size: 10px;
  white-space: normal;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;

}

.camera-studio-presets button:hover {

  border-color: var(--cs-camera-accent);
  color: var(--theme-text);
  background: var(--node-panorama-bg, rgba(6, 182, 212, 0.15));

}

.camera-studio-presets.is-light button:hover {

  border-color: var(--cs-light-accent);
  background: var(--warning-bg);

}

.camera-studio-range-grid {

  display: grid;
  gap: 12px;

}

.camera-studio-range {

  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  align-items: center;
  gap: 7px;

}

.camera-studio-range > span,
.camera-studio-select-grid label > span {

  color: var(--theme-text-secondary);
  font-size: 11px;

}

.camera-studio-range output {

  color: var(--theme-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  text-align: right;

}

.camera-studio-range input {

  grid-column: 1 / -1;
  width: 100%;
  height: 4px;
  margin: 0;
  appearance: none;
  border-radius: 2px;
  outline: 0;
  background: var(--theme-border);
  cursor: pointer;

}

.camera-studio-range input::-webkit-slider-thumb {

  width: 14px;
  height: 14px;
  appearance: none;
  border: 2px solid var(--theme-surface);
  border-radius: 50%;
  background: var(--cs-camera-accent);
  box-shadow: 0 0 0 1px var(--theme-border);

}

.camera-studio-range input::-moz-range-thumb {

  width: 12px;
  height: 12px;
  border: 2px solid var(--theme-surface);
  border-radius: 50%;
  background: var(--cs-camera-accent);

}

.camera-studio-select-grid {

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;

}

.camera-studio-select-grid label {

  display: grid;
  gap: 6px;

}

.camera-studio-select-grid select {

  width: 100%;
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid var(--theme-border);
  border-radius: 5px;
  outline: 0;
  background: var(--theme-card);
  color: var(--theme-text);
  font-size: 11px;

}

.camera-studio-select-grid select:focus {

  border-color: var(--cs-camera-accent);

}

.camera-studio-temperature {

  align-self: flex-start;

}

.camera-studio-toggle-row {

  display: flex;
  flex-wrap: wrap;
  gap: 16px;

}

.camera-studio-toggle {

  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--theme-text-secondary);
  font-size: 11px;
  cursor: pointer;

}

.camera-studio-toggle input {

  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--cs-camera-accent);

}

.camera-studio-actions {

  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--theme-border);

}

.camera-studio-reset,
.camera-studio-generate {

  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  border-radius: 6px;
  cursor: pointer;

}

.camera-studio-reset {

  width: 34px;
  border: 1px solid var(--theme-border);
  background: var(--theme-card);
  color: var(--theme-text-secondary);

}

.camera-studio-reset:hover {

  color: var(--theme-text);
  background: var(--theme-hover);

}

.camera-studio-generate {

  gap: 6px;
  padding: 0 14px;
  border: 1px solid var(--node-image-light, #4ade80);
  background: var(--node-image-bg, rgba(16, 185, 129, 0.15));
  color: var(--node-image-text, #34d399);
  font-size: 12px;
  font-weight: 650;

}

.camera-studio-generate:hover {

  background: color-mix(in srgb, var(--node-image-bg, rgba(16,185,129,0.15)) 65%, var(--theme-hover));

}

@media (max-width: 820px) {

  .camera-studio-overlay .fullscreen-panel {
    width: calc(100vw - 16px) !important;
    max-height: calc(100vh - 16px);
  }

  .camera-studio-overlay .fullscreen-header {
    align-items: flex-start;
    min-height: 76px;
    padding-right: 48px;
  }

  .camera-studio-overlay .fullscreen-header-extra {
    position: absolute;
    left: 10px;
    bottom: 7px;
    margin: 0;
  }

  .camera-studio-shell {
    display: block;
    height: calc(100vh - 92px);
    min-height: 0;
    overflow-y: auto;
  }

  .camera-studio-stage {
    grid-template-rows: 320px auto;
    border-right: 0;
    border-bottom: 1px solid var(--theme-border);
  }

  .camera-studio-controls {
    min-height: 430px;
    overflow: visible;
  }

}

@media (max-width: 480px) {

  .camera-studio-mode button {
    padding: 0 7px;
  }

  .camera-studio-stage {
    grid-template-rows: 270px auto;
  }

  .camera-studio-prompt {
    min-height: 112px;
  }

  .camera-studio-presets {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .camera-studio-controls {
    padding: 14px 12px;
  }

}

@media (prefers-reduced-motion: reduce) {

  .camera-studio-mode button,
  .camera-studio-focus-switch button,
  .camera-studio-presets button {
    transition: none;
  }

}

.anim-btn {

  transition: transform var(--dur-fast, 0.15s) var(--ease-out-quart, ease-out);

}

.anim-btn:hover:not(:disabled) {

  transform: scale(var(--anim-hover-scale, 1.04));

}

.anim-btn:active:not(:disabled) {

  transform: scale(var(--anim-tap-scale, 0.96));

}


/* ==========================================================================
   Composer 参考图浮动工具栏
   淡入淡出：容器级 opacity 过渡（双向均顺滑）；背景适配 Composer 玻璃色（#141414）。
   ========================================================================== */
.client-ref-toolbar {
  position: absolute;
  top: -42px;
  left: 50%;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 1px;
  padding: 4px 6px;
  white-space: nowrap;
  /* 与 Composer 面板同色同质（page.tsx: bg-[#141414]/75 + backdrop-blur-xl + border-white/10） */
  background: rgba(20, 20, 28, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(6px);
  transform-origin: center bottom;
  transition:
    opacity 200ms var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)),
    transform 200ms var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)),
    visibility 0s linear 1000ms;
  pointer-events: none;
}

.group:hover .client-ref-toolbar {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
  /* 覆盖基态 transition：显示方向立即翻转 visibility（否则 1s 延迟会拖慢出现）；
     1s 延迟只在离开 hover 时生效（那时回到基态 transition） */
  transition:
    opacity 200ms var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)),
    transform 200ms var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)),
    visibility 0s;
}

/* hover 裙边：挂在工具栏下缘的透明命中区，鼠标从缩略图移向工具栏时保持 hover。
   裙边继承工具栏的 pointer-events（hover 时可命中、淡出后立即可穿透）与 z-index:30，
   命中区宽度 = 工具栏宽度，与邻图命中区零重叠。
   旧方案是缩略图上方 176px 宽的"桥"，而相邻缩略图中心距仅 72px（64px 图 + 8px gap），
   相邻桥重叠 104px；同层级下 DOM 靠后者优先命中 → hover 桥/工具栏时常误中
   右邻图的桥、弹出右邻图的工具栏。 */
.client-ref-toolbar::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  /* 工具栏底(-6px)与缩略图顶(0)之间 6px 空隙封死，+2px 余量；
     不再加高——移动箭头从 top:3px 起，裙边过长会挡住箭头上半段点击 */
  height: 8px;
}

.client-ref-toolbar-btn {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 6px;
  color: var(--theme-text-secondary, #8888a0);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: color 150ms, background 150ms;
}
.client-ref-toolbar-btn:hover {
  color: var(--theme-text, #dddde4);
  background: rgba(255, 255, 255, 0.1);
}

.client-ref-toolbar-sep {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 4px;
  flex-shrink: 0;
}

/* 移动箭头按钮：hover 出现，定位在缩略图上缘左右角（玻璃底，跟随缩略图动效）。
   hover 时仅略微放大箭头图标，不加高亮背景。 */
.client-ref-move {
  position: absolute;
  top: 3px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  color: #fff;
  background: rgba(20, 20, 28, 0.75);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  /* 与工具栏同款入场节奏：同时长/同缓动/同 6px 下滑，保证两者同步显现 */
  transform: translateY(6px);
  transition:
    opacity 200ms var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)),
    transform 200ms var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
}
.client-ref-move svg {
  transition: transform 150ms var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
}
.client-ref-move:hover svg {
  transform: scale(1.15);
}
.client-ref-move--left {
  left: 3px;
}
.client-ref-move--right {
  right: 3px;
}
.group:hover .client-ref-move {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  /* 与工具栏一致：显示方向无额外延迟（箭头消失延迟由基态 transition 的 200ms 承担） */
  transition:
    opacity 200ms var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)),
    transform 200ms var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
}

/* 删除按钮：红底 */
.client-ref-toolbar-btn.client-ref-delete {
  background: rgba(239, 68, 68, 0.92);
  color: #fff;
}
.client-ref-toolbar-btn.client-ref-delete:hover {
  background: rgba(248, 113, 113, 0.95);
  color: #fff;
}
