#qc-tool-root {
  all: initial;
  position: fixed;
  top: 72px;
  right: 16px;
  z-index: 2147483647;
  width: 509px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 96px);
  color: #202124;
  background: #ffffff;
  border: 1px solid #d9dce1;
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 13px;
  line-height: 1.5;
  overflow: hidden;
}

#qc-tool-root * { box-sizing: border-box; }
#qc-tool-root.qc-hidden { display: none; }
.qc-header { display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content; align-items: center; padding: 8px 8px 8px 12px; border-bottom: 1px solid #e8eaed; background: #f8f9fa; cursor: move; user-select: none; touch-action: none; }
.qc-dragging .qc-header { cursor: grabbing; }
.qc-title { display: flex; min-width: 0; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; }
.qc-title-text { flex: 0 0 auto; white-space: nowrap; }
.qc-membership-area { position: relative; display: flex; min-width: 0; max-width: 100%; align-items: center; justify-self: center; gap: 5px; padding: 0 8px; }
.qc-member-state { overflow: hidden; color: #5f6368; font-size: 11px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.qc-member-state[data-valid="true"] { color: #188038; }
.qc-title-logo { width: 20px; height: 20px; flex: 0 0 20px; border-radius: 3px; object-fit: contain; }
.qc-header-actions { position: relative; display: flex; align-items: center; gap: 6px; }
.qc-member-button { min-width: 38px; height: 24px; padding: 0 8px; border: 1px solid #1a73e8; border-radius: 4px; color: #fff; background: #1a73e8; font-size: 12px; line-height: 22px; cursor: pointer; }
.qc-member-button:hover { border-color: #1765cc; background: #1765cc; }
.qc-member-button[data-logged-in="true"] { color: #fff; border-color: #d93025; background: #d93025; }
.qc-member-button[data-logged-in="true"]:hover { color: #fff; border-color: #b3261e; background: #b3261e; }
.qc-member-menu { position: absolute; z-index: 4; top: 29px; right: 0; display: grid; min-width: 92px; padding: 4px; border: 1px solid #dadce0; border-radius: 4px; background: #fff; box-shadow: 0 4px 12px rgb(60 64 67 / 18%); }
.qc-member-menu.qc-hidden { display: none; }
.qc-member-menu button { padding: 7px 9px; border: 0; border-radius: 3px; color: #202124; background: transparent; font-size: 12px; text-align: left; cursor: pointer; }
.qc-member-menu button:hover { background: #f1f3f4; }
.qc-minimize, .qc-close { display: grid; width: 28px; height: 28px; padding: 0; place-items: center; border: 0; border-radius: 4px; color: #5f6368; background: transparent; font: 20px/1 Arial, sans-serif; cursor: pointer; }
.qc-minimize:hover, .qc-close:hover { color: #202124; background: #e8eaed; }
#qc-tool-root.qc-minimized { max-height: none; }
#qc-tool-root.qc-minimized .qc-body { display: none; }
.qc-status { padding: 2px 7px; border-radius: 4px; color: #5f6368; background: #e8eaed; font-size: 12px; }
.qc-status[data-status="running"] { color: #0d652d; background: #e6f4ea; }
.qc-status[data-status="paused"] { color: #b06000; background: #fef7e0; }
.qc-status[data-status="error"] { color: #b3261e; background: #fce8e6; }
.qc-body { max-height: calc(100vh - 145px); padding: 12px; overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; }
.qc-body::-webkit-scrollbar { display: none; width: 0; height: 0; }
.qc-platform-mode { display: grid; grid-template-columns: 1.25fr 1.25fr .9fr; margin: -2px 0 10px; border: 1px solid #bdc1c6; border-radius: 4px; overflow: hidden; }
.qc-platform-mode label { min-width: 0; cursor: pointer; }
.qc-platform-mode label + label { border-left: 1px solid #bdc1c6; }
.qc-platform-mode input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.qc-platform-mode span { display: grid; min-height: 42px; padding: 4px 3px; place-items: center; color: #3c4043; background: #fff; font-size: 11px; line-height: 1.25; text-align: center; }
.qc-platform-mode input:checked + span { color: #fff; background: #1a73e8; }
.qc-group-tabs { display: flex; align-items: center; gap: 5px; margin: -2px 0 10px; padding-bottom: 4px; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.qc-group-tab-wrap { display: inline-flex; flex: 0 0 auto; align-items: center; height: 30px; border: 1px solid #dadce0; border-radius: 4px; background: #fff; overflow: hidden; }
.qc-group-tab-wrap.qc-group-tab-active { border-color: #1a73e8; background: #e8f0fe; }
.qc-group-tab, .qc-group-remove, .qc-group-add { flex: 0 0 auto; height: 28px; border: 0; padding: 0 9px; color: #3c4043; background: transparent; font: inherit; cursor: pointer; white-space: nowrap; }
.qc-group-tab-active .qc-group-tab { color: #174ea6; font-weight: 600; }
.qc-group-remove { width: 25px; padding: 0; border-left: 1px solid #dadce0; color: #70757a; font-size: 17px; }
.qc-group-remove:hover { color: #b3261e; background: #fce8e6; }
.qc-group-add { width: 30px; border: 1px solid #dadce0; border-radius: 4px; color: #1a73e8; font-size: 19px; line-height: 1; }
.qc-group-add:hover { border-color: #1a73e8; background: #e8f0fe; }
.qc-group-fields { margin-bottom: 10px; padding-bottom: 2px; }
.qc-group-settings-box { margin: 2px 0 8px; padding: 8px 7px 0; border: 1px solid #dadce0; border-radius: 4px; background: #fff; }
.qc-group-settings-box > .qc-group-tabs { margin-top: 0; }
.qc-group-settings-box > .qc-group-fields { margin-bottom: 0; padding-bottom: 0; }
.qc-group-settings-box .qc-settings-row { margin: 0; padding-top: 8px; padding-bottom: 8px; border-bottom: 1px solid #e8eaed; }
.qc-group-settings-box .qc-settings-row:last-child { padding-bottom: 5px; border-bottom: 0; }
.qc-group-settings-box .qc-delete-materials { padding-top: 8px; border-top: 0; }
.qc-group-options { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 8px; min-height: 26px; margin: 2px 0 7px; white-space: nowrap; }
.qc-group-options .qc-toggle { flex: 0 0 auto; align-items: center; height: 24px; margin: 0; gap: 6px; font-size: 12px; white-space: nowrap; }
.qc-plan-types-inline { display: flex; flex: 0 0 auto; grid-template-columns: none; gap: 8px; margin: 0; font-size: 12px; }
.qc-global-plan-type { margin-left: 5px; }
.qc-global-plan-copy { display: inline-flex; align-items: baseline; gap: 0; font-weight: 400; }
.qc-plan-type-note { margin-left: 0; color: #80868b; font-size: 10px; font-weight: 400; }
.qc-field { display: block; margin-bottom: 10px; }
.qc-field > span { display: block; margin-bottom: 4px; color: #3c4043; font-weight: 600; }
.qc-group-field { display: grid; grid-template-columns: 86px minmax(0, 1fr); align-items: center; gap: 4px; margin-bottom: 7px; }
.qc-group-field > span { margin: 0; font-size: 12px; line-height: 1.35; }
.qc-required { margin-left: 2px; color: #d93025; font-style: normal; font-weight: 700; }
.qc-field input, .qc-field textarea, .qc-field select { width: 100%; border: 1px solid #bdc1c6; border-radius: 4px; padding: 7px 8px; color: #202124; background: #fff; font: inherit; outline: none; }
.qc-field textarea { min-height: 70px; resize: vertical; }
.qc-group-field textarea { min-height: 52px; max-height: 100px; }
.qc-group-field > .qc-video-keyword-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 7px; min-width: 0; margin: 0; font-weight: 400; }
.qc-video-keyword-row > input { min-width: 0; }
.qc-secondary-search-control { display: flex; align-items: center; gap: 4px; height: 34px; color: #3c4043; font-size: 11px; font-weight: 400; white-space: nowrap; }
.qc-video-keyword-row .qc-secondary-search-toggle { align-self: center; height: 34px; margin: 0; gap: 0; font-size: 11px; white-space: nowrap; }
.qc-video-keyword-row .qc-secondary-search-count { box-sizing: border-box; width: 38px; height: 30px; min-width: 38px; padding: 4px 3px; text-align: center; }
.qc-video-keyword-row .qc-secondary-search-count:disabled { color: #9aa0a6; background: #f1f3f4; }
.qc-secondary-search-toggle .qc-toggle-track { flex-basis: 34px; width: 34px; height: 20px; border-radius: 10px; }
.qc-secondary-search-toggle .qc-toggle-track::after { width: 14px; height: 14px; }
.qc-secondary-search-toggle input:checked + .qc-toggle-track::after { transform: translateX(14px); }
.qc-field input:focus, .qc-field textarea:focus, .qc-field select:focus { border-color: #1a73e8; box-shadow: 0 0 0 1px #1a73e8; }
.qc-source-mode { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 7px; border: 1px solid #bdc1c6; border-radius: 4px; overflow: hidden; }
.qc-source-mode label { min-width: 0; cursor: pointer; }
.qc-source-mode label + label { border-left: 1px solid #bdc1c6; }
.qc-source-mode input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.qc-source-mode span { display: block; min-height: 30px; padding: 5px 8px; color: #3c4043; background: #fff; text-align: center; }
.qc-source-mode input:checked + span { color: #fff; background: #1a73e8; }
.qc-source-field select { min-height: 34px; }
.qc-hidden-field { display: none !important; }
.qc-inline { display: flex; gap: 8px; }
.qc-inline .qc-field { flex: 1; }
.qc-compact-field { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 4px; margin: 2px 0 8px; }
.qc-compact-field > span { color: #3c4043; font-size: 12px; font-weight: 600; }
.qc-compact-field input, .qc-cleanup-option > input { width: 100%; border: 1px solid #bdc1c6; border-radius: 4px; padding: 6px 5px; color: #202124; background: #fff; font: inherit; outline: none; }
.qc-cleanup-option { display: grid; grid-template-columns: max-content 82px 50px max-content 68px max-content 50px max-content; align-items: center; gap: 3px; margin-bottom: 9px; }
.qc-cleanup-option .qc-toggle { min-width: 0; margin: 0; gap: 5px; font-size: 10px; line-height: 1.2; white-space: nowrap; }
.qc-cleanup-option .qc-toggle > span:last-child { min-width: 0; }
.qc-cleanup-trigger { display: flex; width: max-content; min-width: 0; height: 30px; align-items: center; gap: 3px; color: #3c4043; font-size: 10px; white-space: nowrap; }
.qc-cleanup-trigger .qc-toggle { flex: 0 0 34px; }
.qc-cleanup-threshold { box-sizing: border-box; width: 44px; height: 30px; min-width: 44px; padding: 4px 3px; border: 1px solid #bdc1c6; border-radius: 4px; color: #202124; background: #fff; font: inherit; text-align: center; outline: none; }
.qc-cleanup-threshold:disabled { color: #9aa0a6; background: #f1f3f4; }
.qc-cleanup-order { display: flex; min-width: 0; flex-direction: column; align-items: center; justify-content: center; color: #3c4043; font-size: 10px; line-height: 1.25; white-space: nowrap; }
.qc-cleanup-order small { color: #80868b; font-size: 9px; }
.qc-cleanup-title { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 2px; }
.qc-cleanup-option > input:disabled { color: #9aa0a6; background: #f1f3f4; }
.qc-cleanup-option > input { height: 30px; min-width: 0; text-align: center; }
.qc-cleanup-days { text-align: center; }
.qc-cleanup-unit { color: #3c4043; font-size: 10px; white-space: nowrap; }
.qc-cleanup-period { min-width: 0; width: 100%; height: 30px; padding: 3px 15px 3px 4px; border: 1px solid #bdc1c6; border-radius: 4px; color: #202124; background: #fff; font: inherit; font-size: 10px; }
.qc-cleanup-period:disabled { color: #9aa0a6; background: #f1f3f4; }
.qc-cleanup-note { color: #5f6368; font-size: 10px; font-weight: 400; line-height: 1.2; white-space: nowrap; }
.qc-source-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 5px; }
.qc-source-batch-limit { display: flex; align-items: center; gap: 6px; color: #3c4043; font-size: 12px; font-weight: 600; white-space: nowrap; }
.qc-source-batch-limit input { width: 64px; min-height: 30px; padding: 5px 6px; border: 1px solid #bdc1c6; border-radius: 4px; color: #202124; background: #fff; font: inherit; outline: none; text-align: center; }
.qc-source-batch-limit input:focus { border-color: #1a73e8; box-shadow: 0 0 0 1px #1a73e8; }
.qc-toggle { display: flex; align-items: center; gap: 8px; margin: 4px 0 12px; color: #3c4043; cursor: pointer; user-select: none; }
.qc-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.qc-toggle-track { position: relative; flex: 0 0 34px; width: 34px; height: 20px; border: 1px solid #9aa0a6; border-radius: 10px; background: #fff; transition: background .15s, border-color .15s; }
.qc-toggle-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #5f6368; transition: transform .15s, background .15s; }
.qc-toggle input:checked + .qc-toggle-track { border-color: #1a73e8; background: #1a73e8; }
.qc-toggle input:checked + .qc-toggle-track::after { background: #fff; transform: translateX(14px); }
.qc-toggle input:focus-visible + .qc-toggle-track { outline: 2px solid #8ab4f8; outline-offset: 2px; }
.qc-plan-types { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px; margin: -4px 0 12px; color: #3c4043; }
.qc-plan-types > span { min-width: 0; }
.qc-plan-types label { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; user-select: none; }
.qc-plan-types input { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
.qc-plan-types label span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.qc-plan-types label span::before { content: ""; box-sizing: border-box; display: inline-grid; place-items: center; width: 16px; height: 16px; border: 1px solid #80868b; border-radius: 3px; color: #fff; background: #fff; font-size: 12px; font-weight: 700; line-height: 1; }
.qc-plan-types input:checked + span::before { content: "✓"; border-color: #1a73e8; background: #1a73e8; }
.qc-plan-types input:focus-visible + span::before { outline: 2px solid #8ab4f8; outline-offset: 2px; }
.qc-plan-types label:hover span::before { border-color: #1a73e8; }
.qc-group-options .qc-plan-types-inline { display: flex; flex: 0 0 auto; grid-template-columns: none; align-items: center; gap: 8px; height: 24px; margin: 0; }
.qc-group-options .qc-plan-types-inline label { display: inline-flex; align-items: center; height: 24px; }
.qc-delete-materials { margin: 2px 0 8px; padding-top: 7px; border-top: 1px dashed #dadce0; }
.qc-delete-materials-head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 5px; margin-bottom: 6px; }
.qc-delete-materials-head > strong { color: #3c4043; font-size: 12px; white-space: nowrap; }
.qc-delete-materials-head > span { color: #70757a; font-size: 10px; line-height: 1.25; }
.qc-delete-filter-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.qc-multi-select { position: relative; min-width: 0; }
.qc-multi-select summary { display: flex; height: 32px; padding: 4px 22px 4px 6px; flex-wrap: nowrap; align-items: center; gap: 4px; overflow: hidden; border: 1px solid #bdc1c6; border-radius: 4px; color: #3c4043; background: #fff; font-size: 11px; white-space: nowrap; cursor: pointer; list-style: none; }
.qc-multi-select summary::-webkit-details-marker { display: none; }
.qc-multi-select summary::after { content: "▾"; position: absolute; top: 7px; right: 7px; color: #70757a; }
.qc-multi-select[open] summary { border-color: #1a73e8; }
.qc-summary-prefix { flex: 0 0 auto; color: #5f6368; white-space: nowrap; }
.qc-selected-chip { display: inline-flex; min-width: 0; max-width: 100%; height: 22px; padding: 1px 3px 1px 6px; align-items: center; gap: 3px; overflow: hidden; border: 1px solid #d2e3fc; border-radius: 3px; color: #174ea6; background: #e8f0fe; }
.qc-selected-chip > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qc-selected-chip-remove { display: inline-grid; flex: 0 0 16px; width: 16px; height: 16px; place-items: center; border-radius: 2px; color: #5f6368; font: 15px/1 Arial, sans-serif; cursor: pointer; }
.qc-selected-chip-remove:hover { color: #b3261e; background: #d2e3fc; }
.qc-multi-options { position: absolute; z-index: 5; top: calc(100% + 3px); left: 0; width: max-content; min-width: 100%; padding: 4px; border: 1px solid #dadce0; border-radius: 4px; background: #fff; box-shadow: 0 5px 14px rgba(0, 0, 0, .16); }
.qc-multi-options label { display: flex; align-items: center; gap: 5px; padding: 4px 5px; white-space: nowrap; cursor: pointer; }
.qc-multi-options label:hover { background: #f1f3f4; }
.qc-multi-options input { appearance: none; display: inline-grid; flex: 0 0 16px; width: 16px; height: 16px; margin: 0; place-items: center; border: 1px solid #80868b; border-radius: 3px; background: #fff; }
.qc-multi-options input:checked { border-color: #1a73e8; background: #1a73e8; }
.qc-multi-options input:checked::after { content: "✓"; color: #fff; font-size: 12px; font-weight: 700; line-height: 1; }
.qc-single-choice .qc-multi-options input { border-radius: 50%; }
.qc-single-choice .qc-multi-options input:checked::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.qc-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.qc-btn { min-height: 32px; border: 1px solid #dadce0; border-radius: 4px; padding: 5px 8px; color: #202124; background: #fff; font: inherit; cursor: pointer; }
.qc-btn:hover { background: #f1f3f4; }
.qc-btn-primary { border-color: #1a73e8; color: #fff; background: #1a73e8; }
.qc-btn-primary:hover { background: #1765cc; }
.qc-btn-danger { color: #b3261e; }
.qc-progress { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; margin: 12px 0; }
.qc-metric { min-width: 0; padding: 6px 2px; border: 1px solid #e8eaed; border-radius: 4px; color: #202124; background: #fff; font: inherit; text-align: center; }
.qc-metric-filter { cursor: pointer; }
.qc-metric-filter:hover { border-color: #9aa0a6; background: #f8f9fa; }
.qc-metric-filter.qc-metric-active { border-color: #1a73e8; background: #e8f0fe; }
.qc-metric strong { display: block; font-size: 15px; }
.qc-metric span { color: #70757a; font-size: 11px; }
.qc-log { height: 150px; margin-top: 8px; padding: 8px; border: 1px solid #d9dce1; border-radius: 4px; color: #202124; background: #fff; font-family: Consolas, monospace; font-size: 11px; line-height: 1.45; overflow: auto; white-space: pre-wrap; }
.qc-log-line { min-height: 16px; color: #202124; }
.qc-log-error { color: #d93025; font-weight: 600; }
.qc-log-warn { color: #b06000; }
.qc-foot-actions { display: flex; gap: 7px; margin-top: 8px; }
.qc-foot-actions .qc-btn { flex: 1; }

#qc-tool-root .qc-feature-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
#qc-tool-root details.qc-feature-disabled {
  pointer-events: none;
}
