:root {
  --qa-blue: #1769e8;
  --qa-blue-strong: #0c4fb6;
  --qa-blue-soft: #eef5ff;
  --qa-navy: #0c2f5d;
  --qa-text: #17324d;
  --qa-muted: #6f8297;
  --qa-line: #dbe5f0;
  --qa-surface: #ffffff;
  --qa-canvas: #edf3f9;
  --qa-danger: #d33f49;
}

.qa-v2-hide { display: none !important; }

.qa-v2-center-nav {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: center;
  gap: 22px;
  margin: 0 0 18px;
  padding: 18px 22px;
  color: var(--qa-text);
  background: var(--qa-surface);
  border: 1px solid var(--qa-line);
  border-radius: 12px;
}

.qa-v2-center-nav > div { min-width: 0; }
.qa-v2-center-nav > div > span {
  display: inline-block;
  margin-right: 10px;
  padding: 3px 8px;
  color: var(--qa-blue-strong);
  background: var(--qa-blue-soft);
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
}
.qa-v2-center-nav > div > strong { font-size: 17px; }
.qa-v2-center-nav > div > small {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: var(--qa-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qa-v2-center-nav nav {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  background: #f1f5f9;
  border-radius: 8px;
}
.qa-v2-center-nav button {
  min-height: 34px;
  padding: 0 13px;
  color: #52677d;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}
.qa-v2-center-nav button.active {
  color: var(--qa-blue-strong);
  background: white;
  box-shadow: 0 1px 4px rgba(12, 47, 93, .12);
}
.qa-v2-center-nav button:disabled { cursor: not-allowed; opacity: .5; }

.qa-v2-notification {
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid var(--qa-line);
  border-radius: 10px;
}
.qa-v2-notification legend { padding: 0 6px; color: var(--qa-navy); font-weight: 700; }
.qa-v2-notification legend em { color: var(--qa-danger); font-style: normal; font-size: 12px; }
.qa-v2-notification > p { margin: 0 0 12px; color: var(--qa-muted); font-size: 12px; }
.qa-v2-notification > div {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.qa-v2-notification label {
  display: block;
  min-width: 0;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid #dce6f0;
  border-radius: 8px;
  cursor: pointer;
}
.qa-v2-notification label.active { background: var(--qa-blue-soft); border-color: #78aaf4; }
.qa-v2-notification input { position: absolute; opacity: 0; pointer-events: none; }
.qa-v2-notification strong, .qa-v2-notification small { display: block; }
.qa-v2-notification strong { color: var(--qa-text); font-size: 13px; }
.qa-v2-notification small { margin-top: 3px; color: var(--qa-muted); font-size: 11px; line-height: 1.35; }

.qa-v2-assessment-library > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.qa-v2-assessment-library > article {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.qa-v2-editor {
  position: fixed;
  z-index: 9000;
  inset: 0 0 0 240px;
  display: flex;
  flex-direction: column;
  min-width: 850px;
  color: var(--qa-text);
  background: var(--qa-canvas);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.qa-v2-editor *, .qa-v2-preview * { box-sizing: border-box; }
.qa-v2-editor button, .qa-v2-preview button,
.qa-v2-editor input, .qa-v2-editor textarea, .qa-v2-editor select { font: inherit; }
.qa-v2-editor button { cursor: pointer; }
.qa-v2-editor button:focus-visible,
.qa-v2-editor input:focus-visible,
.qa-v2-editor textarea:focus-visible,
.qa-v2-editor select:focus-visible,
.qa-v2-preview button:focus-visible {
  outline: 3px solid rgba(23, 105, 232, .22);
  outline-offset: 1px;
}

.qa-v2-editor-head {
  flex: 0 0 70px;
  display: grid;
  grid-template-columns: auto auto minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px 18px;
  background: #fff;
  border-bottom: 1px solid var(--qa-line);
  box-shadow: 0 3px 12px rgba(12, 47, 93, .05);
}
.qa-v2-editor-head > button,
.qa-v2-editor-head nav button,
.qa-v2-editor > footer button,
.qa-v2-property footer button,
.qa-v2-content-card button,
.qa-v2-page > header button {
  min-height: 36px;
  padding: 0 13px;
  color: #38536e;
  background: #fff;
  border: 1px solid #cfdae6;
  border-radius: 7px;
}
.qa-v2-editor-head .primary,
.qa-v2-assessment-library .primary {
  color: white;
  background: var(--qa-blue);
  border-color: var(--qa-blue);
}
.qa-v2-kind {
  padding: 5px 9px;
  color: var(--qa-blue-strong);
  background: var(--qa-blue-soft);
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.qa-v2-editor-head > label {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.qa-v2-editor-head > label small { color: var(--qa-muted); white-space: nowrap; }
.qa-v2-editor-head > label input {
  min-width: 0;
  height: 40px;
  padding: 0 11px;
  color: var(--qa-navy);
  background: #f8fafc;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 16px;
  font-weight: 700;
}
.qa-v2-editor-head > label input:hover,
.qa-v2-editor-head > label input:focus { background: #fff; border-color: #9ebee8; }
.qa-v2-editor-head nav { display: inline-flex; gap: 8px; white-space: nowrap; }
.qa-v2-save-state { font-size: 12px; white-space: nowrap; }
.qa-v2-save-state.state-已保存 { color: #14825f; }
.qa-v2-save-state.state-保存中 { color: #2966b2; }
.qa-v2-save-state.state-未保存 { color: #a36312; }
.qa-v2-save-state.state-保存失败,
.qa-v2-save-state.state-版本冲突 { color: var(--qa-danger); }

.qa-v2-restored,
.qa-v2-conflict {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 18px;
  border-bottom: 1px solid;
  font-size: 12px;
}
.qa-v2-restored { color: #315e91; background: #eaf4ff; border-color: #cde2fa; }
.qa-v2-conflict { color: #7c4b08; background: #fff6df; border-color: #ecd59d; }
.qa-v2-conflict strong { margin-right: auto; }
.qa-v2-conflict button { padding: 5px 9px; background: #fff; border: 1px solid #dfc27d; border-radius: 6px; }

.qa-v2-editor-body {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 286px minmax(480px, 1fr) 330px;
  min-height: 0;
  overflow: hidden;
}
.qa-v2-library,
.qa-v2-property {
  display: grid;
  min-height: 0;
  background: #fff;
}
.qa-v2-library { grid-template-rows: auto auto auto minmax(0, 1fr); border-right: 1px solid var(--qa-line); }
.qa-v2-property { grid-template-rows: auto auto minmax(0, 1fr) auto; border-left: 1px solid var(--qa-line); }
.qa-v2-library > header,
.qa-v2-property > header { padding: 15px 16px 11px; }
.qa-v2-library > header strong,
.qa-v2-library > header span,
.qa-v2-property > header strong,
.qa-v2-property > header span { display: block; }
.qa-v2-library > header strong,
.qa-v2-property > header strong { color: var(--qa-navy); font-size: 15px; }
.qa-v2-library > header span,
.qa-v2-property > header span { margin-top: 3px; color: var(--qa-muted); font-size: 11px; }
.qa-v2-search {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 14px 10px;
  padding: 0 10px;
  height: 36px;
  color: var(--qa-muted);
  background: #f6f8fb;
  border: 1px solid #dce5ef;
  border-radius: 7px;
}
.qa-v2-search input { min-width: 0; width: 100%; background: transparent; border: 0; outline: 0; }
.qa-v2-library-tabs,
.qa-v2-property-tabs {
  display: grid;
  border-top: 1px solid #edf1f5;
  border-bottom: 1px solid var(--qa-line);
}
.qa-v2-library-tabs { grid-template-columns: repeat(3, 1fr); }
.qa-v2-property-tabs { grid-template-columns: repeat(4, 1fr); }
.qa-v2-library-tabs button,
.qa-v2-property-tabs button {
  position: relative;
  min-width: 0;
  min-height: 40px;
  padding: 0 5px;
  overflow: hidden;
  color: var(--qa-muted);
  background: #fff;
  border: 0;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qa-v2-library-tabs button.active,
.qa-v2-property-tabs button.active { color: var(--qa-blue-strong); font-weight: 700; }
.qa-v2-library-tabs button.active::after,
.qa-v2-property-tabs button.active::after {
  position: absolute;
  right: 12px;
  bottom: 0;
  left: 12px;
  height: 2px;
  background: var(--qa-blue);
  content: "";
}

.qa-v2-type-list,
.qa-v2-template-list,
.qa-v2-archive,
.qa-v2-property-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.qa-v2-type-list { padding: 12px 14px 22px; }
.qa-v2-type-list section + section { margin-top: 17px; }
.qa-v2-type-list section > b { display: block; margin: 0 0 7px; color: #40566c; font-size: 12px; }
.qa-v2-type-list section > button {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 9px;
  width: 100%;
  min-height: 52px;
  padding: 8px;
  color: var(--qa-text);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 7px;
}
.qa-v2-type-list section > button:hover { background: var(--qa-blue-soft); }
.qa-v2-type-list i {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: var(--qa-blue-strong);
  background: #e3efff;
  border-radius: 5px;
  font-style: normal;
  font-weight: 700;
}
.qa-v2-type-list span, .qa-v2-type-list strong, .qa-v2-type-list small { display: block; }
.qa-v2-type-list strong { font-size: 13px; }
.qa-v2-type-list small { margin-top: 2px; color: var(--qa-muted); font-size: 11px; }

.qa-v2-archive { display: grid; grid-template-columns: 94px minmax(0, 1fr); }
.qa-v2-archive > nav { padding: 8px; background: #f6f8fb; border-right: 1px solid #e3eaf2; }
.qa-v2-archive > nav button {
  width: 100%;
  min-height: 36px;
  padding: 5px 7px;
  color: #64788c;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 11px;
}
.qa-v2-archive > nav button.active { color: var(--qa-blue-strong); background: #e5f0ff; font-weight: 700; }
.qa-v2-archive > div { padding: 8px; }
.qa-v2-archive > div > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  padding: 8px;
  text-align: left;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #edf1f5;
}
.qa-v2-archive > div > button:hover { background: #f6f9fd; }
.qa-v2-archive > div > button.added { color: #64809c; }
.qa-v2-archive strong, .qa-v2-archive small { display: block; }
.qa-v2-archive small { margin-top: 2px; color: var(--qa-muted); font-size: 10px; }
.qa-v2-archive em { color: var(--qa-blue); font-size: 11px; font-style: normal; white-space: nowrap; }

.qa-v2-template-list { padding: 12px; }
.qa-v2-template-list article { padding: 12px 4px; border-bottom: 1px solid #e8eef5; }
.qa-v2-template-list article > small,
.qa-v2-template-list article > strong,
.qa-v2-template-list article > span { display: block; }
.qa-v2-template-list article > small { color: var(--qa-blue-strong); font-size: 10px; }
.qa-v2-template-list article > strong { margin-top: 4px; font-size: 13px; }
.qa-v2-template-list article > span { margin-top: 4px; color: var(--qa-muted); font-size: 11px; line-height: 1.45; }
.qa-v2-template-list article > div { display: flex; gap: 5px; margin-top: 9px; }
.qa-v2-template-list button { padding: 5px 8px; color: #36536f; background: #fff; border: 1px solid #d7e0ea; border-radius: 5px; font-size: 11px; }

.qa-v2-canvas { min-width: 0; min-height: 0; padding: 15px 22px 32px; overflow-y: auto; overscroll-behavior: contain; }
.qa-v2-canvas > header { display: flex; justify-content: space-between; gap: 18px; margin: 0 auto 12px; max-width: 720px; }
.qa-v2-canvas > header strong { color: var(--qa-navy); font-size: 14px; }
.qa-v2-canvas > header span { color: var(--qa-muted); font-size: 11px; text-align: right; }
.qa-v2-issues,
.qa-v2-content-card,
.qa-v2-page { max-width: 720px; margin-right: auto; margin-left: auto; }
.qa-v2-issues { margin-bottom: 12px; padding: 12px 14px; color: #963640; background: #fff0f1; border-left: 3px solid var(--qa-danger); }
.qa-v2-issues strong { display: block; margin-bottom: 6px; font-size: 12px; }
.qa-v2-issues button { display: block; padding: 3px 0; color: #963640; background: transparent; border: 0; font-size: 11px; text-decoration: underline; }
.qa-v2-content-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
  padding: 14px 16px;
  background: #e6f0fd;
  border: 1px solid #c5daf4;
  border-radius: 8px;
}
.qa-v2-content-card > div { min-width: 0; }
.qa-v2-content-card small,
.qa-v2-content-card strong,
.qa-v2-content-card span { display: block; }
.qa-v2-content-card small { color: #597896; font-size: 10px; }
.qa-v2-content-card strong { margin-top: 3px; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.qa-v2-content-card span { margin-top: 4px; color: #6a8094; font-size: 10px; }

.qa-v2-page { background: #fff; border: 1px solid #d7e1eb; border-radius: 9px; }
.qa-v2-page > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid #e7edf3;
}
.qa-v2-page > header small,
.qa-v2-page > header strong,
.qa-v2-page > header span { display: block; }
.qa-v2-page > header small { color: var(--qa-blue-strong); font-size: 10px; }
.qa-v2-page > header strong { margin-top: 3px; color: var(--qa-navy); font-size: 14px; }
.qa-v2-page > header span { margin-top: 3px; color: var(--qa-muted); font-size: 10px; }
.qa-v2-questions { padding: 8px 16px; }
.qa-v2-questions article {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: stretch;
  margin: 5px 0;
  border: 1px solid transparent;
  border-radius: 7px;
}
.qa-v2-questions article:hover { background: #f8fafc; }
.qa-v2-questions article.active { background: #f3f8ff; border-color: #73a8ef; box-shadow: 0 0 0 2px rgba(23, 105, 232, .07); }
.qa-v2-questions article > span { display: grid; place-items: center; color: #8a9aab; font-size: 10px; cursor: grab; }
.qa-v2-question-main,
.qa-v2-questions article.fixed > div {
  min-width: 0;
  padding: 10px 12px;
  color: var(--qa-text);
  text-align: left;
  background: transparent;
  border: 0;
}
.qa-v2-question-main strong,
.qa-v2-question-main small,
.qa-v2-question-main em,
.qa-v2-questions article.fixed strong,
.qa-v2-questions article.fixed small,
.qa-v2-questions article.fixed em { display: block; }
.qa-v2-question-main strong,
.qa-v2-questions article.fixed strong { font-size: 13px; }
.qa-v2-question-main small,
.qa-v2-questions article.fixed small { margin-top: 3px; color: var(--qa-muted); font-size: 10px; }
.qa-v2-question-main em,
.qa-v2-questions article.fixed em { margin-top: 8px; padding: 8px 10px; color: #9aa8b7; background: #f7f9fb; border: 1px solid #e4eaf0; border-radius: 5px; font-size: 11px; font-style: normal; }
.qa-v2-page > footer { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px 14px; border-top: 1px solid #eef2f6; }
.qa-v2-page > footer button { padding: 7px 10px; color: var(--qa-blue-strong); background: transparent; border: 1px dashed #99bce8; border-radius: 6px; }
.qa-v2-page > footer span { color: #8796a5; font-size: 10px; }
.qa-v2-empty { width: 100%; padding: 24px 12px; color: var(--qa-muted); background: transparent; border: 1px dashed #ccd8e5; border-radius: 7px; }

.qa-v2-property-body { padding: 14px 16px 24px; }
.qa-v2-property-body > label,
.qa-v2-two label { display: block; margin-bottom: 14px; color: #42576c; font-size: 11px; font-weight: 600; }
.qa-v2-property-body input,
.qa-v2-property-body textarea,
.qa-v2-property-body select {
  display: block;
  width: 100%;
  min-width: 0;
  margin-top: 6px;
  padding: 9px 10px;
  color: var(--qa-text);
  background: #fff;
  border: 1px solid #cfdae6;
  border-radius: 6px;
  font-size: 12px;
}
.qa-v2-property-body input,
.qa-v2-property-body select { height: 38px; }
.qa-v2-property-body textarea { min-height: 78px; resize: vertical; line-height: 1.5; }
.qa-v2-property-body input:disabled { color: #718396; background: #f1f4f7; }
.qa-v2-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 9px; }
.qa-v2-check { display: flex !important; align-items: center; gap: 8px; min-height: 38px; }
.qa-v2-check input { display: inline-block; width: 17px; height: 17px; margin: 0; }
.qa-v2-note { margin: 4px 0 14px; padding: 10px; color: #56718d; background: #eff5fb; border-radius: 6px; font-size: 11px; line-height: 1.5; }
.qa-v2-property > footer { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px; border-top: 1px solid var(--qa-line); }
.qa-v2-property > footer button { min-height: 32px; padding: 0 9px; font-size: 11px; }
.qa-v2-property > footer button.danger { color: var(--qa-danger); border-color: #eabfc3; }

.qa-v2-editor > footer {
  flex: 0 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 18px;
  color: #60768c;
  background: #fff;
  border-top: 1px solid var(--qa-line);
  font-size: 11px;
}
.qa-v2-editor > footer button { min-height: 32px; }

.qa-v2-preview-backdrop {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  background: rgba(8, 29, 53, .42);
  backdrop-filter: blur(2px);
}
.qa-v2-preview {
  display: grid;
  grid-template-rows: 68px minmax(0, 1fr);
  width: 430px;
  max-width: 100vw;
  height: 100%;
  padding: 0 20px 22px;
  background: #f3f6f9;
  box-shadow: -18px 0 48px rgba(8, 29, 53, .18);
  animation: qa-v2-slide-in .18s ease-out;
}
.qa-v2-preview > header { display: flex; align-items: center; justify-content: space-between; }
.qa-v2-preview > header strong,
.qa-v2-preview > header span { display: block; }
.qa-v2-preview > header strong { color: var(--qa-navy); font-size: 16px; }
.qa-v2-preview > header span { margin-top: 3px; color: var(--qa-muted); font-size: 11px; }
.qa-v2-preview > header button { width: 34px; height: 34px; color: #51677e; background: white; border: 1px solid #d5e0ea; border-radius: 7px; font-size: 19px; }
.qa-v2-phone {
  display: grid;
  grid-template-rows: 34px minmax(0, 1fr) auto;
  width: 390px;
  max-width: 100%;
  min-height: 0;
  margin: auto;
  overflow: hidden;
  background: #f5f7fa;
  border: 8px solid #17212b;
  border-radius: 34px;
  box-shadow: 0 18px 44px rgba(10, 34, 58, .2);
}
.qa-v2-phone-status { display: flex; justify-content: space-between; padding: 9px 18px 0; color: #1e2d3b; background: #fff; font-size: 10px; }
.qa-v2-phone main { min-height: 0; padding: 18px 16px 28px; overflow-y: auto; }
.qa-v2-phone main > small { color: var(--qa-blue); font-size: 10px; font-weight: 700; }
.qa-v2-phone h2 { margin: 5px 0 7px; color: #11375f; font-size: 21px; }
.qa-v2-phone main > p { margin: 0; color: #74869a; font-size: 11px; line-height: 1.55; }
.qa-v2-phone-progress { display: flex; justify-content: space-between; margin: 14px 0 9px; color: #66809a; font-size: 10px; }
.qa-v2-phone-progress b { color: var(--qa-blue-strong); }
.qa-v2-phone article { margin-top: 9px; padding: 13px; background: #fff; border-radius: 9px; }
.qa-v2-phone article small,
.qa-v2-phone article strong,
.qa-v2-phone article em { display: block; }
.qa-v2-phone article small { color: #8092a5; font-size: 9px; }
.qa-v2-phone article strong { margin-top: 4px; color: #233d58; font-size: 12px; }
.qa-v2-phone article p { margin: 5px 0 0; color: #7c8ea1; font-size: 10px; }
.qa-v2-phone article em { margin-top: 9px; padding: 9px; color: #a0adba; background: #f7f9fb; border: 1px solid #e5ebf1; border-radius: 5px; font-size: 10px; font-style: normal; }
.qa-v2-phone > footer { padding: 12px 16px 18px; background: #fff; }
.qa-v2-phone > footer button { width: 100%; min-height: 40px; color: #fff; background: var(--qa-blue); border: 0; border-radius: 7px; opacity: 1; }

@keyframes qa-v2-slide-in { from { transform: translateX(28px); opacity: .4; } to { transform: translateX(0); opacity: 1; } }

@media (max-width: 1320px) {
  .qa-v2-editor { left: 0; }
  .qa-v2-editor-body { grid-template-columns: 246px minmax(430px, 1fr) 300px; }
  .qa-v2-center-nav { grid-template-columns: 1fr; gap: 10px; }
  .qa-v2-notification > div { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1050px) {
  .qa-v2-editor { overflow: auto; }
  .qa-v2-editor-body { grid-template-columns: 230px 560px 300px; overflow: visible; }
}

@media (prefers-reduced-motion: reduce) {
  .qa-v2-preview { animation: none; }
}

/* v3: dense, aligned campaign workbench and icon-free type picker */
.qa-v2-center-nav { grid-template-columns: auto 1fr auto; gap: 16px; padding: 12px 18px; }
.qa-v2-center-nav > div > strong { font-size: 17px; }
.qa-v2-type-list section > button { display: flex; align-items: center; justify-content: space-between; min-height: 39px; padding: 6px 10px; cursor: pointer; }
.qa-v2-type-list section > button strong { font-size: 13px; }
.qa-v2-type-list section > button em { color: var(--qa-blue); font-size: 12px; font-style: normal; }
.qa-v2-canvas > header span, .qa-v2-library > header span, .qa-v2-property > header span { display: none; }
.qa-v3-campaign { margin: 0 0 22px; padding: 22px 24px; background: #fff; border: 1px solid #d8e6f5; border-radius: 14px; box-shadow: 0 10px 30px rgba(20,72,126,.06); color: #18334f; }
.qa-v3-campaign[hidden] { display: none !important; }
.qa-v3-campaign > header, .qa-v3-campaign > footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.qa-v3-campaign > header { padding-bottom: 16px; border-bottom: 1px solid #e2eaf3; }
.qa-v3-campaign h2 { margin: 0; font-size: 19px; line-height: 1.3; }
.qa-v3-count { font-size: 13px; font-weight: 700; color: #1769e8; white-space: nowrap; }
.qa-v3-fields { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; padding-top: 18px; }
.qa-v3-fields label { display: grid; gap: 7px; font-size: 13px; font-weight: 600; }
.qa-v3-fields input, .qa-v3-fields select, .qa-v3-toolbar input, .qa-v3-import textarea { width: 100%; min-height: 40px; box-sizing: border-box; padding: 8px 11px; border: 1px solid #d5e3f3; border-radius: 8px; background: #fff; color: #17324d; font: inherit; outline-color: #1769e8; }
.qa-v3-subhead { margin: 22px 0 11px; font-size: 14px; font-weight: 700; }
.qa-v3-categories { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 9px; }
.qa-v3-categories label { cursor: pointer; }
.qa-v3-categories input { position: absolute; opacity: 0; }
.qa-v3-categories span { display: grid; place-items: center; min-height: 38px; padding: 4px 7px; border: 1px solid #d5e3f3; border-radius: 8px; background: #f8fbff; font-size: 12px; font-weight: 600; text-align: center; }
.qa-v3-categories input:checked + span { color: #0c4fb6; border-color: #7caaf1; background: #edf5ff; box-shadow: inset 0 0 0 1px #7caaf1; }
.qa-v3-toolbar { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 9px; align-items: center; }
.qa-v3-campaign button { cursor: pointer; }
.qa-v3-toolbar button, .qa-v3-import button { min-height: 38px; padding: 0 14px; border: 1px solid #d5e3f3; border-radius: 8px; color: #245682; background: #fff; font-weight: 600; }
.qa-v3-people { max-height: 290px; margin-top: 12px; overflow-y: auto; border: 1px solid #e0e9f3; border-radius: 9px; }
.qa-v3-people-head, .qa-v3-people label { display: grid; grid-template-columns: 52px minmax(130px,1fr) minmax(180px,1.5fr) 90px; align-items: center; gap: 10px; min-height: 39px; padding: 0 14px; box-sizing: border-box; }
.qa-v3-people-head { position: sticky; top: 0; color: #66809b; background: #f3f7fc; font-size: 12px; font-weight: 700; }
.qa-v3-people label { border-top: 1px solid #edf2f8; font-size: 13px; cursor: pointer; }
.qa-v3-people label:hover { background: #f7fbff; }
.qa-v3-people input { width: 16px; height: 16px; accent-color: #1769e8; }
.qa-v3-nopeople { padding: 24px; color: #7890a7; text-align: center; }
.qa-v3-import { margin-top: 15px; padding: 12px 15px; border: 1px dashed #b8d0ec; border-radius: 9px; background: #f9fcff; }
.qa-v3-import summary { color: #1259b9; font-size: 13px; font-weight: 700; cursor: pointer; }
.qa-v3-import > div:not(.qa-v3-preview) { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: end; gap: 10px; margin-top: 13px; }
.qa-v3-import textarea { min-height: 74px; resize: vertical; }
.qa-v3-file { display: flex; flex-direction: column; gap: 6px; color: #335c85; font-size: 12px; }
.qa-v3-file input { max-width: 240px; }
.qa-v3-preview { margin-top: 10px; }
.qa-v3-stats { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 9px; font-size: 12px; }
.qa-v3-preview small { display: block; margin-bottom: 9px; color: #9a5d21; }
.qa-v3-campaign > footer { margin-top: 20px; padding-top: 16px; border-top: 1px solid #e2eaf3; }
.qa-v3-message { flex: 1; color: #14704d; font-size: 13px; text-align: right; }
.qa-v3-message.error { color: #c3424c; }
.qa-v3-send { min-width: 170px; min-height: 41px; padding: 0 22px; border: 0; border-radius: 8px; color: #fff; background: linear-gradient(100deg,#236ced,#00a9e8); font-weight: 700; }
.qa-v3-send:disabled { opacity: .55; cursor: not-allowed; }
@media (max-width: 1100px) { .qa-v3-fields { grid-template-columns: 1fr 1fr; } .qa-v3-categories { grid-template-columns: repeat(3,1fr); } }

/* v4: compact search + import dialog + real server-backed pagination */
.qa-v3-toolbar { grid-template-columns: minmax(200px,360px) auto minmax(0,1fr) auto auto; }
.qa-v3-toolbar input { min-width: 0; }
.qa-v3-toolbar button[data-campaign="open-import"] { color: #fff; background: #1769e8; border-color: #1769e8; }
.qa-v4-pager { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 12px 0 0; color: #627b94; font-size: 12px; }
.qa-v4-pager select { min-height: 32px; padding: 2px 7px; border: 1px solid #d5e3f3; border-radius: 6px; background: #fff; color: #17324d; }
.qa-v4-pager button { min-height: 32px; padding: 0 12px; border: 1px solid #d5e3f3; border-radius: 6px; background: #fff; color: #245682; }
.qa-v4-pager button:disabled { color: #a8b8c8; cursor: not-allowed; }
.qa-v4-modal { position: fixed; z-index: 10050; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(12,31,57,.48); }
.qa-v4-modal[hidden] { display: none !important; }
.qa-v4-dialog { width: min(640px,100%); max-height: min(85vh,780px); display: flex; flex-direction: column; background: #fff; border-radius: 14px; box-shadow: 0 24px 70px rgba(5,25,51,.3); overflow: hidden; }
.qa-v4-dialog > header, .qa-v4-dialog > footer { display: flex; align-items: center; gap: 10px; padding: 17px 20px; }
.qa-v4-dialog > header { justify-content: space-between; border-bottom: 1px solid #e2eaf3; }
.qa-v4-dialog h3 { margin: 0; font-size: 18px; }
.qa-v4-dialog > header button { width: 30px; height: 30px; border: 0; background: transparent; color: #607994; font-size: 22px; }
.qa-v4-dialog-body { display: grid; gap: 14px; padding: 20px; overflow: auto; }
.qa-v4-dialog-body textarea { width: 100%; min-height: 150px; box-sizing: border-box; padding: 12px; resize: vertical; border: 1px solid #d5e3f3; border-radius: 8px; font: inherit; }
.qa-v4-dialog-body .qa-v3-file input { max-width: 100%; }
.qa-v4-dialog > footer { justify-content: flex-end; border-top: 1px solid #e2eaf3; }
.qa-v4-dialog > footer button, .qa-v3-preview button { min-height: 37px; padding: 0 15px; border: 1px solid #d5e3f3; border-radius: 7px; color: #245682; background: #fff; font-weight: 600; }
.qa-v4-dialog > footer button[data-campaign="resolve"], .qa-v3-preview button { color: #fff; background: #1769e8; border-color: #1769e8; }
.qa-v4-modal-message { flex: 1; color: #14704d; font-size: 12px; }
.qa-v4-modal-message.error { color: #c3424c; }
@media (max-width: 850px) { .qa-v3-toolbar { grid-template-columns: minmax(0,1fr) auto; } .qa-v3-toolbar > span { display:none; } .qa-v4-pager { flex-wrap:wrap; } }
.survey-manager > .survey-list > header p { display: none; }
