/* 智能助手 · 对照图1「创作流程」浮层，点空白关闭 */

.xc-wf-overlay {
  position: fixed;
  inset: 0;
  z-index: 13000;
  display: none;
  align-items: flex-start;
  justify-content: flex-end;
  padding: var(--xc-header-h, var(--studio-topbar-h, 52px)) 12px 12px;
  background: rgba(20, 18, 16, 0.28);
  backdrop-filter: blur(4px);
}
.xc-wf-overlay.show { display: flex; }

.xc-wf-card {
  width: min(560px, 100%);
  max-height: calc(100vh - 20px);
  overflow: auto;
  background: #fffdf8;
  color: #1c1914;
  border: 1px solid rgba(28, 26, 23, 0.12);
  border-radius: 22px;
  padding: 20px 22px 18px;
  box-shadow: 0 24px 64px rgba(20, 18, 16, 0.22);
  position: relative;
}
html.theme-dark .xc-wf-card,
html.studio-theme-dark .xc-wf-card {
  background: #14120e;
  color: #f2f1ea;
  border-color: rgba(242, 227, 173, 0.18);
}

.xc-wf-card .awf-root {
  padding: 0;
  border: 0;
  background: none;
  gap: 12px;
}
.xc-wf-card .awf-bar-title strong {
  font-size: 17px;
  font-weight: 800;
  color: inherit;
}
.xc-wf-card .awf-bar-title span {
  font-size: 12px;
  color: #6b6456;
}
html.theme-dark .xc-wf-card .awf-bar-title span,
html.studio-theme-dark .xc-wf-card .awf-bar-title span {
  color: rgba(242, 241, 234, 0.55);
}
.xc-wf-card .awf-bar-current {
  font-size: 12px;
  color: #8a6d1f;
}
html.theme-dark .xc-wf-card .awf-bar-current,
html.studio-theme-dark .xc-wf-card .awf-bar-current {
  color: #f2e3ad;
}
.xc-wf-card .awf-step {
  background: #f4efe3;
  border-color: rgba(28, 26, 23, 0.1);
  color: #6b6456;
}
html.theme-dark .xc-wf-card .awf-step,
html.studio-theme-dark .xc-wf-card .awf-step {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(242, 241, 234, 0.6);
}
.xc-wf-card .awf-step.is-active {
  background: rgba(52, 211, 153, 0.16);
  border-color: rgba(52, 211, 153, 0.45);
  color: #8a6d1f;
}
.xc-wf-card .awf-step.is-active .awf-step-idx {
  background: #34d399;
  color: #052e1a;
}
.xc-wf-card .awf-dash {
  background: #f6f1e6;
  border-color: rgba(28, 26, 23, 0.08);
  border-radius: 16px;
  padding: 14px 16px;
}
html.theme-dark .xc-wf-card .awf-dash,
html.studio-theme-dark .xc-wf-card .awf-dash {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}
.xc-wf-card .awf-dash-summary {
  font-size: 13.5px;
  font-weight: 700;
  color: inherit;
}
.xc-wf-card .awf-action-chip {
  background: #fffdf8 !important;
  color: #8a6d1f !important;
  border: 1px solid rgba(138, 109, 31, 0.35) !important;
  border-radius: 999px;
  padding: 7px 14px;
}
html.theme-dark .xc-wf-card .awf-action-chip,
html.studio-theme-dark .xc-wf-card .awf-action-chip {
  background: rgba(242, 227, 173, 0.1) !important;
  color: #f2e3ad !important;
}
.xc-wf-card .awf-dash-hint {
  font-size: 12px;
  line-height: 1.7;
  color: #6b6456;
  margin-top: 8px;
}
html.theme-dark .xc-wf-card .awf-dash-hint,
html.studio-theme-dark .xc-wf-card .awf-dash-hint {
  color: rgba(242, 241, 234, 0.5);
}

.xc-wf-x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(28, 26, 23, 0.14);
  background: #fff;
  color: #3a342c;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.xc-wf-x:hover { background: #f4efe3; }

/* 创作流程浮层不再顶替智能助手；右下监视器仍隐藏 */
.xc-wf-overlay,
.xc-wf-overlay.show,
.nano-monitor,
#studioAgentOrb,
.agent-orb {
  display: none !important;
}
