#mmw-qianchuan-agent-root,
#mmw-qianchuan-agent-root * {
  box-sizing: border-box;
}

.mmw-qca-takeover {
  box-sizing: border-box;
  position: fixed;
  z-index: 2147483646;
  top: 14px;
  left: calc(50% + 40px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(260px, calc(100vw - 32px));
  height: 52px;
  padding: 6px 7px 6px 10px;
  color: #f8fbff;
  background: rgba(12, 26, 45, .96);
  border: 1px solid rgba(95, 174, 255, .68);
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(4, 16, 31, .24);
  font: 13px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.mmw-qca-takeover[hidden] { display: none; }
.mmw-qca-takeover[data-mode="monitoring"] { border-color: rgba(95, 174, 255, .78); }
.mmw-qca-takeover[data-state="attention"] { border-color: rgba(247, 144, 9, .9); }
.mmw-qca-takeover > div { display: grid; flex: 1; min-width: 0; gap: 1px; }
.mmw-qca-takeover strong { font-size: 12px; line-height: 1.25; }
.mmw-qca-takeover [data-takeover-status] { color: rgba(232, 241, 252, .74); overflow: hidden; font-size: 10px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.mmw-qca-takeover button {
  border: 0;
  min-height: 34px;
  border-radius: 8px;
  padding: 0 8px;
  color: #fff;
  background: #d94452;
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}
.mmw-qca-takeover button:disabled { cursor: wait; opacity: .65; }
.mmw-qca-takeover-pulse { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #5faeff; box-shadow: 0 0 0 0 rgba(95,174,255,.55); animation: mmw-qca-takeover-pulse 1.5s infinite; }
.mmw-qca-takeover[data-state="attention"] .mmw-qca-takeover-pulse { background: #f79009; animation: none; }
.mmw-qca-managed-loop::after,
.mmw-qca-is-taken-over::after {
  content: "";
  position: fixed;
  z-index: 2147483645;
  inset: 3px;
  border: 2px solid rgba(38, 132, 255, .72);
  border-radius: 12px;
  pointer-events: none;
}
.mmw-qca-is-taken-over::after {
  border-width: 3px;
  border-color: rgba(38, 132, 255, .96);
  box-shadow: 0 0 8px 2px rgba(38, 132, 255, .46), inset 0 0 8px rgba(38, 132, 255, .18);
  animation: mmw-qca-control-executing-glow 1.2s ease-in-out infinite alternate;
}
@keyframes mmw-qca-takeover-pulse { 70% { box-shadow: 0 0 0 8px rgba(95,174,255,0); } 100% { box-shadow: 0 0 0 0 rgba(95,174,255,0); } }
@keyframes mmw-qca-control-executing-glow {
  from { box-shadow: 0 0 5px 1px rgba(38, 132, 255, .32), inset 0 0 6px rgba(38, 132, 255, .12); }
  to { box-shadow: 0 0 10px 3px rgba(38, 132, 255, .58), inset 0 0 10px rgba(38, 132, 255, .24); }
}

#mmw-qianchuan-agent-root {
  --qca-blue: #0b74de;
  --qca-blue-strong: #075faf;
  --qca-ink: #17212b;
  --qca-muted: #667085;
  --qca-line: #e4e7ec;
  --qca-soft: #f6f8fb;
  --qca-chat-width: min(390px, calc(100vw - 28px));
  --qca-tools-width: min(320px, calc(100vw - 20px));
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  pointer-events: none;
  color: var(--qca-ink);
  font: 14px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

#mmw-qianchuan-agent-root [hidden] { display: none !important; }
#mmw-qianchuan-agent-root > * { pointer-events: auto; }

.mmw-qca-launch {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(11, 116, 222, .2);
  border-radius: 12px;
  background: #fff;
  color: #075faf;
  box-shadow: 0 4px 8px rgba(16, 24, 40, .14);
  cursor: pointer;
  font-weight: 650;
  touch-action: none;
  user-select: none;
  transition: width 180ms ease-out, padding 180ms ease-out, border-radius 180ms ease-out, box-shadow 180ms ease-out;
}

.mmw-qca-launch:hover { border-color: rgba(11, 116, 222, .52); }
.mmw-qca-launch-mark { display: grid; width: 24px; height: 24px; flex: 0 0 24px; place-items: center; border-radius: 8px; background: #eef6ff; color: #075faf; font-size: 12px; font-weight: 750; }
.mmw-qca-launch.is-docked-left,
.mmw-qca-launch.is-docked-right { width: 42px; padding: 0 8px; }
.mmw-qca-launch.is-docked-left { border-left: 0; border-radius: 0 12px 12px 0; }
.mmw-qca-launch.is-docked-right { border-right: 0; border-radius: 12px 0 0 12px; }
.mmw-qca-launch.is-docked-left .mmw-qca-launch-label,
.mmw-qca-launch.is-docked-right .mmw-qca-launch-label { display: none; }
.mmw-qca-launch.is-dragging { width: auto; padding: 0 16px; border-radius: 12px; cursor: grabbing; transition: none; }
.mmw-qca-launch.is-dragging .mmw-qca-launch-label { display: inline; }

.mmw-qca-panel {
  position: fixed;
  width: var(--qca-chat-width);
  height: min(690px, calc(100vh - 40px));
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 52px rgba(16, 24, 40, .22);
}

.mmw-qca-panel:not([hidden]) { display: grid; grid-template-rows: auto auto auto auto minmax(0, 1fr) auto; }

.mmw-qca-tools-panel {
  position: fixed;
  width: var(--qca-tools-width);
  height: min(690px, calc(100vh - 40px));
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(16, 24, 40, .2);
}

.mmw-qca-tools-panel:not([hidden]) { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.mmw-qca-tools-panel[data-layout="overlay"] { z-index: 2; }

.mmw-qca-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 15px 0 18px;
  border-bottom: 1px solid var(--qca-line);
}

.mmw-qca-header > div { display: flex; align-items: center; gap: 9px; }
.mmw-qca-header > div:first-child { min-width: 0; }
.mmw-qca-header > div:first-child > strong { flex: 0 0 auto; }
.mmw-qca-header-actions { flex: 0 0 auto; gap: 6px !important; }
.mmw-qca-header strong { font-size: 16px; }
.mmw-qca-scope { max-width: 108px; overflow: hidden; padding: 2px 8px; border-radius: 999px; background: #eef6ff; color: #075faf; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.mmw-qca-agent-power {
  position: relative;
  display: grid;
  width: 112px;
  min-height: 34px;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  padding: 3px;
  border: 0;
  border-radius: 999px;
  background: #eaecf0;
  color: #475467;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 650;
  isolation: isolate;
  transition: background-color 160ms ease-out;
}
.mmw-qca-agent-power::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .18);
  transition: transform 180ms cubic-bezier(.25, 1, .5, 1), background-color 160ms ease-out;
}
.mmw-qca-agent-power > span { display: grid; place-items: center; min-width: 0; }
.mmw-qca-agent-power [data-agent-power-off] { color: #344054; }
.mmw-qca-agent-power [data-agent-power-on] { color: #667085; }
.mmw-qca-agent-power:hover:not(:disabled) { background: #dfe3e8; }
.mmw-qca-agent-power:focus-visible { outline: 2px solid rgba(11, 116, 222, .3); outline-offset: 2px; }
.mmw-qca-agent-power:disabled { cursor: not-allowed; opacity: .55; }
.mmw-qca-agent-power.is-on { background: #d1e9ff; }
.mmw-qca-agent-power.is-on::before { transform: translateX(100%); background: #1570ef; }
.mmw-qca-agent-power.is-on [data-agent-power-off] { color: #667085; }
.mmw-qca-agent-power.is-on [data-agent-power-on] { color: #fff; }
.mmw-qca-agent-power.is-on[data-phase="attention"] { background: #fef0c7; }
.mmw-qca-agent-power.is-on[data-phase="attention"]::before { background: #dc6803; }
.mmw-qca-icon { width: 38px; height: 38px; border: 0; border-radius: 8px; background: transparent; color: #667085; cursor: pointer; font-size: 24px; line-height: 1; }
.mmw-qca-icon:hover { background: var(--qca-soft); color: var(--qca-ink); }

.mmw-qca-tools-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 9px;
  border: 0;
  border-radius: 8px;
  background: var(--qca-soft);
  color: #344054;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
}
.mmw-qca-tools-toggle:hover,
.mmw-qca-tools-toggle.is-open { background: #eef6ff; color: var(--qca-blue-strong); }
.mmw-qca-tools-indicator { width: 7px; height: 7px; border-radius: 50%; background: #98a2b3; }
.mmw-qca-tools-indicator.is-managed { background: #2684ff; box-shadow: 0 0 0 3px rgba(38, 132, 255, .13); }
.mmw-qca-tools-chevron { width: 10px; color: #667085; font-size: 16px; line-height: 1; }

.mmw-qca-tools-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 12px 0 16px;
  border-bottom: 1px solid var(--qca-line);
}
.mmw-qca-tools-header > div { display: grid; gap: 1px; min-width: 0; }
.mmw-qca-tools-header strong { font-size: 15px; }
.mmw-qca-tools-summary { color: var(--qca-muted); font-size: 11px; }
.mmw-qca-tools-body { min-height: 0; overflow-y: auto; scrollbar-width: thin; }

.mmw-qca-wallet-reminder {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-bottom: 1px solid #dbeafe;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}
.mmw-qca-wallet-reminder::before {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  border-radius: 7px;
  background: #2563eb;
  color: #fff;
  content: "AI";
  font-size: 10px;
  font-weight: 750;
}

.mmw-qca-usage-notice-bar {
  padding: 7px 14px;
  border-bottom: 1px solid var(--qca-line);
  background: #fff;
}
.mmw-qca-usage-notice-bar button {
  display: flex;
  width: 100%;
  min-height: 32px;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: var(--qca-soft);
  color: #344054;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
}
.mmw-qca-usage-notice-bar button:hover { background: #eef2f6; }
.mmw-qca-usage-notice-bar strong { color: var(--qca-blue-strong); font-size: 11px; }

.mmw-qca-usage-notice-dialog {
  width: min(680px, calc(100vw - 32px));
  max-width: none;
  height: min(760px, calc(100vh - 32px));
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: var(--qca-ink);
  box-shadow: 0 16px 40px rgba(16, 24, 40, .24);
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}
.mmw-qca-usage-notice-dialog[open] { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; }
.mmw-qca-usage-notice-dialog::backdrop { background: rgba(16, 24, 40, .52); }
.mmw-qca-usage-notice-dialog > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--qca-line);
}
.mmw-qca-usage-notice-dialog h2 { margin: 0; color: #101828; font-size: 18px; line-height: 1.4; text-wrap: balance; }
.mmw-qca-usage-notice-dialog header p { margin: 2px 0 0; color: var(--qca-muted); font-size: 12px; }
.mmw-qca-usage-notice-trigger { margin: 0; padding: 11px 20px; background: #eef6ff; color: #175cd3; font-size: 13px; }
.mmw-qca-usage-notice-content { overflow-y: auto; padding: 4px 20px 18px; scrollbar-width: thin; }
.mmw-qca-usage-notice-content section { padding: 14px 0 2px; }
.mmw-qca-usage-notice-content section + section { border-top: 1px solid #eef0f3; }
.mmw-qca-usage-notice-content h3 { margin: 0 0 7px; color: #1d2939; font-size: 14px; line-height: 1.45; }
.mmw-qca-usage-notice-content p { max-width: 72ch; margin: 0 0 8px; color: #475467; font-size: 13px; text-wrap: pretty; }
.mmw-qca-usage-notice-dialog > footer { display: flex; justify-content: flex-end; padding: 12px 20px 16px; border-top: 1px solid var(--qca-line); }
.mmw-qca-usage-notice-dialog > footer button { min-width: 104px; }

.mmw-qca-connection {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  max-height: 88px;
  overflow-y: auto;
  padding: 7px 18px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 12px;
}

.mmw-qca-connection > span:first-child { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #f79009; }
.mmw-qca-connection > span:nth-child(2) { flex: 1; }
.mmw-qca-connection.is-ready { background: #ecfdf3; color: #067647; }
.mmw-qca-connection.is-ready > span:first-child { background: #12b76a; }
.mmw-qca-connection.is-context-invalidated { background: #fff4ed; color: #b42318; }
.mmw-qca-connection.is-context-invalidated > span:first-child { background: #f04438; }
.mmw-qca-connection button { border: 0; background: transparent; color: currentColor; cursor: pointer; font-weight: 650; }
.mmw-qca-connection-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 4px; }
.mmw-qca-connection-actions button { min-height: 26px; padding: 0 7px; border: 1px solid currentColor; border-radius: 7px; white-space: nowrap; }
.mmw-qca-connection-actions button:first-child { border-color: transparent; }
.mmw-qca-connection.is-context-invalidated .mmw-qca-connection-actions button:first-child { border-color: currentColor; background: #fff; }
.mmw-qca-connection-actions button:hover { background: rgba(154, 52, 18, .08); }

.mmw-qca-body { min-height: 0; overflow-y: auto; padding: 12px 16px; scrollbar-width: thin; }
.mmw-qca-chat-body { display: flex; flex-direction: column; gap: 12px; }
.mmw-qca-chat-body .mmw-qca-proposals { margin-top: 0; }
.mmw-qca-runtime-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid #e4e7ec;
  border-radius: 11px;
  background: #f9fafb;
}
.mmw-qca-runtime-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: #98a2b3; }
.mmw-qca-runtime-summary > div { display: grid; min-width: 0; gap: 2px; }
.mmw-qca-runtime-title { color: #344054; font-size: 13px; }
.mmw-qca-runtime-detail { overflow: hidden; color: var(--qca-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.mmw-qca-runtime-summary.is-active { border-color: #b2ddff; background: #eff8ff; }
.mmw-qca-runtime-summary.is-active .mmw-qca-runtime-dot { background: #2e90fa; box-shadow: 0 0 0 4px rgba(46, 144, 250, .12); }
.mmw-qca-runtime-summary.is-managed[data-phase="monitoring"] { border-color: #abefc6; background: #ecfdf3; }
.mmw-qca-runtime-summary.is-managed[data-phase="monitoring"] .mmw-qca-runtime-dot { background: #12b76a; box-shadow: 0 0 0 4px rgba(18, 183, 106, .12); }
.mmw-qca-runtime-summary.is-active .mmw-qca-runtime-dot { animation: mmw-qca-agent-power-pulse 1.8s ease-out infinite; }
.mmw-qca-runtime-summary.is-attention { border-color: #fedf89; background: #fffaeb; }
.mmw-qca-runtime-summary.is-attention .mmw-qca-runtime-dot { background: #f79009; box-shadow: 0 0 0 4px rgba(247, 144, 9, .12); animation: none; }
.mmw-qca-runtime-footer { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-top: 1px solid var(--qca-line); background: #fff; }
.mmw-qca-power-control { display: flex; min-width: 0; flex: 1; align-items: center; justify-content: space-between; gap: 10px; }
.mmw-qca-power-control > div { display: grid; min-width: 0; gap: 1px; }
.mmw-qca-power-control strong { color: #17212b; font-size: 12px; }
.mmw-qca-power-control [data-agent-power-caption] { overflow: hidden; color: #667085; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.mmw-qca-runtime-footer button { flex: 0 0 auto; }
.mmw-qca-tools-panel .mmw-qca-managed-settings,
.mmw-qca-tools-panel .mmw-qca-task-patrol-settings,
.mmw-qca-tools-panel .mmw-qca-monitor-settings,
.mmw-qca-tools-panel .mmw-qca-preference-settings,
.mmw-qca-tools-panel .mmw-qca-skill-settings {
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--qca-line);
  border-radius: 0;
}
.mmw-qca-tools-panel .mmw-qca-workflow-automation,
.mmw-qca-tools-panel .mmw-qca-workflow-notifications {
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--qca-line);
  border-radius: 0;
}
.mmw-qca-tools-panel .mmw-qca-workflow-automation > summary,
.mmw-qca-tools-panel .mmw-qca-workflow-notifications > summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  cursor: pointer;
  color: #344054;
}
.mmw-qca-tools-panel .mmw-qca-workflow-automation > summary strong,
.mmw-qca-tools-panel .mmw-qca-workflow-notifications > summary strong { color: #075faf; font-size: 12px; }
.mmw-qca-tools-panel details[open] > summary { border-bottom: 1px solid var(--qca-line); }
.mmw-qca-tools-panel .mmw-qca-managed-settings summary,
.mmw-qca-tools-panel .mmw-qca-task-patrol-settings summary,
.mmw-qca-tools-panel .mmw-qca-monitor-settings summary,
.mmw-qca-tools-panel .mmw-qca-preference-settings summary,
.mmw-qca-tools-panel .mmw-qca-skill-settings summary { min-height: 48px; padding: 0 14px; }
.mmw-qca-tools-panel .mmw-qca-memory { margin: 0; padding: 12px 14px 16px; border-top: 0; }
.mmw-qca-managed-settings { margin: 0 0 14px; border: 1px solid var(--qca-line); border-radius: 11px; background: #fff; }
.mmw-qca-managed-settings summary { display: flex; align-items: center; justify-content: space-between; min-height: 40px; padding: 0 11px; cursor: pointer; color: #344054; }
.mmw-qca-managed-settings summary strong { color: #075faf; font-size: 12px; }
.mmw-qca-managed-settings[open] summary { border-bottom: 1px solid var(--qca-line); }
.mmw-qca-mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 10px; padding: 3px; border-radius: 9px; background: var(--qca-soft); }
.mmw-qca-mode-switch label { position: relative; cursor: pointer; }
.mmw-qca-mode-switch input { position: absolute; opacity: 0; pointer-events: none; }
.mmw-qca-mode-switch span { display: grid; place-items: center; min-height: 32px; border-radius: 7px; color: var(--qca-muted); font-weight: 650; }
.mmw-qca-mode-switch input:checked + span { background: #fff; color: #075faf; box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }
.mmw-qca-managed-fields { display: block; padding: 0 10px 10px; }
.mmw-qca-setting-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mmw-qca-setting-grid label { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 4px; color: #475467; font-size: 12px; }
.mmw-qca-setting-grid label.is-wide { grid-column: 1 / -1; }
.mmw-qca-setting-grid label > span { grid-column: 1 / -1; }
.mmw-qca-setting-grid input { width: 100%; min-height: 34px; padding: 0 8px; border: 1px solid #d0d5dd; border-radius: 8px; color: var(--qca-ink); font: inherit; }
.mmw-qca-setting-grid em { padding-bottom: 7px; color: var(--qca-muted); font-style: normal; }
.mmw-qca-safety-note { margin: 8px 0 0; color: #667085; font-size: 11px; line-height: 1.55; }
.mmw-qca-consent { display: none; gap: 7px; align-items: flex-start; margin-top: 10px; color: #344054; font-size: 12px; }
.mmw-qca-managed-settings.is-managed .mmw-qca-consent { display: flex; }
.mmw-qca-consent input { margin-top: 3px; accent-color: var(--qca-blue); }
.mmw-qca-section-note { margin: 0; padding: 0 12px 12px; color: var(--qca-muted); font-size: 11px; line-height: 1.5; }
.mmw-qca-workflow-basics { background: #fff; }
.mmw-qca-workflow-basics > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px; }
.mmw-qca-workflow-basics > header > div { display: grid; min-width: 0; }
.mmw-qca-workflow-basics > header strong { color: #1d2939; font-size: 13px; }
.mmw-qca-workflow-basics-summary { flex: 0 0 auto; padding-top: 2px; color: #075faf; font-size: 10px; font-style: normal; font-weight: 650; white-space: nowrap; }
.mmw-qca-workflow-enable { display: flex; min-height: 44px; align-items: center; gap: 8px; margin: 0 12px 8px; padding: 8px 12px; border-radius: 8px; background: #f2f7ff; color: #1849a9; font-size: 12px; font-weight: 650; }
.mmw-qca-workflow-enable input { margin: 0; accent-color: var(--qca-blue); }
.mmw-qca-workflow-scope { margin-top: 12px; padding: 12px; border-top: 1px solid #eef0f3; }
.mmw-qca-workflow-scope > span { color: #344054; font-size: 12px; font-weight: 650; }
.mmw-qca-target-switch { margin: 8px 0; }
.mmw-qca-target-switch span { padding: 0 5px; font-size: 11px; text-align: center; }
.mmw-qca-target-plan { display: grid; gap: 7px; margin-top: 8px; color: #475467; font-size: 12px; }
.mmw-qca-target-plan[hidden] { display: none; }
.mmw-qca-target-plan > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mmw-qca-target-plan > header > span { font-weight: 650; }
.mmw-qca-target-plan > header > button,
.mmw-qca-target-plan-row > button { min-height: 28px; padding: 0 8px; border: 1px solid #b9cdf8; border-radius: 7px; background: #f2f7ff; color: #075faf; font: inherit; font-size: 11px; font-weight: 650; cursor: pointer; }
.mmw-qca-target-plan > header > button:disabled { cursor: not-allowed; border-color: #d0d5dd; background: #f5f6f8; color: #98a2b3; }
.mmw-qca-target-plan-list { display: grid; gap: 6px; }
.mmw-qca-target-plan-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.mmw-qca-target-plan-row > button { border-color: #d0d5dd; background: #fff; color: #475467; }
.mmw-qca-target-plan-row > button[hidden] { display: none; }
.mmw-qca-target-plan input,
.mmw-qca-workflow-interval input,
.mmw-qca-workflow-rule-fields input { width: 100%; min-height: 34px; padding: 0 8px; border: 1px solid #d0d5dd; border-radius: 8px; color: var(--qca-ink); font: inherit; }
.mmw-qca-workflow-scope p,
.mmw-qca-workflow-rule p { margin: 8px 0 0; color: #667085; font-size: 11px; line-height: 1.55; }
.mmw-qca-workflow-interval { padding: 0 12px 12px; }
.mmw-qca-workflow-interval label { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 5px; color: #475467; font-size: 12px; }
.mmw-qca-workflow-interval label > span { grid-column: 1 / -1; }
.mmw-qca-workflow-interval em,
.mmw-qca-workflow-rule-fields em { padding-bottom: 7px; color: var(--qca-muted); font-style: normal; white-space: nowrap; }
.mmw-qca-workflow-rules-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px 12px 8px; border-top: 1px solid #eef0f3; background: #f8fafc; }
.mmw-qca-workflow-rules-heading strong { color: #1d2939; font-size: 13px; }
.mmw-qca-workflow-rules-heading span { color: #667085; font-size: 10px; }
.mmw-qca-workflow-rule-list { display: grid; gap: 12px; padding: 0 12px 16px; background: #f8fafc; }
.mmw-qca-workflow-rule { overflow: hidden; border: 1px solid #e4e7ec; border-radius: 10px; background: #fff; }
.mmw-qca-workflow-rule > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; min-height: 56px; align-items: center; gap: 8px; padding: 8px 12px; list-style: none; cursor: pointer; transition: background-color 180ms cubic-bezier(.22, 1, .36, 1), border-color 180ms cubic-bezier(.22, 1, .36, 1); }
.mmw-qca-workflow-rule > summary::-webkit-details-marker { display: none; }
.mmw-qca-workflow-rule > summary:hover { background: #f9fafb; }
.mmw-qca-workflow-rule > summary:focus-visible { outline-offset: -2px; }
.mmw-qca-workflow-rule[open] > summary { border-bottom: 1px solid #e4e7ec; background: #f9fafb; }
.mmw-qca-rule-heading { display: flex; min-width: 0; align-items: center; gap: 8px; }
.mmw-qca-rule-heading > span:last-child { display: grid; min-width: 0; gap: 2px; }
.mmw-qca-rule-heading strong { color: #1d2939; font-size: 12px; }
.mmw-qca-rule-heading small { overflow: hidden; color: #667085; font-size: 10px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.mmw-qca-rule-kind { display: grid; flex: 0 0 auto; min-width: 34px; min-height: 22px; place-items: center; padding: 0 6px; border-radius: 999px; font-size: 10px; font-weight: 700; }
.mmw-qca-rule-kind.is-down { background: #ecfdf3; color: #067647; }
.mmw-qca-rule-kind.is-up { background: #eff8ff; color: #175cd3; }
.mmw-qca-rule-kind.is-guard { background: #fffaeb; color: #b54708; }
.mmw-qca-rule-meta { display: flex; align-items: center; gap: 8px; }
.mmw-qca-rule-state { min-height: 22px; padding: 3px 7px; border-radius: 999px; background: #f2f4f7; color: #475467; font-size: 10px; font-style: normal; font-weight: 650; white-space: nowrap; }
.mmw-qca-rule-state.is-on { background: #eef4ff; color: #1849a9; }
.mmw-qca-rule-state.is-off { background: #f2f4f7; color: #667085; }
.mmw-qca-rule-state.is-guard { background: #fff4e5; color: #93370d; }
.mmw-qca-rule-chevron { width: 7px; height: 7px; border-right: 1.5px solid #667085; border-bottom: 1.5px solid #667085; transform: rotate(45deg); transition: transform 180ms cubic-bezier(.22, 1, .36, 1); }
.mmw-qca-workflow-rule[open] .mmw-qca-rule-chevron { transform: rotate(225deg); }
.mmw-qca-workflow-rule-content { padding: 12px; }
.mmw-qca-workflow-rule-content > p { margin: 12px 0 0; }
.mmw-qca-rule-control-row { display: flex; min-height: 36px; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; color: #344054; font-size: 11px; font-weight: 650; }
.mmw-qca-workflow-rule-toggle { position: relative; display: inline-flex; flex: 0 0 auto; align-items: center; gap: 5px; min-height: 32px; padding: 0 9px; border: 1px solid #d0d5dd; border-radius: 999px; cursor: pointer; background: #fff; }
.mmw-qca-workflow-rule-toggle::before { content: ""; position: absolute; inset: -6px; }
.mmw-qca-workflow-rule-toggle input { width: auto; min-height: auto; margin: 0; accent-color: var(--qca-blue); }
.mmw-qca-workflow-rule-toggle span { color: #475467; font-size: 11px; font-weight: 650; }
.mmw-qca-cold-start-rule.is-enabled .mmw-qca-workflow-rule-toggle { border-color: #84adff; background: #f2f7ff; }
.mmw-qca-cold-start-rule.is-enabled .mmw-qca-workflow-rule-toggle span { color: #075faf; }
.mmw-qca-workflow-rule-fields { display: grid; grid-template-columns: 1fr; gap: 12px; }
.mmw-qca-workflow-rule-fields label { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 4px; color: #475467; font-size: 12px; }
.mmw-qca-workflow-rule-fields label > span { grid-column: 1 / -1; }
.mmw-qca-workflow-rule-fields input { min-height: 36px; background: #fff; }
.mmw-qca-pause-rule-fields { grid-template-columns: 1fr; }
.mmw-qca-pause-rule-fields label:last-child { grid-column: 1 / -1; }
.mmw-qca-cold-start-rule-fields label:last-child { grid-column: 1 / -1; }
.mmw-qca-spend-pacing-rule-fields label:last-child { grid-column: 1 / -1; }
.mmw-qca-cold-start-rule-fields input:disabled { cursor: not-allowed; background: #f5f6f8; color: #98a2b3; }
.mmw-qca-workflow-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; }
.mmw-qca-workflow-fields label { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 4px; color: #475467; font-size: 12px; }
.mmw-qca-workflow-fields label.is-wide { grid-column: 1 / -1; }
.mmw-qca-workflow-fields label > span { grid-column: 1 / -1; }
.mmw-qca-workflow-fields input,
.mmw-qca-notification-rules input[type="number"] { width: 100%; min-height: 34px; padding: 0 8px; border: 1px solid #d0d5dd; border-radius: 8px; color: var(--qca-ink); font: inherit; }
.mmw-qca-workflow-fields em,
.mmw-qca-notification-rules em { padding-bottom: 7px; color: var(--qca-muted); font-style: normal; white-space: nowrap; }
.mmw-qca-notification-rules { display: grid; gap: 1px; padding: 10px; }
.mmw-qca-notification-rules label { display: grid; grid-template-columns: auto minmax(88px, 1fr) 82px auto; align-items: center; gap: 7px; min-height: 42px; color: #475467; font-size: 12px; }
.mmw-qca-notification-rules input[type="checkbox"] { accent-color: var(--qca-blue); }
.mmw-qca-data-report-settings { padding: 10px; border-top: 1px solid #eef0f3; }
.mmw-qca-data-report-settings > header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.mmw-qca-data-report-settings > header strong { color: #1d2939; font-size: 12px; }
.mmw-qca-data-report-settings > header span { color: #667085; font-size: 10px; }
.mmw-qca-data-report-enable { display: grid; grid-template-columns: auto auto minmax(64px, 92px) 1fr; align-items: center; gap: 7px; color: #475467; font-size: 12px; }
.mmw-qca-data-report-enable input[type="checkbox"],
.mmw-qca-data-report-types input { accent-color: var(--qca-blue); }
.mmw-qca-data-report-enable input[type="number"] { width: 100%; min-height: 34px; padding: 0 8px; border: 1px solid #d0d5dd; border-radius: 8px; color: var(--qca-ink); font: inherit; }
.mmw-qca-data-report-enable em { color: var(--qca-muted); font-style: normal; }
.mmw-qca-data-report-types { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 9px 0; color: #475467; font-size: 12px; }
.mmw-qca-data-report-types label { display: flex; align-items: center; gap: 6px; }
.mmw-qca-report-delivery-default { display: grid; gap: 1px; margin-top: 8px; padding: 8px 9px; border-radius: 8px; background: #f2f4f7; }
.mmw-qca-report-delivery-default strong { color: #344054; font-size: 11px; }
.mmw-qca-report-delivery-default span { color: #667085; font-size: 10px; }
.mmw-qca-report-advanced { margin-top: 7px; border-top: 1px solid #eef0f3; }
.mmw-qca-report-advanced > summary { display: flex; min-height: 34px; align-items: center; justify-content: space-between; gap: 8px; color: #344054; cursor: pointer; font-size: 11px; }
.mmw-qca-report-advanced > summary strong { color: #667085; font-size: 10px; font-weight: 600; }
.mmw-qca-report-advanced > label { display: flex; align-items: center; gap: 7px; padding: 7px 9px; border-radius: 8px; background: #f9fafb; color: #344054; font-size: 11px; }
.mmw-qca-report-advanced input { accent-color: var(--qca-blue); }
.mmw-qca-report-advanced > p { margin: 6px 2px 0; color: #667085; font-size: 10px; line-height: 1.5; }
.mmw-qca-data-report-settings > p { margin: 8px 0 0; color: #667085; font-size: 11px; line-height: 1.55; }
.mmw-qca-routing-summary { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 9px; margin-top: 2px; padding: 10px; border-top: 1px solid #eef0f3; background: #f8faff; }
.mmw-qca-routing-mark { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 8px; background: #eaf2ff; color: #175cd3; font-size: 12px; font-weight: 700; }
.mmw-qca-routing-summary div { display: grid; min-width: 0; gap: 2px; }
.mmw-qca-routing-summary strong { color: #1d2939; font-size: 12px; }
.mmw-qca-routing-summary small { overflow: hidden; color: #667085; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.mmw-qca-routing-summary em { color: #667085; font-size: 10px; font-style: normal; font-weight: 600; white-space: nowrap; }
.mmw-qca-routing-summary em.is-ready { color: #067647; }
.mmw-qca-channel-activation-note {
  margin: 0 10px 10px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #fff;
  color: #344054;
  font-size: 12px;
}
.mmw-qca-channel-activation-note > summary {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px;
  list-style: none;
  cursor: pointer;
  font-weight: 650;
}
.mmw-qca-channel-activation-note > summary::-webkit-details-marker { display: none; }
.mmw-qca-channel-activation-note > summary strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #175cd3;
  font-size: 11px;
  font-weight: 650;
}
.mmw-qca-channel-activation-note > summary strong::after {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: rotate(45deg);
  transition: transform 180ms cubic-bezier(.22, 1, .36, 1);
}
.mmw-qca-channel-activation-note[open] > summary {
  border-bottom: 1px solid #e4e7ec;
  background: #f8fafc;
}
.mmw-qca-channel-activation-note[open] > summary strong::after { transform: rotate(225deg); }
.mmw-qca-channel-activation-note > div { padding: 9px 10px 10px; }
.mmw-qca-channel-activation-note p { margin: 0; color: #475467; line-height: 1.6; }
.mmw-qca-channel-activation-note p + p { margin-top: 7px; }
.mmw-qca-channel-activation-note > summary:hover { background: #f8fafc; }
.mmw-qca-channel-activation-note > summary:focus-visible { outline-offset: -2px; }
}
.mmw-qca-weixin-row { display: flex; align-items: center; gap: 8px; padding: 10px; border-top: 1px solid var(--qca-line); }
.mmw-qca-weixin-status { flex: 1; color: #b54708; font-size: 12px; }
.mmw-qca-weixin-status.is-ready { color: #067647; }
.mmw-qca-settings-actions { display: flex; gap: 8px; padding: 12px 10px; }
.mmw-qca-settings-actions .mmw-qca-primary { flex: 1; }
.mmw-qca-task-patrol-settings { margin: 0 0 14px; border: 1px solid var(--qca-line); border-radius: 11px; background: #fff; }
.mmw-qca-task-patrol-settings summary { display: flex; align-items: center; justify-content: space-between; min-height: 40px; padding: 0 11px; cursor: pointer; color: #344054; }
.mmw-qca-task-patrol-settings summary strong { color: #075faf; font-size: 12px; }
.mmw-qca-task-patrol-settings[open] summary { border-bottom: 1px solid var(--qca-line); }
.mmw-qca-task-patrol-fields { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; padding: 10px; }
.mmw-qca-task-patrol-fields label { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 4px; color: #475467; font-size: 12px; }
.mmw-qca-task-patrol-fields label > span { grid-column: 1 / -1; }
.mmw-qca-task-patrol-fields input { width: 100%; min-height: 34px; padding: 0 8px; border: 1px solid #d0d5dd; border-radius: 8px; color: var(--qca-ink); font: inherit; }
.mmw-qca-task-patrol-fields em { padding-bottom: 7px; color: var(--qca-muted); font-style: normal; }
.mmw-qca-monitor-settings { margin: 0 0 14px; border: 1px solid var(--qca-line); border-radius: 11px; background: #fff; }
.mmw-qca-monitor-settings summary { display: flex; align-items: center; justify-content: space-between; min-height: 40px; padding: 0 11px; cursor: pointer; color: #344054; }
.mmw-qca-monitor-settings summary strong { color: #075faf; font-size: 12px; }
.mmw-qca-monitor-settings[open] summary { border-bottom: 1px solid var(--qca-line); }
.mmw-qca-monitor-intro { display: flex; align-items: flex-start; gap: 9px; padding: 10px 10px 8px; }
.mmw-qca-monitor-intro p { flex: 1; margin: 0; color: #475467; font-size: 12px; }
.mmw-qca-monitor-intro button { flex: 0 0 auto; }
.mmw-qca-monitor-list { padding: 0 10px; }
.mmw-qca-monitor-row { display: flex; align-items: flex-start; gap: 8px; padding: 9px 0; border-top: 1px solid #eef0f3; }
.mmw-qca-monitor-row > div:first-child { min-width: 0; flex: 1; }
.mmw-qca-monitor-row strong,
.mmw-qca-monitor-row span { display: block; overflow-wrap: anywhere; }
.mmw-qca-monitor-row strong { color: #344054; font-size: 12px; }
.mmw-qca-monitor-row span { margin-top: 2px; color: var(--qca-muted); font-size: 11px; }
.mmw-qca-monitor-row.is-disabled { opacity: .62; }
.mmw-qca-monitor-row > div:last-child { display: flex; gap: 4px; }
.mmw-qca-monitor-row button { min-height: 28px; padding: 0 7px; border: 0; border-radius: 7px; background: var(--qca-soft); color: #344054; cursor: pointer; font: inherit; font-size: 11px; }
.mmw-qca-monitor-row button:last-child { color: #b42318; }
.mmw-qca-monitor-row button:hover { background: #e9edf3; }
.mmw-qca-monitor-empty,
.mmw-qca-monitor-footnote { margin: 0; color: var(--qca-muted); font-size: 11px; }
.mmw-qca-monitor-empty { padding: 8px 0 10px; }
.mmw-qca-monitor-footnote { padding: 7px 10px 10px; }
.mmw-qca-preference-settings { margin: 0 0 14px; border: 1px solid var(--qca-line); border-radius: 11px; background: #fff; }
.mmw-qca-preference-settings summary { display: flex; align-items: center; justify-content: space-between; min-height: 40px; padding: 0 11px; cursor: pointer; color: #344054; }
.mmw-qca-preference-settings summary strong { color: #075faf; font-size: 12px; }
.mmw-qca-preference-settings[open] summary { border-bottom: 1px solid var(--qca-line); }
.mmw-qca-preference-fields { display: grid; gap: 10px; padding: 10px; }
.mmw-qca-preference-fields label { display: grid; gap: 5px; color: #475467; font-size: 12px; }
.mmw-qca-preference-fields textarea { width: 100%; min-height: 66px; resize: vertical; padding: 8px 10px; border: 1px solid #d0d5dd; border-radius: 9px; background: #fff; color: var(--qca-ink); outline: none; font: inherit; line-height: 1.45; }
.mmw-qca-preference-fields textarea:focus { border-color: #7ebaf2; box-shadow: 0 0 0 3px rgba(11, 116, 222, .10); }
.mmw-qca-preference-settings > .mmw-qca-secondary { margin: 0 10px 10px; }
.mmw-qca-skill-settings { margin: 0 0 14px; border: 1px solid var(--qca-line); border-radius: 11px; background: #fff; }
.mmw-qca-skill-settings summary { display: flex; align-items: center; justify-content: space-between; min-height: 40px; padding: 0 11px; cursor: pointer; color: #344054; }
.mmw-qca-skill-settings summary strong { color: #075faf; font-size: 12px; }
.mmw-qca-skill-settings[open] summary { border-bottom: 1px solid var(--qca-line); }
.mmw-qca-skill-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 10px; padding: 3px; border-radius: 9px; background: var(--qca-soft); }
.mmw-qca-skill-switch label { position: relative; cursor: pointer; }
.mmw-qca-skill-switch input { position: absolute; opacity: 0; pointer-events: none; }
.mmw-qca-skill-switch span { display: grid; place-items: center; min-height: 34px; border-radius: 7px; color: var(--qca-muted); font-size: 12px; font-weight: 650; }
.mmw-qca-skill-switch input:checked + span { background: #fff; color: #075faf; box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }
.mmw-qca-skill-settings > .mmw-qca-secondary { margin: 0 10px 10px; }
.mmw-qca-danger { min-height: 34px; padding: 0 13px; border: 1px solid #fda29b; border-radius: 9px; background: #fff; color: #b42318; cursor: pointer; font: inherit; font-weight: 650; }
.mmw-qca-danger:hover { background: #fff1f0; }
.mmw-qca-messages { display: flex; flex-direction: column; gap: 10px; }
.mmw-qca-empty { padding: 18px 14px; border-radius: 12px; background: var(--qca-soft); color: var(--qca-muted); }
.mmw-qca-activity-item { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 8px; align-items: start; padding: 9px 10px; border-left: 3px solid #d0d5dd; border-radius: 8px; background: #f9fafb; }
.mmw-qca-activity-item time { padding-top: 1px; color: #98a2b3; font-size: 10px; font-variant-numeric: tabular-nums; }
.mmw-qca-activity-item p { margin: 0; color: #344054; font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.mmw-qca-activity-item.is-success { border-left-color: #12b76a; background: #f6fef9; }
.mmw-qca-activity-item.is-warning,
.mmw-qca-activity-item.is-pending { border-left-color: #f79009; background: #fffaeb; }
.mmw-qca-activity-item.is-error { border-left-color: #f04438; background: #fff1f0; }
.mmw-qca-message { max-width: 88%; padding: 9px 11px; border-radius: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.mmw-qca-message.is-user { align-self: flex-end; background: var(--qca-blue); color: #fff; border-bottom-right-radius: 4px; }
.mmw-qca-message.is-assistant { align-self: flex-start; background: var(--qca-soft); color: var(--qca-ink); border-bottom-left-radius: 4px; }
.mmw-qca-message.is-failed { background: #fff1f0; color: #b42318; }

.mmw-qca-proposals { display: grid; gap: 10px; margin-top: 12px; }
.mmw-qca-proposal { padding: 12px; border: 1px solid #b9d9fa; border-radius: 12px; background: #f5faff; }
.mmw-qca-proposal.is-memory { border-color: #d0d5dd; background: #fafafa; }
.mmw-qca-proposal.is-monitor_rule { border-color: #98c8f4; background: #f5faff; }
.mmw-qca-proposal.is-done { border-color: #abefc6; background: #f6fef9; }
.mmw-qca-proposal strong { display: block; margin-bottom: 4px; font-size: 14px; }
.mmw-qca-proposal p { margin: 0; color: #475467; white-space: pre-line; }
.mmw-qca-proposal .mmw-qca-result { margin-top: 7px; color: #067647; }
.mmw-qca-proposal .mmw-qca-error { margin-top: 7px; color: #b42318; }
.mmw-qca-proposal-actions { display: flex; gap: 8px; margin-top: 10px; }

.mmw-qca-primary,
.mmw-qca-secondary,
.mmw-qca-send {
  min-height: 34px;
  padding: 0 13px;
  border-radius: 9px;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
}

.mmw-qca-primary,
.mmw-qca-send { border: 1px solid var(--qca-blue); background: var(--qca-blue); color: #fff; }
.mmw-qca-primary:hover,
.mmw-qca-send:hover { border-color: var(--qca-blue-strong); background: var(--qca-blue-strong); }
.mmw-qca-secondary { border: 1px solid #d0d5dd; background: #fff; color: #344054; }
.mmw-qca-secondary:hover { background: var(--qca-soft); }
.mmw-qca-primary:disabled,
.mmw-qca-secondary:disabled,
.mmw-qca-send:disabled,
.mmw-qca-danger:disabled { cursor: not-allowed; opacity: .55; }

.mmw-qca-memory { margin-top: 14px; border-top: 1px solid var(--qca-line); padding-top: 10px; }
.mmw-qca-memory summary { cursor: pointer; color: #344054; font-weight: 650; }
.mmw-qca-memory-count { display: inline-block; min-width: 20px; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: var(--qca-soft); color: var(--qca-muted); text-align: center; font-size: 12px; }
.mmw-qca-memory-list { display: grid; gap: 7px; margin: 10px 0; }
.mmw-qca-memory-list > div { display: flex; gap: 8px; align-items: flex-start; padding: 8px 9px; border-radius: 8px; background: var(--qca-soft); }
.mmw-qca-memory-list span { flex: 1; color: #475467; font-size: 12px; }
.mmw-qca-memory-list button { border: 0; background: transparent; color: #b42318; cursor: pointer; font-size: 12px; }
.mmw-qca-memory-add { display: grid; gap: 5px; margin: 10px 0 8px; color: #475467; font-size: 12px; }
.mmw-qca-memory-add textarea,
.mmw-qca-composer textarea { width: 100%; resize: none; border: 1px solid #d0d5dd; border-radius: 10px; background: #fff; color: var(--qca-ink); outline: none; font: inherit; }
.mmw-qca-memory-add textarea { padding: 8px 10px; }
.mmw-qca-memory-add textarea:focus,
.mmw-qca-composer textarea:focus { border-color: #7ebaf2; box-shadow: 0 0 0 3px rgba(11, 116, 222, .10); }

.mmw-qca-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 12px 14px 11px;
  border-top: 1px solid var(--qca-line);
  background: #fff;
}

.mmw-qca-composer textarea { min-height: 48px; padding: 9px 10px; }
.mmw-qca-send { align-self: stretch; min-width: 58px; }
.mmw-qca-composer p { grid-column: 1 / -1; margin: 0; color: var(--qca-muted); font-size: 11px; }

#mmw-qianchuan-agent-root button:focus-visible,
#mmw-qianchuan-agent-root summary:focus-visible,
#mmw-qianchuan-agent-root input:focus-visible,
#mmw-qianchuan-agent-root textarea:focus-visible {
  outline: 2px solid rgba(38, 132, 255, .9);
  outline-offset: 2px;
}

@media (max-width: 560px) {
  .mmw-qca-panel { width: calc(100vw - 20px); height: calc(100vh - 20px); }
  .mmw-qca-tools-panel { width: calc(100vw - 20px); height: calc(100vh - 20px); }
  .mmw-qca-takeover[data-state="monitoring"] [data-takeover-status] { display: none; }
  .mmw-qca-usage-notice-dialog { width: calc(100vw - 20px); height: calc(100vh - 20px); }
  .mmw-qca-usage-notice-dialog > header,
  .mmw-qca-usage-notice-content { padding-left: 14px; padding-right: 14px; }
  .mmw-qca-usage-notice-dialog > footer { padding: 10px 14px 14px; }
}

@media (max-width: 420px) {
  .mmw-qca-setting-grid { grid-template-columns: 1fr; }
  .mmw-qca-setting-grid label.is-wide { grid-column: auto; }
  .mmw-qca-workflow-fields { grid-template-columns: 1fr; }
  .mmw-qca-workflow-fields label.is-wide { grid-column: auto; }
  .mmw-qca-workflow-rule-fields,
  .mmw-qca-pause-rule-fields { grid-template-columns: 1fr; }
  .mmw-qca-pause-rule-fields label:last-child,
  .mmw-qca-spend-pacing-rule-fields label:last-child { grid-column: auto; }
  .mmw-qca-notification-rules label { grid-template-columns: auto minmax(0, 1fr) 76px; }
  .mmw-qca-notification-rules em { grid-column: 2 / -1; padding: 0; }
  .mmw-qca-data-report-enable { grid-template-columns: auto auto minmax(60px, 76px); }
  .mmw-qca-data-report-enable em { grid-column: 2 / -1; }
  .mmw-qca-task-patrol-fields { grid-template-columns: 1fr; }
  .mmw-qca-tools-toggle > span:nth-child(2) { display: none; }
}

@media (max-width: 1400px) {
  .mmw-qca-takeover { left: 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .mmw-qca-launch { transition: none; }
  .mmw-qca-agent-power,
  .mmw-qca-agent-power::before { transition: none; }
  .mmw-qca-workflow-rule > summary,
  .mmw-qca-rule-chevron { transition: none; }
  .mmw-qca-channel-activation-note > summary strong::after { transition: none; }
  .mmw-qca-takeover-pulse,
  .mmw-qca-runtime-summary.is-active .mmw-qca-runtime-dot { animation: none; }
  .mmw-qca-is-taken-over::after {
    animation: none;
    box-shadow: 0 0 7px 2px rgba(38, 132, 255, .46), inset 0 0 7px rgba(38, 132, 255, .18);
  }
}

@keyframes mmw-qca-agent-power-pulse {
  70% { box-shadow: 0 0 0 5px rgba(46, 144, 250, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 144, 250, 0); }
}
