.product-showcase #control.trade-setup{
  background:radial-gradient(80% 95% at 7% 0%,rgba(127,74,34,.32),transparent 65%),#0c0806 !important;
}
.trade-setup{
  --setup-rule:rgba(244,237,226,.14);
  --setup-muted:#d2c4b3;
  --setup-accent:#f5c46a;
  text-align:center;
}
html:lang(zh) .trade-setup{font-family:Geist,var(--hero-cjk-sans),sans-serif; line-break:strict}
.trade-setup .setup-heading{
  margin:0 auto; max-width:52rem; font-size:var(--landing-section-title);
  line-height:var(--landing-section-title-leading); font-weight:500; letter-spacing:-.028em;
}
.trade-setup .setup-heading:lang(zh){max-width:17em; letter-spacing:normal}
.trade-setup .setup-intro{
  max-width:56rem; margin:8px auto clamp(12px,2vh,18px);
  color:var(--setup-muted); line-height:var(--landing-section-copy-leading); font-size:var(--landing-section-copy); text-wrap:balance;
}
.product-showcase .trade-setup-workspace.agd-win{
  --setup-wire:#b49366;
  width:min(1200px,100%); margin:0 auto; padding:clamp(10px,1.2vw,15px); border-radius:20px;
}
.trade-setup-workspace [hidden]{display:none !important}
.trade-setup-workspace :focus-visible{outline:2px solid var(--setup-accent); outline-offset:2px}
.setup-workspace-head{
  display:flex; align-items:center; justify-content:space-between; gap:12px; padding-bottom:7px;
  border-bottom:1px solid var(--setup-rule); color:var(--cream);
}
.setup-symbol{display:flex; align-items:center; gap:10px}
.setup-symbol img{
  display:block; width:28px; height:28px; object-fit:contain; padding:5px;
  border-radius:8px; background:#efe2c8;
}
.setup-symbol b,.setup-symbol small{display:block}
.setup-symbol b{font-size:14px; font-weight:600}
.setup-symbol small,.setup-demo-label{color:var(--setup-muted); font-size:11px}
.setup-prompt{
  display:flex; flex-direction:column; align-items:flex-end; gap:4px;
  width:max-content; max-width:min(100%,35rem); margin:8px 0 8px auto;
}
.setup-prompt-copy,.setup-agent-copy{display:grid; min-width:0; overflow-wrap:anywhere}
.setup-prompt-copy{
  max-width:100%; padding:6px 9px; border:1px solid rgba(245,196,106,.25); border-radius:9px 3px 9px 9px;
  background:#493425; color:var(--cream); font-size:13px; line-height:1.4;
}
.setup-agent-response{display:grid}
.setup-prompt-copy > *,.setup-agent-copy > *,.setup-agent-response > *{grid-area:1/1}
.setup-prompt-reference,.setup-response-reference{visibility:hidden}
.trade-setup-workspace:is([data-phase=idle],[data-phase=typing]) .setup-prompt-text::after,
.trade-setup-workspace[data-phase=responding] .setup-response-text::after{
  content:""; display:inline-block; width:1px; height:1em; margin-inline-start:2px;
  vertical-align:-.12em; background:var(--setup-accent);
}
.setup-agent{
  margin-inline-end:clamp(0px,.7vw,10px); padding:clamp(8px,1vw,12px);
  border:1px solid rgba(244,237,226,.19); border-radius:4px 15px 15px 15px;
  background:#281c15; color:var(--cream);
}
.setup-agent-turn{display:flex; flex-direction:column; align-items:flex-start; gap:4px; margin-bottom:8px}
.setup-chat-avatar{
  display:grid; place-items:center; width:25px; height:25px;
  border:1px solid var(--setup-rule); border-radius:50%;
}
.setup-user-avatar{background:#dfc7a4; color:#55402d}
.setup-user-avatar svg{width:14px; height:14px; fill:currentColor}
.setup-agent-avatar{background:#38291e}
.setup-agent-avatar svg{width:13px; height:9px}
.trade-setup .setup-agent-copy p{
  margin:0; color:var(--setup-muted); font-size:12px; line-height:1.4;
}
.setup-agent-thinking{display:flex; flex-wrap:wrap; align-items:center; column-gap:7px}
.setup-thinking-dots{display:inline-flex; gap:3px}
.setup-thinking-dots i{width:4px; height:4px; border-radius:50%; background:var(--setup-accent)}
.trade-setup-workspace:is([data-phase=idle],[data-phase=typing]) .setup-agent,
.trade-setup-workspace:is([data-phase=thinking],[data-phase=responding]) .setup-grid{
  opacity:0; pointer-events:none;
}
.trade-setup-workspace[data-phase=thinking] .setup-agent-response{visibility:hidden}
.trade-setup-workspace[data-phase=revealing] .setup-grid{pointer-events:none}
@media (prefers-reduced-motion:no-preference){
  .trade-setup-workspace[data-phase=typing] .setup-prompt-text::after,
  .trade-setup-workspace[data-phase=responding] .setup-response-text::after{animation:agdBlink .8s step-end infinite}
  .trade-setup-workspace[data-phase=thinking] .setup-agent{animation:agdIn .35s ease-out both}
  .setup-thinking-dots i{animation:setup-dot 1s ease-in-out infinite alternate}
  .setup-thinking-dots i:nth-child(2){animation-delay:.14s}
  .setup-thinking-dots i:nth-child(3){animation-delay:.28s}
  @keyframes setup-dot{from{opacity:.38} to{opacity:1}}
  .trade-setup-workspace[data-phase=revealing] :is(.setup-stage,.setup-signal,.setup-wire,.setup-ticket,.setup-monitor,.setup-scenarios){
    animation:setup-reveal .28s ease-out both;
    animation-delay:var(--setup-reveal-delay,0ms);
  }
  .setup-signal{--setup-reveal-delay:220ms}
  .setup-signal:nth-child(2){--setup-reveal-delay:320ms}
  .setup-signal:nth-child(3){--setup-reveal-delay:420ms}
  .setup-signal:nth-child(4){--setup-reveal-delay:520ms}
  .setup-signal:nth-child(5){--setup-reveal-delay:620ms}
  .setup-stage-signal + .setup-wire{--setup-reveal-delay:920ms}
  .setup-stage-trigger{--setup-reveal-delay:1120ms}
  .setup-stage-trigger + .setup-wire{--setup-reveal-delay:1410ms}
  .setup-stage-outcome{--setup-reveal-delay:1600ms}
  .setup-ticket{--setup-reveal-delay:1940ms}
  .setup-monitor{--setup-reveal-delay:2280ms}
  .setup-scenarios{--setup-reveal-delay:2620ms}
  @keyframes setup-reveal{from{opacity:0;transform:translateY(5px)} to{opacity:1;transform:none}}
}
.setup-grid{
  display:grid; grid-template-columns:minmax(0,1fr) clamp(184px,18vw,216px); gap:10px;
}
.setup-symbols{position:absolute; pointer-events:none}
.setup-canvas{
  display:flex; flex-direction:column; min-width:0;
  border:1px solid var(--setup-rule); border-radius:12px; overflow:hidden;
  background:#1e1510;
}
.setup-scenarios{
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px;
  padding:8px 10px; border-bottom:1px solid var(--setup-rule);
}
.setup-desk h3{margin:0; font-size:13px; font-weight:600; line-height:1.25}
.setup-tab,.setup-button{
  min-height:29px; padding:4px 6px; border:1px solid var(--setup-rule); border-radius:7px;
  background:rgba(244,237,226,.045); color:var(--cream); font:inherit; font-size:12px; line-height:1.25;
  cursor:pointer;
}
.setup-tab[aria-selected=true]{border-color:rgba(245,196,106,.61); background:rgba(245,196,106,.14); color:#f8d994}
.setup-tab:hover,.setup-button:hover{background:rgba(244,237,226,.13)}
.setup-flow{
  display:grid; flex:1; align-items:center;
  grid-template-columns:minmax(0,1.3fr) 32px minmax(0,1fr) 32px minmax(0,1fr);
  min-height:246px; padding:9px 10px 10px;
}
.setup-stage{min-width:0; border:1px solid var(--setup-rule); border-radius:9px; background:#271d16}
.setup-stage-trigger{background:#2b2018}
.setup-stage-outcome{border-color:rgba(245,196,106,.25); background:#302217}
.setup-step-label{
  display:flex; align-items:center; gap:6px; min-height:33px; padding:6px 9px;
  border-bottom:1px solid var(--setup-rule); color:#efd4b1; font-size:12px; font-weight:600; line-height:1.2;
}
.setup-signals{min-width:0; list-style:none; margin:0; padding:6px; display:grid; gap:4px}
.setup-signal,.setup-node-body{
  min-width:0; border:1px solid var(--setup-rule); border-radius:6px; background:#33251b;
  color:var(--cream); line-height:1.35; overflow-wrap:anywhere;
}
.setup-signal{
  display:grid; grid-template-columns:22px minmax(0,1fr);
  align-items:center; gap:6px; padding:4px 6px;
}
.setup-signal-icon{
  display:grid; place-items:center; width:22px; height:22px; border-radius:5px;
  background:#483629; color:#e1c5a4;
}
.setup-signal-icon svg,.setup-step-label svg,.setup-monitor h3 svg{
  flex:none; width:13px; height:13px; fill:none; stroke:currentColor; stroke-width:1.55;
  stroke-linecap:round; stroke-linejoin:round;
}
.setup-node-body{margin:6px; padding:8px}
.setup-stage-outcome .setup-node-body{background:#3a2a1e}
.setup-signal b,.setup-signal small,.setup-node-body b,.setup-node-body small{display:block}
.setup-signal b,.setup-node-body b{font-size:12px; font-weight:600}
.setup-signal small,.setup-node-body small{margin-top:2px; color:var(--setup-muted); font-size:11px}
.setup-trigger-state{
  display:inline-block; margin-top:6px; padding:2px 5px; border-radius:5px;
  background:rgba(244,237,226,.08); color:#e2d2bf; font-size:10px;
}
.setup-wire{
  justify-self:center; width:calc(100% - 8px); height:2px;
  background:var(--setup-wire); position:relative;
}
.setup-wire::after{
  content:""; position:absolute; inset-inline-end:2px; top:50%; width:8px; height:8px;
  border:solid var(--setup-wire); border-width:2px 2px 0 0; transform:translateY(-50%) rotate(45deg);
}
.setup-desk{display:grid; align-content:start; gap:12px; min-width:0}
.setup-desk-card{
  display:grid; gap:6px; padding:8px; border:1px solid var(--setup-rule); border-radius:10px;
  background:#251b15;
}
.setup-desk-head{display:flex; justify-content:space-between; align-items:baseline; gap:6px; flex-wrap:wrap}
.setup-ticket{border-color:#6a4f38; background:#38291e}
.setup-side{
  padding:3px 6px; border-radius:5px; background:rgba(244,237,226,.085);
  font-size:11px; line-height:1.3; color:#f0ddbd;
}
.setup-monitor h3{display:flex; align-items:center; gap:6px}
.setup-monitor h3 svg{color:#e6c79f}
.setup-channels{display:grid; gap:4px}
.setup-channel{
  display:flex; align-items:center; gap:7px;
  min-height:27px; padding:3px 6px; text-align:left; font-size:11px;
}
.setup-channel[aria-expanded=true]{border-color:rgba(245,196,106,.5); background:#3b2c20}
.setup-channel-logo{
  display:flex; flex:none; align-items:center; justify-content:center;
  width:18px; height:18px; border-radius:5px;
}
.setup-channel-logo svg{display:block}
.setup-channel[data-setup-channel=WhatsApp] .setup-channel-logo{background:#207648}
.setup-channel[data-setup-channel=Telegram] .setup-channel-logo{background:#1673a1}
.setup-channel[data-setup-channel=iMessage] .setup-channel-logo{background:#3c9c56}
.setup-channel-preview{
  display:grid; gap:3px; padding:7px; border:1px solid var(--setup-rule);
  border-radius:7px; background:#302319; color:#efd4b1; font-size:11px; line-height:1.35;
}
.setup-button{width:100%}
.setup-primary{color:#24180f; background:#f3dba7; border-color:#f3dba7; font-weight:600}
.setup-primary:hover{background:#ffe7b8}
.setup-desk-card p{margin:0; color:var(--setup-muted); font-size:11px; line-height:1.4; overflow-wrap:anywhere}
.setup-desk-card .setup-feedback{color:#f1d49a; padding:7px 8px; border-radius:6px; background:rgba(245,196,106,.085)}
.setup-order-levels{display:grid; margin:0; padding:2px 4px; border-radius:7px; background:#2b2019}
.setup-order-levels div{
  --level-color:#e4c18c;
  position:relative; display:flex; align-items:center; justify-content:space-between; gap:6px;
  min-height:25px; padding:2px 5px 2px 19px; border-radius:5px;
}
.setup-order-levels div:not(:last-child)::after{
  content:""; position:absolute; left:9px; top:50%; height:100%; width:1px; background:#725943;
}
.setup-order-levels div::before{
  content:""; position:absolute; z-index:1; left:6px; top:50%; width:7px; height:7px;
  transform:translateY(-50%); border-radius:50%; background:var(--level-color);
}
.setup-order-levels [data-setup-level=target]{--level-color:#b4c5a6}
.setup-order-levels [data-setup-level=stop]{--level-color:#e0a99e}
.setup-order-levels [data-setup-level=entry]{background:#493627}
.setup-order-levels dt{color:var(--setup-muted); font-size:11px}
.setup-order-levels dd{margin:0; color:var(--level-color); font-size:12px; font-weight:600; font-variant-numeric:tabular-nums}
.setup-order-levels [data-setup-level=entry] dd{font-size:14px}
.setup-reward{display:flex; justify-content:space-between; align-items:baseline; gap:5px; color:var(--setup-muted); font-size:11px}
.setup-reward strong{color:var(--cream); font-size:13px; font-weight:600; font-variant-numeric:tabular-nums}
.setup-order-form{display:grid; gap:7px}
.setup-order-form label{display:flex; justify-content:space-between; align-items:center; gap:7px; font-size:12px}
.setup-order-form input{
  width:62px; padding:5px; color:var(--cream); background:#241911; border:1px solid var(--setup-rule); border-radius:5px;
}
@media (max-width:780px){
  .setup-grid{grid-template-columns:minmax(0,1fr)}
  .setup-desk{grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start}
}
@media (max-width:580px){
  .setup-prompt{max-width:92%}
  .setup-agent{margin-inline-end:0}
  .setup-desk{grid-template-columns:minmax(0,1fr)}
  .setup-flow{grid-template-columns:minmax(0,1fr); min-height:0}
  .setup-wire{width:2px; height:24px; margin-block:3px}
  .setup-wire::after{top:auto; bottom:2px; inset-inline-end:auto; left:50%; transform:translateX(-50%) rotate(135deg)}
  .setup-tab,.setup-button{min-height:44px}
  .setup-tab{font-size:11px}
}
