/* Dramily 主题层：只覆盖设计变量，不改任何组件结构。
 * 原前端是 Tailwind v4，颜色全走 --color-<色名>-<档位> 变量，
 * 所以把 cyan/teal/sky 三组重映射成 Dramily 的玫红/紫，整个界面的强调色就换了。
 * 令牌取自 dramily.com（--primary #e8318b，暗色底 #08080a / 卡片 #151216 / 边框 #2a242a）。
 */
/* ═════════ 字体：Geist（OFL，自托管，随 rebrand 拷进 assets/，不依赖外网）═════════ */
@font-face { font-family: "Geist Variable"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("./geist-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Variable"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("./geist-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* 强调色：cyan → Dramily 玫红 */
  --color-cyan-50: #fff0f7;  --color-cyan-100: #ffe0ef; --color-cyan-200: #ffc2de;
  --color-cyan-300: #ffb7d8; --color-cyan-400: #f0559f; --color-cyan-500: #e8318b;
  --color-cyan-600: #c9206f; --color-cyan-700: #9c1558; --color-cyan-800: #7a1146;
  --color-cyan-900: #68113a; --color-cyan-950: #3a1328;
  /* 渐变副色：teal → 紫（官网图表色 --chart-2） */
  --color-teal-50: #f5f3ff;  --color-teal-100: #ede9fe; --color-teal-200: #ddd6fe;
  --color-teal-300: #c4b5fd; --color-teal-400: #a78bfa; --color-teal-500: #8b5cf6;
  --color-teal-600: #7c3aed; --color-teal-700: #6d28d9; --color-teal-800: #5b21b6;
  --color-teal-900: #4c1d95; --color-teal-950: #2e1065;
  /* 剪辑工作区的强调色原为 emerald 绿 → 紫，使三个工作区同属一个品牌色系
     （状态类的绿用的是 green/#22c55e/#4ade80，不受影响） */
  --color-emerald-50: #f5f3ff; --color-emerald-100: #ede9fe; --color-emerald-200: #ddd6fe;
  --color-emerald-300: #c4b5fd; --color-emerald-400: #a78bfa; --color-emerald-500: #8b5cf6;
  --color-emerald-600: #7c3aed; --color-emerald-700: #6d28d9; --color-emerald-800: #5b21b6;
  --color-emerald-900: #4c1d95; --color-emerald-950: #2e1065;
  /* 主操作按钮常用的 blue-600/700（如时间线吸附开关）→ 品牌玫红；信息类的浅蓝 400/500 不动 */
  --color-blue-600: #c9206f; --color-blue-700: #9c1558;
  /* sky 同样并入紫，避免冷色蓝突兀 */
  --color-sky-50: #f5f3ff;   --color-sky-100: #ede9fe;  --color-sky-200: #ddd6fe;
  --color-sky-300: #c4b5fd;  --color-sky-400: #a78bfa;  --color-sky-500: #8b5cf6;
  --color-sky-600: #7c3aed;  --color-sky-700: #6d28d9;  --color-sky-800: #5b21b6;
  --color-sky-900: #4c1d95;  --color-sky-950: #2e1065;

  /* 节点面板的暗色底：由冷灰蓝改成官网的暖紫黑 */
  --node-surface-1: 21 18 22; --node-surface-2: 16 14 18; --node-surface-3: 10 8 12;
  --node-header-1: 42 36 42;  --node-header-2: 29 26 30;  --node-header-3: 21 18 22;

  /* 圆角：与官网 --radius .75rem 对齐，整体更圆润（组件用的是 Tailwind 的 --radius-* 变量） */
  --radius-md: .5rem; --radius-lg: .75rem; --radius-xl: 1rem; --radius-2xl: 1.25rem; --radius-3xl: 1.75rem;

  /* 官网同名令牌，供后续自定义组件使用 */
  --dm-bg: #08080a; --dm-card: #151216; --dm-border: #2a242a; --dm-muted: #1d1a1e;
  --dm-primary: #e8318b; --dm-accent: #3a1328; --dm-accent-fg: #ffb7d8;
  --dm-radius: .75rem;
  /* Tailwind 的字体变量：按钮、输入框等元素走的是 --font-sans / --default-font-family，不是 body 上写的字体 */
  --font-sans: "Geist Variable", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
  --default-font-family: var(--font-sans);

  /* 中性灰阶：Tailwind 的 gray / slate / zinc 原本偏蓝灰，统一带一点暖紫色调（明度档位不变，只改色相与极低的彩度） */
  --color-gray-50: oklch(.985 .004 300);  --color-gray-100: oklch(.965 .006 300); --color-gray-200: oklch(.92 .008 300);
  --color-gray-300: oklch(.87 .01 300);   --color-gray-400: oklch(.71 .014 300);  --color-gray-500: oklch(.56 .016 300);
  --color-gray-600: oklch(.45 .018 300);  --color-gray-700: oklch(.37 .018 300);  --color-gray-800: oklch(.275 .016 300);
  --color-gray-900: oklch(.21 .014 300);  --color-gray-950: oklch(.145 .012 300);
  --color-slate-50: var(--color-gray-50);   --color-slate-100: var(--color-gray-100); --color-slate-200: var(--color-gray-200);
  --color-slate-300: var(--color-gray-300); --color-slate-400: var(--color-gray-400); --color-slate-500: var(--color-gray-500);
  --color-slate-600: var(--color-gray-600); --color-slate-700: var(--color-gray-700); --color-slate-800: var(--color-gray-800);
  --color-slate-900: var(--color-gray-900); --color-slate-950: var(--color-gray-950);
  --color-zinc-50: var(--color-gray-50);   --color-zinc-100: var(--color-gray-100); --color-zinc-200: var(--color-gray-200);
  --color-zinc-300: var(--color-gray-300); --color-zinc-400: var(--color-gray-400); --color-zinc-500: var(--color-gray-500);
  --color-zinc-600: var(--color-gray-600); --color-zinc-700: var(--color-gray-700); --color-zinc-800: var(--color-gray-800);
  --color-zinc-900: var(--color-gray-900); --color-zinc-950: var(--color-gray-950);
  --color-neutral-50: var(--color-gray-50);   --color-neutral-100: var(--color-gray-100); --color-neutral-200: var(--color-gray-200);
  --color-neutral-300: var(--color-gray-300); --color-neutral-400: var(--color-gray-400); --color-neutral-500: var(--color-gray-500);
  --color-neutral-600: var(--color-gray-600); --color-neutral-700: var(--color-gray-700); --color-neutral-800: var(--color-gray-800);
  --color-neutral-900: var(--color-gray-900); --color-neutral-950: var(--color-gray-950);

  /* 设计令牌：层级 / 描边 / 阴影 / 动效（新增样式一律引用这些，不再各写各的） */
  --dm-surface-1: #151216; --dm-surface-2: #1a171b; --dm-surface-3: #221d23;
  --dm-line: rgba(255, 255, 255, .08); --dm-line-strong: rgba(255, 255, 255, .16);
  --dm-grad: linear-gradient(135deg, #e8318b 0%, #c026a3 55%, #8b5cf6 100%);
  --dm-glow: 0 0 0 1px rgba(232, 49, 139, .35), 0 0 24px rgba(232, 49, 139, .18);
  --dm-shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
  --dm-shadow-2: 0 8px 24px rgba(0, 0, 0, .38), 0 2px 6px rgba(0, 0, 0, .3);
  --dm-shadow-3: 0 24px 64px rgba(0, 0, 0, .55), 0 6px 16px rgba(0, 0, 0, .35);
  --dm-ease: cubic-bezier(.2, .8, .2, 1);
}

body { background-color: var(--dm-bg); font-family: "Geist Variable", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
::selection { background: rgba(232, 49, 139, .35); }
:focus-visible { outline-color: #e8318b; }

/* ═════════ 布局层（纯 CSS，用稳定 class 定位，不改组件结构） ═════════ */

/* 编辑器顶栏：贴边直条 → 悬浮玻璃胶囊条；工作区切换改成渐变胶囊分段控件 */
.editor-header-bar {
  margin: 8px 12px 0;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  background: rgba(21, 18, 22, .78);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.editor-header-bar > ul {
  border-radius: 999px; height: 38px; padding: 3px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06);
}
.editor-header-bar > ul > li { border-radius: 999px; height: 32px; color: #b8adb5; }
.editor-header-bar > ul > li:hover { background: rgba(255, 255, 255, .06); }
.editor-header-bar > ul > li.bg-black {
  background: linear-gradient(135deg, #e8318b 0%, #b0309f 60%, #8b5cf6 100%);
  box-shadow: 0 4px 16px rgba(232, 49, 139, .38);
}
.editor-header-bar > ul > li.bg-black span { color: #fff; }
.editor-header-bar > ul > li span { font-size: 14px; }
.editor-header-bar > div:first-child > button { border-radius: 999px; background: rgba(255, 255, 255, .05); }

/* 项目页（/workspace）：横幅改成带光晕的个人名片，Tab 改胶囊，卡片更大圆角 + 悬浮抬升 */
[class*="workspace_bg.svg"] {
  background-image: radial-gradient(120% 140% at 0% 0%, rgba(232, 49, 139, .22) 0%, transparent 55%),
                    radial-gradient(90% 120% at 100% 100%, rgba(139, 92, 246, .20) 0%, transparent 60%),
                    linear-gradient(180deg, #1a151a, #151216) !important;
  border: 1px solid rgba(255, 255, 255, .08); border-radius: 1.25rem !important;
  box-shadow: 0 12px 40px rgba(232, 49, 139, .08);
}
div.mt-6.border-b.border-gray-700 { border: 0; gap: .5rem; margin-top: 1.5rem; }
div.mt-6.border-b.border-gray-700 > button {
  padding: .5rem 1rem; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06);
}
div.mt-6.border-b.border-gray-700 > button.text-white { background: rgba(232, 49, 139, .16); border-color: rgba(232, 49, 139, .5); color: #ffb7d8; }
div.mt-6.border-b.border-gray-700 > button > div.absolute { display: none; }
div.mt-4.mb-2 > button { border-radius: 999px; }
div.mt-4.mb-2 > button.bg-white\/10 { background: rgba(232, 49, 139, .16); color: #ffb7d8; }
div.mt-4.mb-2 input, div.mt-4.mb-2 button.h-8 { border-radius: 999px; background: #151216; border-color: #2a242a; }
div.grid[class*="grid-cols-[repeat(auto-fill"] { gap: 1rem; }
div.grid[class*="grid-cols-[repeat(auto-fill"] > .group {
  border-radius: 1.25rem; border: 1px solid rgba(255, 255, 255, .06); background: #151216;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
div.grid[class*="grid-cols-[repeat(auto-fill"] > .group:hover {
  border-color: rgba(232, 49, 139, .55); box-shadow: 0 14px 36px rgba(232, 49, 139, .18);
}
div.grid[class*="grid-cols-[repeat(auto-fill"] > .group.border-2 { border-style: dashed; border-width: 2px; border-color: rgba(255, 255, 255, .14); background: transparent; }
div.grid[class*="grid-cols-[repeat(auto-fill"] > .group.border-2:hover { border-color: #e8318b; background: rgba(232, 49, 139, .06); }
div.mt-4.mb-2 button, div.mt-4.mb-2 input { white-space: nowrap; }
div.mt-4.mb-2 > button { padding-left: 1rem; padding-right: 1rem; }

/* 画布底部工具坞 / 左下角缩放条：玻璃质感 + 品牌光晕 */
div.fixed.bottom-4.-translate-x-1\/2 > div.rounded-full,
div.fixed.bottom-3 > div.rounded-full {
  background: rgba(21, 18, 22, .78) !important; border-color: rgba(255, 255, 255, .1) !important;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .45), 0 0 0 1px rgba(232, 49, 139, .08);
}

/* ═════ 剪辑预览区：把全屏拼接的三栏 + 时间线改成「留缝隙的圆角卡片」 ═════
 * 只加 padding / gap / 圆角 / 边框，不改 flex 结构，面板拖拽缩放与预览尺寸计算不受影响。
 * 用 :has(> div.z-20) 限定在剪辑区（其他两个工作区没有这个结构）。 */
.editor-header-bar + div > div.flex-col.h-full:has(> div.z-20) {
  padding: 8px 12px 12px; gap: 8px;
}
.editor-header-bar + div > div.flex-col.h-full:has(> div.z-20) > div.flex-1.flex.min-h-0 { gap: 8px; }
/* 左：项目列表 + 素材库；右：预览 + 属性 */
.editor-header-bar + div > div.flex-col.h-full:has(> div.z-20) > div.flex-1.flex.min-h-0 > div.shrink-0.relative,
.editor-header-bar + div > div.flex-col.h-full:has(> div.z-20) > div.flex-1.flex.min-h-0 > div.flex-1.flex-col > div.flex > div,
.editor-header-bar + div > div.flex-col.h-full:has(> div.z-20) > div.z-20 > div.border-t {
  border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px; overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .3);
}
.editor-header-bar + div > div.flex-col.h-full:has(> div.z-20) > div.flex-1.flex.min-h-0 > div.flex-1.flex-col { background: transparent; }
.editor-header-bar + div > div.flex-col.h-full:has(> div.z-20) > div.flex-1.flex.min-h-0 > div.flex-1.flex-col > div.flex { gap: 8px; }
/* 素材库左侧图标栏：选中项改成玫红胶囊 */
.editor-header-bar + div > div.flex-col.h-full:has(> div.z-20) div.py-3.gap-1.border-r > button { border-radius: 12px; }
.editor-header-bar + div > div.flex-col.h-full:has(> div.z-20) div.py-3.gap-1.border-r > button.text-white {
  background: rgba(232, 49, 139, .16); color: #ffb7d8; box-shadow: inset 0 0 0 1px rgba(232, 49, 139, .4);
}

/* ═════ 编辑器顶栏细化 ═════ */
/* 1) 三个工作区 Tab 图标：换成线性图标（画布=节点流、剪辑=场记板、审阅=认证徽章）。<img> 用 content 替换，未选中偏灰、选中纯白 */
.editor-header-bar > ul > li > img { width: 18px; height: 18px; }
.editor-header-bar > ul > li:nth-child(1) > img { content: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23b8adb5%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20width%3D%228%22%20height%3D%228%22%20x%3D%223%22%20y%3D%223%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M7%2011v4a2%202%200%200%200%202%202h4%22%2F%3E%3Crect%20width%3D%228%22%20height%3D%228%22%20x%3D%2213%22%20y%3D%2213%22%20rx%3D%222%22%2F%3E%3C%2Fsvg%3E"); }
.editor-header-bar > ul > li:nth-child(2) > img { content: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23b8adb5%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20.2%206%203%2011l-.9-2.4c-.3-1.1.3-2.2%201.3-2.5l13.5-4c1.1-.3%202.2.3%202.5%201.3Z%22%2F%3E%3Cpath%20d%3D%22m6.2%205.3%203.1%203.9%22%2F%3E%3Cpath%20d%3D%22m12.4%203.4%203.1%204%22%2F%3E%3Cpath%20d%3D%22M3%2011h18v8a2%202%200%200%201-2%202H5a2%202%200%200%201-2-2Z%22%2F%3E%3C%2Fsvg%3E"); }
.editor-header-bar > ul > li:nth-child(3) > img { content: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23b8adb5%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3.85%208.62a4%204%200%200%201%204.78-4.77%204%204%200%200%201%206.74%200%204%204%200%200%201%204.78%204.78%204%204%200%200%201%200%206.74%204%204%200%200%201-4.77%204.78%204%204%200%200%201-6.75%200%204%204%200%200%201-4.78-4.77%204%204%200%200%201%200-6.76Z%22%2F%3E%3Cpath%20d%3D%22m9%2012%202%202%204-4%22%2F%3E%3C%2Fsvg%3E"); }
.editor-header-bar > ul > li.bg-black:nth-child(1) > img { content: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20width%3D%228%22%20height%3D%228%22%20x%3D%223%22%20y%3D%223%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M7%2011v4a2%202%200%200%200%202%202h4%22%2F%3E%3Crect%20width%3D%228%22%20height%3D%228%22%20x%3D%2213%22%20y%3D%2213%22%20rx%3D%222%22%2F%3E%3C%2Fsvg%3E"); }
.editor-header-bar > ul > li.bg-black:nth-child(2) > img { content: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20.2%206%203%2011l-.9-2.4c-.3-1.1.3-2.2%201.3-2.5l13.5-4c1.1-.3%202.2.3%202.5%201.3Z%22%2F%3E%3Cpath%20d%3D%22m6.2%205.3%203.1%203.9%22%2F%3E%3Cpath%20d%3D%22m12.4%203.4%203.1%204%22%2F%3E%3Cpath%20d%3D%22M3%2011h18v8a2%202%200%200%201-2%202H5a2%202%200%200%201-2-2Z%22%2F%3E%3C%2Fsvg%3E"); }
.editor-header-bar > ul > li.bg-black:nth-child(3) > img { content: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3.85%208.62a4%204%200%200%201%204.78-4.77%204%204%200%200%201%206.74%200%204%204%200%200%201%204.78%204.78%204%204%200%200%201%200%206.74%204%204%200%200%201-4.77%204.78%204%204%200%200%201-6.75%200%204%204%200%200%201-4.78-4.77%204%204%200%200%201%200-6.76Z%22%2F%3E%3Cpath%20d%3D%22m9%2012%202%202%204-4%22%2F%3E%3C%2Fsvg%3E"); }

/* 2) 同步状态正常色 → 绿（状态语义色，不随品牌色走） */
.editor-header-bar span[class*="bg-emerald"] { background-color: #22c55e; }
.editor-header-bar span[class*="text-emerald"] { color: #4ade80; }

/* 3) 头像移到最右侧 */
.editor-header-bar > div:last-of-type > div.\-space-x-2 { order: 10; }

/* 4) 积分图标：钻石 → 闪电；分享 → 链接；下载 → 向下箭头。隐藏原 svg，用 mask 画 currentColor 图标 */
.editor-header-bar > div:last-of-type button:has(> svg + span.tabular-nums) > svg,
.editor-header-bar > div:last-of-type > div.gap-3 > button > svg { display: none; }
.editor-header-bar > div:last-of-type button:has(> svg + span.tabular-nums)::before,
.editor-header-bar > div:last-of-type > div.gap-3 > button::before {
  content: ""; display: block; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: var(--dm-ico) center / contain no-repeat; mask: var(--dm-ico) center / contain no-repeat;
}
.editor-header-bar > div:last-of-type button:has(> svg + span.tabular-nums)::before { --dm-ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2014a1%201%200%200%201-.78-1.63l9.9-10.2a.5.5%200%200%201%20.86.46l-1.92%206.02A1%201%200%200%200%2013%2010h7a1%201%200%200%201%20.78%201.63l-9.9%2010.2a.5.5%200%200%201-.86-.46l1.92-6.02A1%201%200%200%200%2011%2014z%22%2F%3E%3C%2Fsvg%3E"); color: #ff7ab8; }
.editor-header-bar > div:last-of-type > div.gap-3 > button:nth-of-type(1)::before { --dm-ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M9%2017H7A5%205%200%200%201%207%207h2%22%2F%3E%3Cpath%20d%3D%22M15%207h2a5%205%200%201%201%200%2010h-2%22%2F%3E%3Cline%20x1%3D%228%22%20x2%3D%2216%22%20y1%3D%2212%22%20y2%3D%2212%22%2F%3E%3C%2Fsvg%3E"); }
.editor-header-bar > div:last-of-type > div.gap-3 > button:nth-of-type(2)::before { --dm-ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%2017V3%22%2F%3E%3Cpath%20d%3D%22m6%2011%206%206%206-6%22%2F%3E%3Cpath%20d%3D%22M19%2021H5%22%2F%3E%3C%2Fsvg%3E"); }

/* 5) 分享 / 下载按钮：去掉渐变描边和渐变填充，与积分按钮同款（半透明灰底 + 细灰边） */
.editor-header-bar > div:last-of-type > div.gap-3 > button {
  background: rgba(64, 64, 64, .5) !important; background-image: none !important;
  border: 1px solid rgba(82, 82, 82, .5) !important; height: 34px; border-radius: 12px; color: #f8f5f7;
}
.editor-header-bar > div:last-of-type > div.gap-3 > button:hover { background: rgba(82, 82, 82, .5) !important; opacity: 1; }

/* ═════ 节点外观（所有画布节点）═════
 * 原样式：头部横向渐变 + 左侧 4px 加粗竖线 + 高光扫光。
 * 新样式：「顶部色带卡片」——节点四周圆角，头部是一条贴顶的分类色带 + 淡色染底，
 *         去掉左侧竖线和扫光；选中/悬停的边框改成该分类自己的双色渐变（原来是固定的 蓝→粉→绿）。
 * 分类色仍取自节点自带的 --node-accent / --node-accent-2，所以与「节点库」里同类图标颜色一一对应。 */
.react-flow__node .node-container { border-radius: 16px; }
.react-flow__node .node-container > div:first-child:not(.absolute) {
  /* 色带用「背景层」而不是 inset box-shadow：画布平移/点击/拖拽时原版会对头部强制 box-shadow:none（性能模式），
     用 box-shadow 画的色带会在那一瞬间消失再出现；背景层不受影响 */
  background: linear-gradient(rgb(var(--node-accent)), rgb(var(--node-accent))) top / 100% 3px no-repeat,
              linear-gradient(180deg, rgb(var(--node-accent) / .20), rgb(var(--node-accent) / .07)) !important;
  border-bottom: 1px solid rgb(var(--node-accent) / .22) !important;
}
.react-flow__node .node-container > div:first-child:not(.absolute)::before,
.react-flow__node .node-container > div:first-child:not(.absolute)::after { display: none !important; }
.react-flow__node:not(.dragging):hover .node-container,
.react-flow__node.selected .node-container,
body.is-node-dragging .react-flow__node:hover .node-container {
  background: linear-gradient(#151216, #151216) padding-box,
              linear-gradient(135deg, rgb(var(--node-accent-2)), rgb(var(--node-accent))) border-box !important;
}
.react-flow__node.selected .node-container {
  box-shadow: 0 0 0 1px rgb(var(--node-accent) / .35), 0 8px 30px rgb(var(--node-accent) / .28) !important;
}

/* 节点库菜单里与节点色不一致的图标：3D 改橙（3D 节点是橙），视觉风格改品红（风格节点是品红） */
svg.lucide-box.text-\[\#c9206f\] { color: #f97316; }
svg.lucide-palette.text-\[\#a855f7\] { color: #d946ef; }
button:has(> svg.lucide-box.text-\[\#c9206f\]):hover { background: rgba(249, 115, 22, .1); }
button:has(> svg.lucide-palette.text-\[\#a855f7\]):hover { background: rgba(217, 70, 239, .1); }
.editor-header-bar > ul > li span { white-space: nowrap; }

/* 选中态的头部：原版给「选中」单独写了一条更高优先级的头部样式（横向渐变+竖线），会盖掉上面的色带，这里同级别覆盖回来 */
.react-flow__node.selected .node-container > div:first-child:not(.absolute) {
  background: linear-gradient(rgb(var(--node-accent)), rgb(var(--node-accent))) top / 100% 3px no-repeat,
              linear-gradient(180deg, rgb(var(--node-accent) / .28), rgb(var(--node-accent) / .10)) !important;
  border-bottom: 1px solid rgb(var(--node-accent) / .3) !important;
}
.react-flow__node.selected .node-container > div:first-child:not(.absolute)::before,
.react-flow__node.selected .node-container > div:first-child:not(.absolute)::after { display: none !important; }

/* ═════ 节点标题图标 / 分类色（第二轮）═════
 * 1) 原版每个节点的标题图标各用各的颜色（橡皮擦绿、画笔玫瑰、数据库蓝、闪电橙…），与头部分类色不一致。
 *    统一成该节点自己的浅色强调色，图标和色带永远同色。
 * 2) 个别图标语义不贴切的换掉：调色=滑杆、图像编辑=钢笔、LUT 对比=分栏、批量任务=清单勾选。
 *    其余（文本 T、视频、音频喇叭、麦克风、3D 场记板、相机旋转、画刷、地球、书本…）本身合适，不动。
 * 3) 系列风格迁移节点原版没有分类色（灰），给它天蓝（图片已改紫、画面中不再有蓝，用它区分系列节点）。 */
.react-flow__node .node-title-icon { color: rgb(var(--node-accent-2)) !important; filter: none !important; }
.react-flow__node-videoSeriesNode .node-container {
  --node-accent: 14 165 233; --node-accent-2: 125 211 252;
  --node-surface-1: 16 28 40; --node-surface-2: 11 17 24; --node-surface-3: 8 11 16;
  --node-header-1: 22 66 100; --node-header-2: 20 46 70; --node-header-3: 17 30 44;
}
.react-flow__node-imageColorGradeNode .node-title:has(> .node-title-icon) > .node-title-icon { display: none !important; }
.react-flow__node-imageColorGradeNode .node-title:has(> .node-title-icon)::before {
  content: ""; flex: none; width: 14px; height: 14px; background: rgb(var(--node-accent-2));
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cline%20x1%3D%2221%22%20x2%3D%2214%22%20y1%3D%224%22%20y2%3D%224%22%2F%3E%3Cline%20x1%3D%2210%22%20x2%3D%223%22%20y1%3D%224%22%20y2%3D%224%22%2F%3E%3Cline%20x1%3D%2221%22%20x2%3D%2212%22%20y1%3D%2212%22%20y2%3D%2212%22%2F%3E%3Cline%20x1%3D%228%22%20x2%3D%223%22%20y1%3D%2212%22%20y2%3D%2212%22%2F%3E%3Cline%20x1%3D%2221%22%20x2%3D%2216%22%20y1%3D%2220%22%20y2%3D%2220%22%2F%3E%3Cline%20x1%3D%2212%22%20x2%3D%223%22%20y1%3D%2220%22%20y2%3D%2220%22%2F%3E%3Cline%20x1%3D%2214%22%20x2%3D%2214%22%20y1%3D%222%22%20y2%3D%226%22%2F%3E%3Cline%20x1%3D%228%22%20x2%3D%228%22%20y1%3D%2210%22%20y2%3D%2214%22%2F%3E%3Cline%20x1%3D%2216%22%20x2%3D%2216%22%20y1%3D%2218%22%20y2%3D%2222%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cline%20x1%3D%2221%22%20x2%3D%2214%22%20y1%3D%224%22%20y2%3D%224%22%2F%3E%3Cline%20x1%3D%2210%22%20x2%3D%223%22%20y1%3D%224%22%20y2%3D%224%22%2F%3E%3Cline%20x1%3D%2221%22%20x2%3D%2212%22%20y1%3D%2212%22%20y2%3D%2212%22%2F%3E%3Cline%20x1%3D%228%22%20x2%3D%223%22%20y1%3D%2212%22%20y2%3D%2212%22%2F%3E%3Cline%20x1%3D%2221%22%20x2%3D%2216%22%20y1%3D%2220%22%20y2%3D%2220%22%2F%3E%3Cline%20x1%3D%2212%22%20x2%3D%223%22%20y1%3D%2220%22%20y2%3D%2220%22%2F%3E%3Cline%20x1%3D%2214%22%20x2%3D%2214%22%20y1%3D%222%22%20y2%3D%226%22%2F%3E%3Cline%20x1%3D%228%22%20x2%3D%228%22%20y1%3D%2210%22%20y2%3D%2214%22%2F%3E%3Cline%20x1%3D%2216%22%20x2%3D%2216%22%20y1%3D%2218%22%20y2%3D%2222%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; /* sliders-horizontal */
}
.react-flow__node-imageRefinerNode .node-title:has(> .node-title-icon) > .node-title-icon { display: none !important; }
.react-flow__node-imageRefinerNode .node-title:has(> .node-title-icon)::before {
  content: ""; flex: none; width: 14px; height: 14px; background: rgb(var(--node-accent-2));
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M15.707%2021.293a1%201%200%200%201-1.414%200l-1.586-1.586a1%201%200%200%201%200-1.414l5.586-5.586a1%201%200%200%201%201.414%200l1.586%201.586a1%201%200%200%201%200%201.414z%22%2F%3E%3Cpath%20d%3D%22m18%2013-1.375-6.874a1%201%200%200%200-.746-.776L3.235%202.028a1%201%200%200%200-1.207%201.207L5.35%2015.879a1%201%200%200%200%20.776.746L13%2018%22%2F%3E%3Cpath%20d%3D%22m2.3%202.3%207.286%207.286%22%2F%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M15.707%2021.293a1%201%200%200%201-1.414%200l-1.586-1.586a1%201%200%200%201%200-1.414l5.586-5.586a1%201%200%200%201%201.414%200l1.586%201.586a1%201%200%200%201%200%201.414z%22%2F%3E%3Cpath%20d%3D%22m18%2013-1.375-6.874a1%201%200%200%200-.746-.776L3.235%202.028a1%201%200%200%200-1.207%201.207L5.35%2015.879a1%201%200%200%200%20.776.746L13%2018%22%2F%3E%3Cpath%20d%3D%22m2.3%202.3%207.286%207.286%22%2F%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; /* pen-tool */
}
.react-flow__node-lutCompareNode .node-title:has(> .node-title-icon) > .node-title-icon { display: none !important; }
.react-flow__node-lutCompareNode .node-title:has(> .node-title-icon)::before {
  content: ""; flex: none; width: 14px; height: 14px; background: rgb(var(--node-accent-2));
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20width%3D%2218%22%20height%3D%2218%22%20x%3D%223%22%20y%3D%223%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M12%203v18%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20width%3D%2218%22%20height%3D%2218%22%20x%3D%223%22%20y%3D%223%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M12%203v18%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; /* columns-2 */
}
.react-flow__node-batchProcessorNode .node-title:has(> .node-title-icon) > .node-title-icon { display: none !important; }
.react-flow__node-batchProcessorNode .node-title:has(> .node-title-icon)::before {
  content: ""; flex: none; width: 14px; height: 14px; background: rgb(var(--node-accent-2));
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m3%2017%202%202%204-4%22%2F%3E%3Cpath%20d%3D%22m3%207%202%202%204-4%22%2F%3E%3Cpath%20d%3D%22M13%206h8%22%2F%3E%3Cpath%20d%3D%22M13%2012h8%22%2F%3E%3Cpath%20d%3D%22M13%2018h8%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m3%2017%202%202%204-4%22%2F%3E%3Cpath%20d%3D%22m3%207%202%202%204-4%22%2F%3E%3Cpath%20d%3D%22M13%206h8%22%2F%3E%3Cpath%20d%3D%22M13%2012h8%22%2F%3E%3Cpath%20d%3D%22M13%2018h8%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; /* list-checks */
}

/* 窄窗口（<1100px）：顶栏收起「Work Space」文字与同步状态，避免标签互相重叠 */
@media (max-width: 1100px) {
  .editor-header-bar > div:first-child > button > span { display: none; }
  .editor-header-bar > div:last-of-type > div.px-3.h-8 { display: none; }
}

/* 节点内空状态的大图标：原版写死了别的颜色（LUT 琥珀、调色品红、系列青），统一跟随该节点的强调色 */
.react-flow__node-lutCompareNode .node-container svg[class*="text-amber-"],
.react-flow__node-imageColorGradeNode .node-container svg[class*="text-fuchsia-"],
.react-flow__node-batchProcessorNode .node-container svg[class*="text-blue-"],
.react-flow__node-videoSeriesNode .node-container svg[class*="text-cyan-"] { color: rgb(var(--node-accent-2) / .75); }

/* 节点库菜单图标 ↔ 节点颜色对齐（第二轮）：
 * 上传（默认图片类，节点是紫）、批量生成（节点在图片组，是紫）的菜单图标原为蓝/橙，改成与节点一致的紫 */
svg.lucide-upload.text-\[\#3b82f6\] { color: #8b5cf6; }
svg.lucide-zap.text-\[\#f97316\] { color: #8b5cf6; }
button:has(> svg.lucide-upload.text-\[\#3b82f6\]):hover,
button:has(> svg.lucide-zap.text-\[\#f97316\]):hover { background: rgba(139, 92, 246, .1); }

/* 节点内右下角的「发送」纸飞机（Send）→ 向上箭头（提交/发送的通用图标），颜色仍跟随按钮文字色。
 * 用 mask 画在 svg 元素自身上，保留原有的尺寸与 class，不需要改组件。 */
.node-container svg.lucide-send,
/* 节点下方弹出的属性面板（镜头角度、抠像、深度等）里的圆形发送按钮不在 .node-container 内 */
button[class*="rounded-full"] > svg.lucide-send {
  background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m5%2012%207-7%207%207%22%2F%3E%3Cpath%20d%3D%22M12%2019V5%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m5%2012%207-7%207%207%22%2F%3E%3Cpath%20d%3D%22M12%2019V5%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
}
.node-container svg.lucide-send > *,
button[class*="rounded-full"] > svg.lucide-send > * { display: none; }

/* ═════ 文本节点（Text Node）═════
 * 「稿纸」风格：琥珀色带头部 + 胶囊倍率切换 + 圆角编辑区，聚焦时整块编辑区亮起琥珀描边；
 * 正文加大到 13px、行高 1.75，更适合长文本阅读。 */
.react-flow__node-textNode .node-container { background: #120f13; border-color: rgb(var(--node-accent) / .28); }
.react-flow__node-textNode .node-title-text {
  font-size: 12px; font-weight: 700; letter-spacing: .02em; color: #fde68a;
}
/* 1X / 2X / 3X：胶囊分段 */
.react-flow__node-textNode [class*="border-amber-300/15"] {
  border-radius: 999px; padding: 2px; background: rgb(var(--node-accent) / .08); border-color: rgb(var(--node-accent) / .28);
  box-shadow: none;
}
.react-flow__node-textNode [class*="border-amber-300/15"] > button { border-radius: 999px; padding: 3px 10px; }
.react-flow__node-textNode [class*="border-amber-300/15"] > button[class*="from-amber-300"] {
  background: linear-gradient(135deg, #fbbf24, #f59e0b) !important; color: #2a1700; box-shadow: 0 2px 10px rgb(var(--node-accent) / .35);
}
/* 正文区 */
.react-flow__node-textNode .node-container > div:nth-child(2) { background: #110e12; padding: 10px; }
.react-flow__node-textNode .node-container > div:nth-child(2) > div:first-child {
  border-radius: 14px; border: 1px solid rgb(var(--node-accent) / .16); background: #0d0b0e;
  transition: border-color .15s, box-shadow .15s;
}
.react-flow__node-textNode .node-container > div:nth-child(2) > div:first-child:focus-within {
  border-color: rgb(var(--node-accent) / .55); box-shadow: 0 0 0 3px rgb(var(--node-accent) / .12);
}
.react-flow__node-textNode .text-node-prosemirror {
  font-size: 13px; line-height: 1.75; color: #f3ece8; padding: 10px 14px 16px;
}
.react-flow__node-textNode .node-container > div:nth-child(2) .pointer-events-none.absolute.inset-0 { padding: 10px 14px; }
.react-flow__node-textNode .node-container > div:nth-child(2) .pointer-events-none.absolute.inset-0 > span {
  font-size: 13px; line-height: 1.75; color: rgb(var(--node-accent-2) / .38);
}

/* ═════ 文本便签（Note）═════
 * 颜色沿用原版（6 种浅色纸：黄/绿/蓝/粉/紫/橙，仍由 bg-*-100 / bg-*-200 这些原版类决定，不覆盖）。
 * 形态改成「便利贴撕页」：
 *   · 纸张方正、无描边，略微倾斜（像手贴上去的），上亮下暗的纸面渐变；
 *   · 头部是一条「撕下来的粘胶条」：顶边做成半圆打孔（撕页虚线感），下沿一道淡淡的粘胶阴影；
 *   · 底部左右两角微微翘起，翘起处投出弯曲的阴影；
 *   · 不再有圆角卡片的头部分隔线和顶部胶带。 */
.react-flow__node-noteNode > div:first-child {
  border: 0 !important; border-radius: 2px;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .45) 0, rgba(255, 255, 255, 0) 40%, rgba(0, 0, 0, .05) 100%);
  box-shadow: 0 2px 3px rgba(0, 0, 0, .35);
}
/* 倾斜放在节点外层：纸本身不能是层叠上下文，否则 z-index:-1 的翘角阴影会盖在纸面上 */
.react-flow__node-noteNode { rotate: -1deg; }
/* 左右翘角阴影（z-index:-1 画在纸的后面） */
.react-flow__node-noteNode > div:first-child::before,
.react-flow__node-noteNode > div:first-child::after {
  content: ""; position: absolute; z-index: -1; bottom: 12px; width: 46%; height: 18px; pointer-events: none;
  box-shadow: 0 14px 10px rgba(0, 0, 0, .55);
}
.react-flow__node-noteNode > div:first-child::before { left: 8px; transform: rotate(-3deg); }
.react-flow__node-noteNode > div:first-child::after { right: 8px; transform: rotate(3deg); }
/* 粘胶条头部 */
.react-flow__node-noteNode > div:first-child > div > div.rounded-t-md {
  border-radius: 2px 2px 0 0; padding: 12px 12px 8px;
  box-shadow: 0 5px 6px -4px rgba(0, 0, 0, .22); position: relative;
}
/* 顶边的打孔：不用 mask（mask 会把头部里弹出的「换色面板」一起裁掉），改用伪元素盖一排画布底色的半圆 */
.react-flow__node-noteNode > div:first-child > div > div.rounded-t-md::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; pointer-events: none;
  background: radial-gradient(circle at 7px 0, #0a080c 3.6px, transparent 4.2px) 0 0 / 14px 100% repeat-x;
}
/* 顶部胶带取消 */
.react-flow__node-noteNode > div:first-child > div > div.absolute.-top-2 { display: none; }
/* 选中态：原版用「外层渐变 + 内层圆角纸」做渐变描边，内层 rounded-lg 会让选中时突然变圆角。
 * 改成方角，并把描边换成品牌的 玫红→紫 渐变（内联样式写死的，所以要 !important） */
.react-flow__node-noteNode > div:first-child[style*="gradient"] { background: linear-gradient(135deg, #e8318b, #8b5cf6) !important; border-radius: 2px; }
.react-flow__node-noteNode > div:first-child > div.absolute[class*="inset-"] {
  border-radius: 1px;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .45) 0, rgba(255, 255, 255, 0) 40%, rgba(0, 0, 0, .05) 100%);
}
.react-flow__node-noteNode > div:first-child { transition: none; }

/* ═════════ 组件层（第二轮：统一设计令牌，质感与动效）═════════
 * 定位只用 Tailwind 工具类名里的稳定片段（[class*=…]），不依赖压缩后的变量名；升级后抽查。 */

/* 滚动条：细、圆、半透明，悬停提亮（替掉系统自带的粗滚动条） */
* { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .16) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; transition: background .2s; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .28); background-clip: padding-box; }
::-webkit-scrollbar-corner { background: transparent; }

/* 全屏弹层的遮罩：加一层背景虚化，弹窗更有层次 */
div[class*="fixed"][class*="inset-0"][class*="bg-black/"] { -webkit-backdrop-filter: blur(6px) saturate(1.1); backdrop-filter: blur(6px) saturate(1.1); }

/* 按钮 / 可点击元素的缓动统一 */
button, [role="button"], a { transition-timing-function: var(--dm-ease); }

/* 小助手面板：右侧抽屉 → 暖紫黑 + 玫红光晕的标题条 + 左侧投影 */
[class*="z-[10001]"][class*="right-0"][class*="border-l"] {
  background: linear-gradient(180deg, #171218 0%, #110e13 100%);
  border-left: 1px solid var(--dm-line);
  box-shadow: -24px 0 64px rgba(0, 0, 0, .45);
}
[class*="z-[10001]"][class*="right-0"][class*="border-l"] > div[class*="justify-between"][class*="shrink-0"] {
  background: linear-gradient(90deg, rgba(232, 49, 139, .12) 0%, rgba(139, 92, 246, .05) 55%, transparent 100%);
  border-bottom: 1px solid var(--dm-line);
}
/* 用户气泡：品牌渐变描边，助手回复保持克制 */
div[class*="bg-zinc-700/80"][class*="rounded-br-md"] {
  background: linear-gradient(135deg, rgba(232, 49, 139, .30), rgba(139, 92, 246, .26));
  border: 1px solid rgba(232, 49, 139, .38);
  box-shadow: 0 6px 18px rgba(232, 49, 139, .12);
}

/* 技能广场 / 大弹窗：更大圆角 + 柔和渐变描边 + 深投影；卡片悬停有品牌光 */
div[class*="w-[min(1040px,94vw)]"] {
  border-radius: 28px;
  border-color: rgba(255, 255, 255, .12);
  background: var(--dm-surface-1);
  box-shadow: var(--dm-shadow-3), inset 0 1px 0 rgba(255, 255, 255, .05);
}
div.group[class*="rounded-[18px]"] { border-radius: 20px; box-shadow: var(--dm-shadow-1); }
div.group[class*="rounded-[18px]"]:hover { border-color: rgba(232, 49, 139, .45); box-shadow: var(--dm-shadow-2), 0 0 0 1px rgba(232, 49, 139, .12); }
/* 弹窗里的胶囊分类按钮：选中态本来就是玫红，未选中态补描边与悬停 */
button[class*="h-10"][class*="rounded-full"][class*="px-5"] { border: 1px solid var(--dm-line); }
button[class*="h-10"][class*="rounded-full"][class*="px-5"]:hover { border-color: var(--dm-line-strong); }

/* ═════════ 节点库菜单 + 画布底部工具坞（第三轮）═════════ */

/* 工具坞：纯胶囊 → 大圆角条；按钮改圆角方块，选中态是品牌渐变 + 光晕，悬停轻微上浮 */
div.fixed.bottom-4 > div.rounded-full { border-radius: 22px; padding: 6px 8px; gap: 2px; }
div.fixed.bottom-4 > div > button {
  border-radius: 14px;
  transition: background .18s var(--dm-ease), color .18s var(--dm-ease), transform .18s var(--dm-ease), box-shadow .18s var(--dm-ease);
}
div.fixed.bottom-4 > div > button:hover { transform: translateY(-1px); background: rgba(255, 255, 255, .08); }
div.fixed.bottom-4 > div > button:active { transform: translateY(0) scale(.95); }
div.fixed.bottom-4 > div > button svg { transition: transform .18s var(--dm-ease); }
div.fixed.bottom-4 > div > button:hover svg { transform: scale(1.08); }
div.fixed.bottom-4 > div > button[class~="bg-white/10"] { background: var(--dm-grad); color: #fff; box-shadow: 0 6px 16px rgba(232, 49, 139, .38), inset 0 1px 0 rgba(255, 255, 255, .22); }
div.fixed.bottom-4 > div > button[class~="bg-white/10"]:hover { background: var(--dm-grad); filter: brightness(1.08); }
div.fixed.bottom-4 > div > div.w-px { height: 18px; margin: 0 6px; background: rgba(255, 255, 255, .1); }

/* 节点库菜单 / 二级菜单：玻璃面板 + 大圆角 + 深投影；条目悬停是品牌渐变，不再是琥珀色 */
div[class*="z-[10001]"][class*="min-w-[180px]"][class*="rounded-2xl"] {
  background: rgba(27, 23, 29, .88);
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid var(--dm-line-strong);
  border-radius: 20px; padding: 6px;
  box-shadow: var(--dm-shadow-3), inset 0 1px 0 rgba(255, 255, 255, .06);
}
div[class*="z-[10001]"][class*="min-w-[180px]"][class*="rounded-2xl"] > div[class*="border-b"] { border-bottom-color: var(--dm-line); }
div[class*="z-[10001]"][class*="min-w-[180px]"][class*="rounded-2xl"] span.text-sm[class*="text-gray-400"] { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
div[class*="z-[10001]"][class*="min-w-[180px]"][class*="rounded-2xl"] button[class*="px-4"][class*="py-2.5"] {
  border-radius: 12px;
  transition: background .16s var(--dm-ease), color .16s var(--dm-ease), transform .16s var(--dm-ease);
}
div[class*="z-[10001]"][class*="min-w-[180px]"][class*="rounded-2xl"] button[class*="px-4"][class*="py-2.5"]:hover {
  background: linear-gradient(90deg, rgba(232, 49, 139, .18), rgba(139, 92, 246, .08)) !important;
  color: #fff; transform: translateX(2px);
}

/* ═════════ 通用层（第四轮）：所有浮层 / 输入 / 开关 / 画布细节 ═════════ */

/* 浮层统一：凡是 fixed / absolute 且带 shadow-xl / shadow-2xl 的面板（下拉、气泡、右键菜单、弹窗卡片等，共 100+ 种写法），
 * 统一阴影令牌、描边亮度、圆角下限 12px，并加一层背景虚化（背景不透明的不受影响） */
:is(.fixed, .absolute):is([class~="shadow-xl"], [class~="shadow-2xl"], [class~="shadow-lg"])[class~="border"]:not([class~="rounded-full"]):not([class~="rounded-sm"]) {
  box-shadow: var(--dm-shadow-2);
  border-color: var(--dm-line-strong);
  -webkit-backdrop-filter: blur(14px) saturate(1.15); backdrop-filter: blur(14px) saturate(1.15);
}
:is(.fixed, .absolute):is([class~="shadow-xl"], [class~="shadow-2xl"])[class~="border"]:is([class~="rounded"], [class~="rounded-md"], [class~="rounded-lg"]),
:is(.fixed, .absolute):is([class~="shadow-xl"], [class~="shadow-2xl"])[class~="border"][class*="rounded-[4px]"] { border-radius: 12px; }
:is(.fixed, .absolute)[class~="shadow-2xl"][class~="border"] { box-shadow: var(--dm-shadow-3); }

/* 输入框聚焦：玫红描边 + 柔和光圈（排除滑块 / 复选 / 文件 / 颜色这类不是文字输入的控件） */
input:not([type="range"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="color"]):not([type="button"]),
textarea, select { transition: border-color .18s var(--dm-ease), box-shadow .18s var(--dm-ease), background-color .18s var(--dm-ease); }
input:not([type="range"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="color"]):not([type="button"]):focus,
textarea:focus, select:focus { border-color: rgba(232, 49, 139, .6) !important; box-shadow: 0 0 0 3px rgba(232, 49, 139, .16); outline: none; }
::placeholder { color: rgba(255, 255, 255, .32); }

/* 原生控件的强调色：滑块、复选、单选、进度条 */
input[type="range"], input[type="checkbox"], input[type="radio"], progress { accent-color: #e8318b; }

/* 画布：框选框、连线中的线、选中连线 */
.react-flow__selection, .react-flow__nodesselection-rect { background: rgba(232, 49, 139, .07) !important; border: 1px solid rgba(232, 49, 139, .55) !important; border-radius: 6px; }
.react-flow__connection-path { stroke: #e8318b !important; stroke-width: 2px; filter: drop-shadow(0 0 6px rgba(232, 49, 139, .55)); }
.react-flow__edge.selected .react-flow__edge-path { filter: drop-shadow(0 0 5px rgba(232, 49, 139, .6)); }
.react-flow__edge-path { transition: stroke-width .15s var(--dm-ease), filter .15s var(--dm-ease); }
.react-flow__edge:hover .react-flow__edge-path { stroke-width: 3px; }

/* 无障碍：系统设置了「减少动态效果」时，关掉我加的位移 / 缩放动效 */
@media (prefers-reduced-motion: reduce) {
  div.fixed.bottom-4 > div > button, div.fixed.bottom-4 > div > button svg,
  div[class*="z-[10001]"][class*="min-w-[180px]"][class*="rounded-2xl"] button { transition: none !important; transform: none !important; }
  div.group[class*="rounded-[18px]"] { transition: none !important; }
}

/* 提示条（toast）：玻璃质感 + 深投影；成功 / 报错 / 信息三种边框色保持原语义（成功已随品牌色走玫红） */
.toast-animate {
  border-radius: 16px; font-weight: 500; letter-spacing: -.005em;
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: var(--dm-shadow-3);
}
.toast-animate[class*="bg-zinc-900"] { background-color: rgba(27, 23, 29, .9); }


/* ───────── 团队管理页：英文文案比中文长，原版按中文写死的宽度会叠字 / 换行 ───────── */
/* 成员行的配额标签（原版固定 52px，「Month member」会叠在「Year member」上） */
div.w-\[156px\].shrink-0 { width: 244px; }
div.w-\[156px\].shrink-0 > div.items-center.h-5 > span.w-\[52px\] { width: 96px; white-space: nowrap; }
/* 配额类型（Fixed / Monthly / Weekly / Daily）：原版 28px 只放得下中文单字，英文会贴在后面的「已用/额度」上 */
div.w-\[156px\].shrink-0 > div.items-center.h-5 > span.w-7 { width: 64px; white-space: nowrap; }
div.w-\[156px\].shrink-0 > div.items-center.h-5 > span.tabular-nums { width: auto; min-width: 72px; }
/* 顶部工具栏（成员数 / 席位 / 搜索 / 邀请 / 移除 / 批量设置）：按钮文字不换行，放不下时整行换到下一行 */
div.sticky.top-10.z-10 { flex-wrap: wrap; row-gap: 8px; }
div.sticky.top-10.z-10 > div.flex.items-center.gap-2\.5 { flex-wrap: wrap; row-gap: 8px; }
div.sticky.top-10.z-10 > div.flex.items-center.gap-2\.5 > button { white-space: nowrap; flex-shrink: 0; }
/* 团队积分胶囊（总额 / 年会员 / 月会员 / 补充 + Transfer in）：窄屏时换行，不压到右边的「Points Consumption Order」 */
div.flex.items-center.gap-2\.5.pl-3.pr-3\.5.py-1\.5.rounded-lg { flex-wrap: wrap; row-gap: 6px; }

/* 编辑器顶栏三大标签（Creative Canvas / Edit Preview / Final Review）：窗口不够宽时只留图标，避免和右侧积分、分享按钮重叠 */
@media (max-width: 1180px) {
  .ani-tab-label { display: none !important; }
}
