/* Shared transparent branding and quiet moving light. */
.logo img{object-fit:contain!important;background:transparent!important;filter:none!important}
[data-theme='dark'] .logo img{content:url('take-x-logo-approved-dark.png');filter:none!important}
/* 2026-09-15 俊导：左上角 logo 太大 → 统一压到 36.2px 高（宽自适应比例 4.09，约 148px 宽）*/
.logo img.take-clean-logo{display:block!important;height:30px!important;width:auto!important;object-fit:contain!important}
.btn-generate,.btn-primary-auth,.btn.primary{background-image:linear-gradient(110deg,#996dff 0%,#7950ed 35%,#9471ff 50%,#703eec 68%,#804df4 100%)!important;background-size:220% 100%!important;box-shadow:inset 0 0.9px 0 #ffffff50,0 1.8px 8.8px #8255ed26!important;animation:take-button-light 9s ease-in-out infinite}
[data-theme='dark'] .btn-generate,[data-theme='dark'] .btn-primary-auth,[data-theme='dark'] .btn.primary{box-shadow:inset 0 0.9px 0 #ffffff65,0 0 10.6px #8858ff38!important}
@keyframes take-button-light{0%,100%{background-position:0% 50%}50%{background-position:100% 50%}}
@media(prefers-reduced-motion:reduce){.btn-generate,.btn-primary-auth,.btn.primary{animation:none}}
/* Soft glass composer, with a stable input and a quiet illuminated action. */
.home-app .canvas-quick-input{padding:15.8px 112px 15.8px 21.1px;border-radius:22px;border:0.9px solid #c8bdf17a;background:linear-gradient(115deg,#ffffffed,#f2efffd9);box-shadow:inset 0 0.9px 0 #fff,0 4.4px 17.6px #7450d512;backdrop-filter:blur(15.8px);transition:border-color .25s,box-shadow .25s}
.home-app .canvas-quick-input:focus-within{border-color:#a48ae5;box-shadow:inset 0 0.9px 0 #fff,0 0 0 2.6px #9874e90c,0 5.3px 21.1px #7450d51c}
.home-app .canvas-quick-input textarea{resize:none;overflow-y:auto;scrollbar-width:none;scrollbar-color:transparent transparent;min-height:26.4px}
.home-app .canvas-quick-input textarea::-webkit-scrollbar{width:0;height:0;display:none}
.home-app #chatInput{scrollbar-width:none}
.home-app #chatInput::-webkit-scrollbar{width:0;height:0;display:none}
.home-app .canvas-quick-send{width:33.4px;height:33.4px;flex:none;background:linear-gradient(120deg,#a48bff,#7345e7,#a48bff);background-size:200% 100%;color:#fff;box-shadow:inset 0 0.9px 0 #ffffff80,0 0 10.6px #8957ea38;animation:take-button-light 9s ease-in-out infinite;transition:transform .2s}
.home-app .canvas-quick-send:hover{transform:translateY(-0.9px)}
[data-theme='dark'] .home-app .canvas-quick-input{background:linear-gradient(115deg,#17192be8,#211c3be0);border-color:#9180ce40;box-shadow:inset 0 0.9px 0 #ffffff0d,0 4.4px 21.1px #0002}
[data-theme='dark'] .home-app .canvas-quick-input:focus-within{border-color:#a28ae09c;box-shadow:0 0 15.8px #8c63ef19}
[data-theme='dark'] .home-app .canvas-quick-send{background:linear-gradient(120deg,#aa8aff,#7044e5,#aa8aff);background-size:200% 100%;color:#fff;box-shadow:inset 0 0.9px 0 #ffffff80,0 0 12.3px #9a72ff40}
.home-app .kb-label{display:flex;align-items:center;justify-content:center;gap:6.2px;flex-wrap:wrap;letter-spacing:.1.8px;line-height:1.8}
.kb-line-icon{display:inline-flex;align-items:center;justify-content:center;width:22.9px;height:22.9px;border:0.9px solid #b6a1ef55;border-radius:7px;background:#b8a0ff14;color:#8656e6}
.kb-line-icon svg{width:13.2px;height:13.2px}
.home-app .chip-kb{border:0.9px solid #c6b7ed66;background:linear-gradient(135deg,#ffffffd9,#ede8ff9c);box-shadow:inset 0 0.9px 0 #ffffffa6,0 1.8px 7px #6643b408;transition:border-color .2s,transform .2s}
.home-app .chip-kb:hover{border-color:#a38ae0;transform:translateY(-0.9px)}
[data-theme='dark'] .home-app .chip-kb{background:linear-gradient(135deg,#25223c,#1b1c30);border-color:#a18bdf40;color:#d8d0ed;box-shadow:inset 0 0.9px 0 #ffffff0a}
@media(prefers-reduced-motion:reduce){.home-app .canvas-quick-send{animation:none}}

/* TAKE X global dark mode · approved 2026-09-13 */
[data-theme='dark']{color-scheme:dark;--bg:#090a0d;--bg-1:#111216;--bg-2:#17181d;--menu-bg:#191a1f;--card:#17181d;--card-border:#2b2d34;--text:#f5f6f8;--text-body:#d8dae0;--text-dim:#a0a4ae;--text-faint:#727782;--bg-soft:#1d1e24;--bg-soft-2:#222329;--bg-hover:#202127;--nav-bg:rgba(10,11,14,.92);--primary-soft:rgba(124,92,255,.14);--cb-bg:#090a0d;--cb-card:#17181d;--cb-card-2:#1d1e24;--cb-border:#2b2d34;--cb-border-h:#765de3;--cb-text:#f5f6f8;--cb-dim:#a0a4ae;--cb-faint:#727782;--rail:#101115;--line:#2a2c33;--line2:#32343c;--ink:#f5f6f8;--sub:#9499a5}
[data-theme='dark'] body,[data-theme='dark'] body.take-gallery-page,[data-theme='dark'] body.take-cases-page{background:#090a0d!important;color:#f5f6f8}
[data-theme='dark'] .bg-glow{background:radial-gradient(ellipse at 55% -8%,rgba(112,77,255,.13),transparent 34%),#090a0d!important}
[data-theme='dark'] :is(.nav,.case-nav){background:rgba(10,11,14,.94)!important;border-color:#25272d!important;box-shadow:none}
[data-theme='dark'] :is(.nav-links a,.case-nav a,.muted){color:#a0a4ae}
[data-theme='dark'] :is(.nav-links a:hover,.nav-links a.active,.case-nav a:hover,.case-nav a.active){color:#fff}
[data-theme='dark'] :is(.g-card,.case-card,.gal-card,.shot-card,.refine-card,.voiceover-card,.tips-card,.history-item,.card,.modal-card,.dropdown-menu,.sel-menu){background:#17181d!important;border-color:#2b2d34!important;color:#f5f6f8!important;box-shadow:0 12px 32px rgba(0,0,0,.22)!important}
[data-theme='dark'] :is(input,textarea,select,.case-search,.history-search){background:#111216!important;border-color:#30323a!important;color:#f5f6f8!important}
[data-theme='dark'] :is(input,textarea)::placeholder{color:#6f747e}
[data-theme='dark'] :is(.chip,.case-filter,.g-filter .chip,.tag,.kb-tag,.shot-tag,.quick-action){background:#202127!important;border-color:#30323a!important;color:#b5b8c1!important}
[data-theme='dark'] :is(.chip.active,.case-filter.active,.g-filter .chip.active,.history-tab.active){background:#2b2442!important;border-color:#6954c7!important;color:#fff!important}
[data-theme='dark'] .take-gallery-page .gh-banner{background:linear-gradient(112deg,#15161b,#201c30 52%,#111217)!important;border-color:#302b48!important;box-shadow:inset 0 1px rgba(255,255,255,.04),0 16px 42px #0006!important}
[data-theme='dark'] .take-gallery-page :is(.gh-title,.gh-ticket .tt2){color:#f7f7fa!important}
[data-theme='dark'] .take-gallery-page :is(.gh-en,.gh-subrow){color:#979ba6!important}
[data-theme='dark'] .take-gallery-page .gh-ticket{background:rgba(29,30,37,.92)!important;border-color:#343641!important}
[data-theme='dark'] .take-gallery-page .gh-go{background:#24252b!important;color:#a58fff!important}
[data-theme='dark'] .take-cases-page .case-hero-refined{background:transparent}
[data-theme='dark'] .case-hero-refined h1{color:#f7f7fa}
[data-theme='dark'] .case-hero-refined p{color:#979ba6}
[data-theme='dark'] .case-hero-refined .case-hero-badge{background:#181620;border-color:#3b3159;color:#b7a7f7;box-shadow:none}
[data-theme='dark'] :is(.g-modal-inner,.modal-inner,.dialog-card){background:#15161b!important;border-color:#30323a!important;color:#f5f6f8!important}
[data-theme='dark'] :is(.g-modal-prompt,.g-modal-trans,.prompt-block,.prompt-box,.shot-why){background:#1d1e24!important;border-color:#30323a!important;color:#d8dae0!important}
[data-theme='dark'] body.home-app:has(#resultSection:not(.hidden)),[data-theme='dark'] body.home-app:has(#historySection:not(.hidden)){background:#090a0d!important}
[data-theme='dark'] #historyList{background:#15161b;border-color:#2b2d34}
[data-theme='dark'] .home-app .history-item:hover{background:#1e1b2b!important}
[data-theme='dark'] :is(.result-head h2,.history-head h2,.card-title,.shot-head strong){color:#f7f7fa}
[data-theme='dark'] :is(.result-main .prompt-label,.h-title strong){color:#e9eaee}
[data-theme='dark'] :is(.workspace-sub,.workspace-sources,.shot-reason,.refine-hint,.h-title small,.history-item .h-meta){color:#7f848f}
[data-theme='dark'] :is(.rail){background:#101115!important;border-color:#272930!important}
[data-theme='dark'] :is(.main,.director-workspace){background:#090a0d!important}
[data-theme='dark'] :is(.create,.dw-head,.dw-steps,.dw-entry,.dw-form,.dw-asset){background:#17181d!important;border-color:#2b2d34!important;color:#f5f6f8!important;box-shadow:none!important}
[data-theme='dark'] :is(.dw-form textarea,.dw-asset pre,.dw-table th){background:#111216!important;border-color:#30323a!important;color:#d8dae0!important}
[data-theme='dark'] .cv-area{background:#0b0c0f!important}
[data-theme='dark'] .cv-area .grid{background-image:radial-gradient(#34363d 1px,transparent 1px)!important}
[data-theme='dark'] .chat{background:#101115!important;border-color:#292b31!important;color:#f5f6f8}
[data-theme='dark'] .board{background-color:#0b0c0f;background-image:radial-gradient(#30323a 1px,transparent 1px),radial-gradient(ellipse at 70% 10%,#201a3b55,transparent 60%)}
[data-theme='dark'] .node{background:#17181d;border-color:#353741;color:#f5f6f8;box-shadow:0 15px 36px #0008}
[data-theme='dark'] .nhead{border-color:#2b2d34}
[data-theme='dark'] .photo{background:#101115;color:#737782}
[data-theme='dark'] :is(.role select,.controls select,.content textarea,.output,.scope,.bubble,.node-refine textarea){background:#202127!important;border-color:#30323a!important;color:#d8dae0!important}
[data-theme='dark'] .bubble.user{background:#7350df!important;color:#fff!important}
[data-theme='dark'] :is(.btn,.cv-back,.cv-zoom,.cv-mapbtn,.tools .zoom-label){background:#1b1c21!important;border-color:#30323a!important;color:#dddfe5!important;box-shadow:none!important}
[data-theme='dark'] :is(.btn.primary,.btn-new,.dw-submit,.go-btn){background:linear-gradient(110deg,#9274ff,#7048e8)!important;color:#fff!important;border-color:transparent!important;box-shadow:0 0 16px rgba(126,87,255,.2)!important}
[data-theme='dark'] .port{background:#17181d;border-color:#8870e9;color:#a992ff}
[data-theme='dark'] :is(.canvas-context-menu,.mention-menu,.project-menu,.project-dialog){background:#17181d!important;border-color:#30323a!important;color:#f5f6f8!important;box-shadow:0 16px 40px #0008!important}
[data-theme='dark'] :is(.canvas-context-menu button,.mention-option,.project-menu button){color:#d8dae0!important}
[data-theme='dark'] :is(.canvas-context-menu button:hover,.mention-option:hover,.mention-option.active,.project-menu button:hover){background:#26222f!important;color:#fff!important}
[data-theme='dark'] .project-row.on,[data-theme='dark'] .rail .item.on{background:#24212e!important;color:#b9a7ff!important}
[data-theme='dark'] .empty-state h2{color:#f5f6f8}
[data-theme='dark'] .review,[data-theme='dark'] .footnote{background:#08090c;border-color:#25272d}
[data-theme='dark'] .app{background:#090a0d}
[data-theme='dark'] .pro-page,[data-theme='dark'] .pro-result-page{background:#090a0d!important;color:#f5f6f8!important}
[data-theme='dark'] :is(.pro-card,.pro-panel,.pro-section,.pro-script-card,.pro-result-card,.pro-controls,.pro-chat){background:#17181d!important;border-color:#2b2d34!important;color:#f5f6f8!important;box-shadow:none!important}
[data-theme='dark'] :is(table,thead,tbody,tr,td,th){border-color:#2b2d34}
[data-theme='dark'] th{background:#1d1e24;color:#dfe1e6}
@media(prefers-reduced-motion:reduce){[data-theme='dark'] *{scroll-behavior:auto!important}}

/* TAKE X luminous dark refinement · 2026-09-13 */
[data-theme='dark']{--bg:#111218;--bg-1:#171820;--bg-2:#1c1d26;--menu-bg:#20212b;--card:#1c1d25;--card-border:#343641;--text:#f7f8fb;--text-body:#e1e3ea;--text-dim:#b0b4c0;--text-faint:#838996;--bg-soft:#22232d;--bg-soft-2:#282a35;--bg-hover:#292b36;--nav-bg:rgba(17,18,24,.9);--cb-bg:#111218;--cb-card:#1c1d25;--cb-card-2:#23242e;--cb-border:#343641;--cb-text:#f7f8fb;--cb-dim:#adb2bf;--rail:#16171e;--line:#353743;--line2:#40424f;--ink:#f7f8fb;--sub:#a9aeba}
[data-theme='dark'] body,[data-theme='dark'] body.take-gallery-page,[data-theme='dark'] body.take-cases-page{background:radial-gradient(ellipse at 50% -18%,rgba(104,82,205,.18),transparent 38%),linear-gradient(180deg,#15161d 0,#111218 46%,#13141a 100%)!important;background-attachment:fixed!important}
[data-theme='dark'] .bg-glow{background:radial-gradient(ellipse at 16% 3%,rgba(117,94,232,.18),transparent 30%),radial-gradient(ellipse at 84% 7%,rgba(71,111,213,.12),transparent 31%),linear-gradient(180deg,#171820,#111218 58%)!important}
[data-theme='dark'] :is(.nav,.case-nav){background:rgba(20,21,28,.86)!important;border-color:rgba(255,255,255,.09)!important;box-shadow:0 10px 36px rgba(0,0,0,.18)!important;backdrop-filter:blur(22px)}
[data-theme='dark'] :is(.g-card,.case-card,.gal-card,.shot-card,.refine-card,.voiceover-card,.tips-card,.history-item,.card,.modal-card,.dropdown-menu,.sel-menu){background:linear-gradient(145deg,rgba(33,34,44,.98),rgba(25,26,34,.98))!important;border-color:rgba(255,255,255,.105)!important;box-shadow:inset 0 1px rgba(255,255,255,.035),0 14px 38px rgba(0,0,0,.22)!important}
[data-theme='dark'] :is(input,textarea,select,.case-search,.history-search){background:#171820!important;border-color:rgba(255,255,255,.13)!important;color:#f3f4f7!important;box-shadow:inset 0 1px rgba(255,255,255,.025)}
[data-theme='dark'] :is(input,textarea)::placeholder{color:#8f95a4!important;opacity:1}
[data-theme='dark'] :is(input,textarea,select):focus{border-color:#7566b8!important;box-shadow:0 0 0 3px rgba(127,102,235,.12)!important}
[data-theme='dark'] :is(.chip,.case-filter,.g-filter .chip,.tag,.kb-tag,.shot-tag,.quick-action,.rt-chip){background:#292b36!important;border-color:rgba(255,255,255,.11)!important;color:#c7cad3!important}
[data-theme='dark'] :is(.chip:hover,.case-filter:hover,.g-filter .chip:hover,.quick-action:hover,.rt-chip:hover){background:#323440!important;border-color:#686079!important;color:#fff!important}
[data-theme='dark'] .home-app .input-shell{background:linear-gradient(145deg,#20212b,#191a22)!important;border-color:#4a4c5a!important;box-shadow:inset 0 1px rgba(255,255,255,.05),0 18px 50px rgba(0,0,0,.28),0 0 0 1px rgba(121,99,220,.07)!important}
[data-theme='dark'] .home-app .input-shell:focus-within{border-color:#7163ad!important;box-shadow:inset 0 1px rgba(255,255,255,.06),0 18px 50px rgba(0,0,0,.28),0 0 24px rgba(120,91,237,.12)!important}
[data-theme='dark'] .home-app .hero-toolbar{border-top-color:rgba(255,255,255,.12)!important;background:rgba(20,21,29,.35)}
[data-theme='dark'] .home-app #modeSel .sel-btn,[data-theme='dark'] .home-app #modelSel .sel-btn,[data-theme='dark'] .home-app #refSel .sel-btn,[data-theme='dark'] .home-app #durSel .sel-btn,[data-theme='dark'] .home-app .upload-btn{background:linear-gradient(180deg,#303240,#282a36)!important;border-color:#484b5c!important;color:#ecedf3!important;box-shadow:inset 0 1px rgba(255,255,255,.055),0 3px 10px rgba(0,0,0,.14)!important}
[data-theme='dark'] .home-app #modeSel .sel-btn:hover,[data-theme='dark'] .home-app #modelSel .sel-btn:hover,[data-theme='dark'] .home-app #refSel .sel-btn:hover,[data-theme='dark'] .home-app #durSel .sel-btn:hover,[data-theme='dark'] .home-app .upload-btn:hover{background:#373946!important;border-color:#6e648e!important;color:#fff!important}
[data-theme='dark'] .home-app .input-hint{color:#aeb3c1!important}
[data-theme='dark'] .home-app .generation-cost{color:#c4b8ff!important}
[data-theme='dark'] .canvas-quick-input{background:linear-gradient(145deg,#222431,#1b1c26)!important;border-color:#4c4f60!important;box-shadow:inset 0 1px rgba(255,255,255,.045),0 14px 38px rgba(0,0,0,.24)!important}
[data-theme='dark'] .canvas-quick-input:focus-within{border-color:#7868bb!important;box-shadow:0 0 0 3px rgba(129,105,231,.12),0 16px 42px rgba(0,0,0,.25)!important}
[data-theme='dark'] .chat-input-wrap{padding:5px;border:1px solid #3e4050;border-radius:14px;background:#1b1c25;box-shadow:inset 0 1px rgba(255,255,255,.035)}
[data-theme='dark'] .chat-input-wrap #chatInput{border:0!important;background:transparent!important;box-shadow:none!important;color:#f0f1f5!important}
[data-theme='dark'] .chat-msg.ai{background:#272934!important;color:#e5e7ed!important;border-color:#393b47!important}
[data-theme='dark'] .home-app .history-item{background:linear-gradient(135deg,#20212a,#191a22)!important;border-color:#343641!important}
[data-theme='dark'] .home-app .history-item:hover{background:linear-gradient(135deg,#292a36,#211f31)!important;border-color:#625680!important;transform:translateY(-1px)}
[data-theme='dark'] .history-type-icon{display:grid;place-items:center;width:34px;height:34px;flex:none;border-radius:10px;background:linear-gradient(145deg,#353342,#242631);border:1px solid rgba(255,255,255,.1);color:#bcaaff;box-shadow:inset 0 1px rgba(255,255,255,.07)}
[data-theme='dark'] .history-type-icon .ic{width:17px;height:17px}
[data-theme='dark'] :is(.btn,.btn-ghost,.copy-btn,.mini-copy,.cv-back,.cv-zoom,.cv-mapbtn,.tools .zoom-label){background:linear-gradient(180deg,#30323d,#282a33)!important;border-color:#464955!important;color:#eef0f4!important;box-shadow:inset 0 1px rgba(255,255,255,.055),0 3px 9px rgba(0,0,0,.15)!important}
[data-theme='dark'] :is(.btn,.btn-ghost,.copy-btn,.mini-copy):hover{background:#383a46!important;border-color:#666a78!important;color:#fff!important}
[data-theme='dark'] :is(.review,.footnote){background:#121319!important;border-color:#30323b!important}
[data-theme='dark'] :is(.rail,.chat){background:linear-gradient(180deg,#1a1b23,#15161d)!important;border-color:#30323b!important}
[data-theme='dark'] :is(.main,.director-workspace,.cv-area){background:#121319!important}
[data-theme='dark'] .board{background-color:#121319!important;background-image:radial-gradient(#3b3e49 1px,transparent 1px),radial-gradient(ellipse at 70% 8%,rgba(105,78,210,.14),transparent 56%)!important}
[data-theme='dark'] .node{background:linear-gradient(145deg,#252630,#1d1e26)!important;border-color:#464854!important;box-shadow:inset 0 1px rgba(255,255,255,.04),0 18px 46px rgba(0,0,0,.38)!important}
[data-theme='dark'] .node.selected{border-color:#8a6eff!important;box-shadow:0 0 0 2px rgba(138,110,255,.18),0 20px 52px rgba(0,0,0,.4)!important}
[data-theme='dark'] .photo{background:#171820!important;color:#888e9c!important}
[data-theme='dark'] :is(.role select,.controls select,.content textarea,.output,.scope,.bubble,.node-refine textarea){background:#292b35!important;border-color:#41434f!important;color:#e2e4ea!important}
[data-theme='dark'] .take-gallery-page .gh-banner{background:radial-gradient(ellipse at 72% 35%,rgba(106,82,222,.18),transparent 35%),linear-gradient(112deg,#22232d,#28243a 52%,#1a1b23)!important;border-color:#474158!important;box-shadow:inset 0 1px rgba(255,255,255,.07),0 20px 50px rgba(0,0,0,.28)!important}
[data-theme='dark'] .case-hero-refined{background:radial-gradient(ellipse at 50% 15%,rgba(116,88,232,.12),transparent 55%)!important}
[data-theme='dark'] .footer{border-color:#2d2f38!important}
@media(prefers-reduced-motion:reduce){[data-theme='dark'] .home-app .history-item{transform:none!important}}

/* ============================================================
   TAKE X dark v4 · 2026-09-13 · 提亮档（"黑但明亮"）
   在统一中性灰的基础上整体上提一档，靠卡片/控件层次撑起亮度
   ============================================================ */
[data-theme='dark']{
  --bg:#17171a;--bg-1:#1c1c20;--bg-2:#212126;--menu-bg:#26262b;
  --card:#242429;--card-border:#3c3c43;
  --text:#f8f8fa;--text-body:#e6e6ea;--text-dim:#b3b3bc;--text-faint:#8b8b95;
  --bg-soft:#28282e;--bg-soft-2:#2f2f35;--bg-hover:#35353c;
  --nav-bg:rgba(23,23,26,.9);
  --cb-bg:#17171a;--cb-card:#242429;--cb-card-2:#2b2b31;--cb-border:#3c3c43;
  --cb-text:#f8f8fa;--cb-dim:#b3b3bc;
  --rail:#1c1c20;--line:#3b3b42;--line2:#4a4a53;
  --ink:#f8f8fa;--sub:#b3b3bc;
}
[data-theme='dark'] body,
[data-theme='dark'] body.take-gallery-page,
[data-theme='dark'] body.take-cases-page{
  background:radial-gradient(ellipse at 50% -22%,rgba(104,82,205,.09),transparent 46%),#17171a!important;
  background-attachment:fixed!important;
}
[data-theme='dark'] .bg-glow{
  background:radial-gradient(ellipse at 16% 3%,rgba(117,94,232,.11),transparent 36%),radial-gradient(ellipse at 84% 7%,rgba(71,111,213,.08),transparent 37%),linear-gradient(180deg,#1c1c20,#17171a 60%)!important;
}
[data-theme='dark'] :is(.nav,.case-nav){
  background:rgba(26,26,30,.88)!important;border-color:rgba(255,255,255,.11)!important;
  box-shadow:0 8px 30px rgba(0,0,0,.24)!important;backdrop-filter:blur(20px);
}
[data-theme='dark'] :is(.g-card,.case-card,.gal-card,.shot-card,.refine-card,.voiceover-card,.tips-card,.history-item,.card,.modal-card,.dropdown-menu,.sel-menu){
  background:#242429!important;border-color:#3c3c43!important;
  box-shadow:0 2px 18px rgba(0,0,0,.28)!important;
}
[data-theme='dark'] :is(.g-card,.case-card,.gal-card,.history-item):hover{
  background:#2d2d33!important;border-color:#55555f!important;
}
[data-theme='dark'] :is(input,textarea,select,.case-search,.history-search){
  background:#1f1f23!important;border-color:rgba(255,255,255,.16)!important;
  color:#f4f4f7!important;box-shadow:none!important;
}
[data-theme='dark'] :is(input,textarea)::placeholder{color:#92929c!important;opacity:1}
[data-theme='dark'] :is(input,textarea,select):focus{
  border-color:#7566b8!important;box-shadow:0 0 0 3px rgba(127,102,235,.16)!important;
}
[data-theme='dark'] :is(.btn,.btn-ghost,.copy-btn,.mini-copy,.cv-back,.cv-zoom,.cv-mapbtn,.tools .zoom-label){
  background:#2e2e34!important;border-color:#47474f!important;color:#f0f0f4!important;box-shadow:none!important;
}
[data-theme='dark'] :is(.btn,.btn-ghost,.copy-btn,.mini-copy):hover{
  background:#3a3a42!important;border-color:#62626e!important;color:#fff!important;
}
[data-theme='dark'] :is(.chip,.case-filter,.g-filter .chip,.tag,.kb-tag,.shot-tag,.quick-action,.rt-chip){
  background:#31313a!important;border-color:rgba(255,255,255,.13)!important;color:#d3d3da!important;
}
[data-theme='dark'] :is(.chip:hover,.case-filter:hover,.quick-action:hover,.rt-chip:hover){
  background:#3c3c46!important;border-color:#70707e!important;color:#fff!important;
}
[data-theme='dark'] .home-app .input-shell{
  background:#26262c!important;border-color:#55555f!important;
  box-shadow:0 14px 44px rgba(0,0,0,.34),0 0 0 1px rgba(121,99,220,.07)!important;
}
[data-theme='dark'] .home-app .input-shell:focus-within{border-color:#7566b8!important}
[data-theme='dark'] :is(.canvas-quick-input,.chat-input-wrap){
  background:#26262c!important;border-color:#55555f!important;
}
[data-theme='dark'] :is(.rail,.chat){background:#1d1d21!important;border-color:#36363c!important}
[data-theme='dark'] :is(.main,.director-workspace,.cv-area){background:#191919!important}
[data-theme='dark'] .board{background-color:#191919!important}
[data-theme='dark'] .node{background:#25252a!important;border-color:#43434b!important}
[data-theme='dark'] .node.selected{border-color:#8a6eff!important}

/* TAKE X dark v4 · 2026-09-13 · gallery/cases contrast correction */
[data-theme='dark']{
  --bg:#1b1c22;--bg-1:#202129;--bg-2:#252731;--menu-bg:#292b35;
  --card:#272933;--card-border:#414450;
  --text:#ffffff;--text-body:#eceef4;--text-dim:#c1c5d0;--text-faint:#979daa;
  --bg-soft:#2b2d37;--bg-soft-2:#31343f;--bg-hover:#373a46;
  --nav-bg:rgba(28,29,36,.9);
  --cb-bg:#1b1c22;--cb-card:#272933;--cb-card-2:#30323d;--cb-border:#414450;
  --cb-border-h:#676c7c;--cb-text:#ffffff;--cb-dim:#c4c8d2;--cb-faint:#989eab;
}
[data-theme='dark'] body,
[data-theme='dark'] body.take-gallery-page,
[data-theme='dark'] body.take-cases-page{
  background:radial-gradient(ellipse at 48% -10%,rgba(119,94,232,.18),transparent 42%),radial-gradient(ellipse at 92% 28%,rgba(65,103,195,.10),transparent 35%),linear-gradient(180deg,#22232b 0%,#1b1c22 52%,#202129 100%)!important;
  color:#fff!important;
}
[data-theme='dark'] .bg-glow{background:radial-gradient(ellipse at 18% 2%,rgba(133,103,255,.16),transparent 35%),radial-gradient(ellipse at 84% 10%,rgba(69,113,220,.11),transparent 38%),linear-gradient(180deg,#23242c,#1b1c22 62%)!important}
[data-theme='dark'] :is(.g-card,.case-card){background:linear-gradient(145deg,#2b2d37,#252730)!important;border-color:#414450!important;box-shadow:inset 0 1px rgba(255,255,255,.055),0 12px 28px rgba(0,0,0,.20)!important}
[data-theme='dark'] :is(.g-card,.case-card):hover{background:linear-gradient(145deg,#343743,#2b2d38)!important;border-color:#666b7b!important;box-shadow:0 16px 34px rgba(0,0,0,.28),0 0 0 1px rgba(130,105,235,.10)!important}
/* 风格画廊：卡片和详情文字必须保持高对比 */
[data-theme='dark'] .g-card .g-title{color:#fff!important}
[data-theme='dark'] .g-card .g-tag,[data-theme='dark'] .g-count{color:#b9becb!important}
[data-theme='dark'] .g-search{background:#292b35!important;color:#fff!important;border-color:#464956!important}
[data-theme='dark'] .g-modal-inner{background:#282a33!important;border:1px solid #454854!important;color:#fff!important;box-shadow:0 28px 70px rgba(0,0,0,.42)!important}
[data-theme='dark'] .g-modal-info h3,[data-theme='dark'] .g-modal-prompt pre{color:#fff!important}
[data-theme='dark'] .g-modal-info .g-src,[data-theme='dark'] .g-modal-prompt .gp-head{color:#bdc1cc!important}
[data-theme='dark'] .g-modal-prompt,[data-theme='dark'] .g-modal-trans{background:#20222a!important;border-color:#424552!important;color:#eef0f5!important}
[data-theme='dark'] .g-modal-trans .gt-body{color:#e4e6ed!important}
[data-theme='dark'] .g-modal-x,[data-theme='dark'] .g-modal-prompt .gp-head button{background:#383b47!important;border-color:#515563!important;color:#fff!important}
/* 案例库：标题、摘要、元信息及三个操作按钮完整适配 */
[data-theme='dark'] .case-hero h1,[data-theme='dark'] .case-card .case-title,[data-theme='dark'] .case-modal-head h2,[data-theme='dark'] .tutorial-title,[data-theme='dark'] .tut-step .tut-body b{color:#fff!important}
[data-theme='dark'] .case-hero p,[data-theme='dark'] .case-card .case-prompt,[data-theme='dark'] .case-card .case-meta,[data-theme='dark'] .tut-step .tut-body p,[data-theme='dark'] .prompt-section .p-label{color:#c3c7d2!important}
[data-theme='dark'] .case-cover{background:#22242c!important}
[data-theme='dark'] .case-btn{background:#343640!important;border:1px solid #50535f!important;color:#fff!important;box-shadow:inset 0 1px rgba(255,255,255,.05)!important}
[data-theme='dark'] .case-btn:hover{background:#414450!important;border-color:#777083!important;color:#fff!important}
[data-theme='dark'] .case-btn.view{background:#f3f4f7!important;border-color:#f3f4f7!important;color:#181920!important}
[data-theme='dark'] .case-btn.view:hover{background:#fff!important;border-color:#fff!important;color:#111218!important}
[data-theme='dark'] .case-btn.play{background:linear-gradient(135deg,#7865e8,#6652d5)!important;border-color:#8c7af0!important;color:#fff!important;box-shadow:0 6px 16px rgba(106,82,213,.26)!important}
[data-theme='dark'] .case-btn.copy{background:#343640!important;border-color:#50535f!important;color:#f1f2f6!important}
[data-theme='dark'] .case-modal{background:#292b34!important;border-color:#454854!important;color:#fff!important}
[data-theme='dark'] .prompt-section .p-box,[data-theme='dark'] .case-tips{background:#20222a!important;border-color:#424552!important;color:#eef0f5!important}
[data-theme='dark'] .case-tag{background:#343741!important;border-color:#4b4e5a!important;color:#d7dae2!important}

/* TAKE X dark v5 · remove nested input black blocks */
[data-theme='dark'] .home-app .input-shell > #input,
[data-theme='dark'] .home-app .canvas-quick-input > textarea,
[data-theme='dark'] .home-app .chat-input-wrap > #chatInput,
[data-theme='dark'] .chat-input-wrap > #chatInput{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  outline:0!important;
}
[data-theme='dark'] .home-app .input-shell > #input{color:#f5f6fa!important}
[data-theme='dark'] .home-app .canvas-quick-input > textarea{color:#f0f2f7!important}
/* TAKE X dark v6 · 2026-09-13 · kill legacy #090a0d near-black (pro-result/result-state/canvas) + hero-toolbar translucent black */
[data-theme='dark'] body.pro-page,[data-theme='dark'] .pro-page,[data-theme='dark'] .pro-result-page{background:#1b1c22!important}
[data-theme='dark'] .app,[data-theme='dark'] :is(.main,.director-workspace){background:#1b1c22!important}
[data-theme='dark'] body.home-app:has(#resultSection:not(.hidden)),[data-theme='dark'] body.home-app:has(#historySection:not(.hidden)){background:radial-gradient(at 48% -10%,rgba(119,94,232,.16),rgba(0,0,0,0) 60%),#1b1c22!important}
[data-theme='dark'] .home-app .hero-toolbar{background:transparent!important;border-top-color:rgba(255,255,255,.10)!important}

/* TAKE X 2026-09-15 · 图5：提交后输入框锁定 + 发送按钮 loading 旋转 */
.canvas-quick-input.is-loading textarea{opacity:.55;cursor:not-allowed}
.canvas-quick-input.is-loading .canvas-quick-footer>.pro-cost{opacity:.45}
.canvas-quick-send.loading{pointer-events:none}
.canvas-quick-send.loading svg,.canvas-quick-send.loading .ic{display:none!important}
.canvas-quick-send.loading::after{content:"";width:15px;height:15px;border-radius:50%;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;animation:txq-spin .68s linear infinite;display:block}
@keyframes txq-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.canvas-quick-send.loading::after{animation-duration:1.6s}}
