/* ask_user_questions.survey clarify card styles (survey + discovery) */

.clarify-v1 {
  background: var(--bg3, #f4f5f7);
  border: 1px solid var(--border);
  border-radius: 4px 14px 14px 14px;
  padding: 16px 18px;
  width: 100%;
  max-width: 720px;
  box-sizing: border-box;
}
.cv1-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent2);
  margin-bottom: 10px;
}
/* Header row: title on left, progress on right (discovery 模式有进度条) */
.cv1-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.cv1-header .cv1-title { margin-bottom: 0; }
.cv1-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.cv1-progress-text {
  font-size: 11px;
  color: var(--text2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.cv1-progress-bar {
  width: 72px;
  height: 4px;
  background: var(--bg2);
  border-radius: 2px;
  overflow: hidden;
  display: inline-block;
}
.cv1-progress-fill {
  display: block;
  height: 100%;
  background: var(--accent);
  transition: width .2s ease-out;
}
.cv1-bc {
  font-size: 11px;
  color: var(--text2);
  margin-bottom: 8px;
}
.cv1-bc-item {
  background: var(--bg2);
  padding: 2px 8px;
  border-radius: 10px;
  margin-right: 4px;
}
.cv1-bc-sep {
  color: var(--text3, #888);
  margin-right: 4px;
}
.cv1-body { display: flex; flex-direction: column; gap: 12px; }
.cv1-btns {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* Per-question block */
.cq {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--bg2);
  transition: opacity .15s;
}
.cq.cq-skipped { opacity: 0.45; }
.cq-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 8px;
}
.cq-q {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  flex: 1;
}
.cq-bind {
  font-size: 10px;
  color: var(--text2);
  background: var(--bg4);
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: lowercase;
}

.cq-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.cq-opt {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  background: var(--bg3, var(--bg2));
  transition: all .15s;
  min-width: 90px;
  font-size: 12px;
  color: var(--text);
}
.cq-opt:hover { border-color: var(--accent); }
.cq-opt input[type="radio"],
.cq-opt input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--accent);
}
.cq-opt-click { }
.cq-opt-click:hover { background: var(--bg4); }
.cq-opt-body { flex: 1; }
.cq-opt-label { font-weight: 500; }
.cq-opt-desc {
  font-size: 11px;
  color: var(--text2);
  margin-top: 2px;
}

/* free-text + per-question skip */
.cq-extra {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 6px;
}
.cq-free {
  flex: 1;
  background: var(--bg4);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: 5px 8px;
  font-size: 12px;
  outline: none;
  font-family: inherit;
}
.cq-free:focus { border-color: var(--accent); }
.cq-skip {
  font-size: 11px;
  background: transparent;
  color: var(--text2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
}
.cq-skip:hover { background: var(--bg4); color: var(--text); }

/* 历史态（已提交）只读卡片 / Submitted / readonly card */
.clarify-v1-readonly {
  opacity: 0.65;
  filter: grayscale(0.3);
  user-select: none;
}
/* readonly：nav 按钮可点（翻看），选项/输入/操作按钮禁 */
.clarify-v1-readonly .cq-opt { pointer-events: none; cursor: default; }
.clarify-v1-readonly .cv3-supp-ta,
.clarify-v1-readonly .cv3-supp-attach,
.clarify-v1-readonly .cq-other-input { pointer-events: none; }
.clarify-v1-readonly .cv1-btns button { pointer-events: none; opacity: .4; }
.clarify-v1-readonly .cq-opt { cursor: default; }
.clarify-v1-readonly .cv1-title::after {
  content: ' · ' attr(data-submitted-hint);
}
/* discovery 提交后的摘要：选中项高亮 */
.cq-opt.cq-opt-checked {
  border-color: var(--accent);
  background: var(--bg4);
  font-weight: 500;
}

/* ─────────────────────────────────────────────────────────────
   ask_user_questions.discovery multi-round wizard (discovery_v2.js)
   ───────────────────────────────────────────────────────────── */
.discovery-v2 {
  background: var(--bg3, #f4f5f7);
  border: 1px solid var(--border);
  border-radius: 4px 14px 14px 14px;
  padding: 16px 18px;
  width: 100%;
  max-width: 720px;
  position: relative;
  box-sizing: border-box;
}
.d2-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.d2-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent2);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.d2-reason {
  color: var(--text2);
  font-weight: 400;
  font-size: 11px;
}
.d2-progress {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.d2-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 11px;
  padding: 6px 0;
  margin-bottom: 10px;
  border-bottom: 1px dashed var(--border);
  color: var(--text2);
}
.d2-step {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 10px;
  background: var(--bg2);
}
.d2-step-icon {
  display: inline-block;
  width: 12px;
  text-align: center;
  font-size: 10px;
  line-height: 1;
}
.d2-step-pending { opacity: .55; }
.d2-step-active {
  color: var(--accent);
  background: var(--bg3, var(--bg2));
  font-weight: 500;
  border: 1px solid var(--accent);
}
.d2-step-done { color: var(--text); }
.d2-step-skipped { opacity: .45; }
.d2-body { display: flex; flex-direction: column; gap: 12px; }
.d2-question {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--bg2);
}
.d2-btns {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.d2-btns-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.d2-btns-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}
/* 块按钮 Skip (ghost) / Next (primary) */
.d2-btn {
  font-size: 13px;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, color .15s, border-color .15s, opacity .15s;
  line-height: 1.4;
  min-width: 72px;
}
.d2-btn-ghost {
  background: var(--bg2, #fff);
  color: var(--text);
  border: 1px solid var(--border);
}
.d2-btn-ghost:hover {
  border-color: var(--text3, var(--text2));
  background: var(--bg3, var(--bg2));
}
.d2-btn-primary {
  background: var(--text, #111);
  color: var(--bg2, #fff);
  border: 1px solid var(--text, #111);
}
.d2-btn-primary:hover { opacity: .88; }
.d2-btn-disabled,
.d2-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
  pointer-events: none;
}
/* header 右上角两个箭头（紧邻进度百分比） */
.d2-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 16px;
  line-height: 1;
  color: var(--text2);
  cursor: pointer;
  user-select: none;
  background: transparent;
  border: none;
  text-decoration: none;
  transition: color .15s;
  flex-shrink: 0;
}
.d2-arrow:hover,
.d2-arrow:focus {
  color: var(--text);
  outline: none;
}
.d2-arrow-disabled {
  color: var(--text3, var(--text2));
  opacity: .3;
  cursor: default;
  pointer-events: none;
}

/* ─── 满宽 block 选项（截图风格）─── */
.d2-q-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin: 6px 0 10px;
}
.d2-opts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
/* free-text 行独占一整行 / free-text spans both columns */
.d2-opts > .d2-opt-free {
  grid-column: 1 / -1;
}
.d2-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  font-size: 13px;
  color: var(--text);
}
.d2-opt:hover {
  border-color: var(--text3, var(--text2));
}
.d2-opt input[type="radio"],
.d2-opt input[type="checkbox"] {
  display: none;
}
.d2-opt-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text2);
  font-size: 14px;
  flex-shrink: 0;
}
.d2-opt-body {
  flex: 1;
  min-width: 0;
}
.d2-opt-label {
  font-weight: 500;
  line-height: 1.4;
}
.d2-opt-desc {
  font-size: 11px;
  color: var(--text2);
  margin-top: 2px;
}
/* 右侧圆形 radio 指示器 */
.d2-opt-radio {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  flex-shrink: 0;
  background: transparent;
  transition: border-color .15s, background .15s;
}
.d2-opt:has(input:checked) {
  border-color: var(--text, #111);
  background: var(--bg2);
}
.d2-opt:has(input:checked) .d2-opt-radio {
  border-color: var(--text, #111);
  background: var(--text, #111);
  box-shadow: inset 0 0 0 3px var(--bg2, #fff);
}
/* free-text 行样式 */
.d2-opt-free {
  cursor: text;
  padding: 0 14px;
}
.d2-free {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 11px 0;
  font-size: 13px;
  color: var(--text);
  font-family: inherit;
}
.d2-free::placeholder {
  color: var(--text3, var(--text2));
}
.d2-opt-attach {
  color: var(--text3, var(--text2));
  font-size: 14px;
  flex-shrink: 0;
}
/* 文字链样式：无方框，仅颜色变化 */
.d2-link {
  font-size: 12px;
  color: var(--text2);
  cursor: pointer;
  user-select: none;
  padding: 2px 0;
  background: transparent;
  border: none;
  text-decoration: none;
  transition: color .15s;
  white-space: nowrap;
}
.d2-link:hover,
.d2-link:focus {
  color: var(--accent2, var(--text));
  outline: none;
}
.d2-link-muted {
  color: var(--text3, var(--text2));
  opacity: .75;
}
.d2-link-muted:hover,
.d2-link-muted:focus {
  opacity: 1;
  color: var(--text2);
}
/* 顶部 header 右上角迷你转圈（放在 .d2-progress 最左侧） */
.d2-mini-sp {
  width: 12px;
  height: 12px;
  border-width: 1.5px;
  margin-right: 4px;
}
.discovery-v2-loading { position: relative; }
.discovery-v2-loading .d2-btns,
.discovery-v2-loading .d2-question { opacity: .6; }

/* closed / readonly */
.discovery-v2-readonly {
  opacity: 0.85;
  pointer-events: none;
  user-select: none;
}
.discovery-v2-readonly .d2-btns,
.discovery-v2-readonly .d2-steps { display: none; }
.d2-closed-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.d2-closed-step {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--bg2);
  font-size: 12px;
}
.d2-closed-step.d2-step-skipped {
  opacity: .55;
}
.d2-closed-title {
  font-weight: 600;
  font-size: 12px;
  color: var(--accent2);
  margin-bottom: 4px;
}
.d2-closed-q {
  font-size: 11px;
  color: var(--text2);
  margin-bottom: 4px;
}
.d2-closed-answer {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.d2-chip {
  background: var(--bg4);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2px 8px;
  font-size: 11px;
}
.d2-closed-free {
  color: var(--text);
  font-style: italic;
}
.d2-closed-skipped {
  color: var(--text3, var(--text2));
  font-style: italic;
}
/* 展开前轮（仅当某大步有 ≥2 轮答问时出现） */
/* Expand earlier rounds (appears only when a big step has ≥2 rounds) */
.d2-closed-prev {
  margin-top: 8px;
  font-size: 11px;
}
.d2-closed-prev > summary {
  cursor: pointer;
  color: var(--text2);
  user-select: none;
  padding: 2px 0;
  list-style: revert;
}
.d2-closed-prev > summary:hover {
  color: var(--accent2);
}
.d2-closed-prev-round {
  margin-top: 6px;
  padding: 6px 8px;
  border-left: 2px solid var(--border);
  background: var(--bg3, var(--bg4));
  border-radius: 0 6px 6px 0;
  opacity: .85;
}
.d2-closed-prev-round .d2-closed-q {
  margin-bottom: 3px;
}

/* preview（只读预览某一已答大步）*/
.d2-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.d2-preview-banner {
  font-size: 11px;
  color: var(--text2);
  padding: 4px 8px;
  background: var(--bg4, rgba(0, 0, 0, .08));
  border-radius: 6px;
  align-self: flex-start;
}
.discovery-v2-preview .d2-body,
.discovery-v2-preview .d2-question { display: none; }


/* ═══════════════════════════════════════════════════════════════
   Survey (clarify-v1) 块状覆盖 / block-style override
   参考 discovery-v2 的 .d2-opt 设计：整行白卡、icon-left（隐藏 input）、
   右侧圆形 radio 指示器、选中态深边 + 填心。
   ═══════════════════════════════════════════════════════════════ */

/* 每个问题块：去掉内嵌边框，仅作为 title + options 的容器 */
.clarify-v1 .cq {
  border: none;
  background: transparent;
  padding: 0;
  margin-bottom: 14px;
}
.clarify-v1 .cq:last-child { margin-bottom: 0; }
.clarify-v1 .cq-head { margin-bottom: 10px; }
.clarify-v1 .cq-q {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.clarify-v1 .cq-bind { /* bind 小标签保留但弱化 */ opacity: .6; }

/* 选项列表：auto-fit grid，一行放多个。min 200px 让 LLM 生成的 8-15 字 label
   绝大多数能一行写完，避免 ellipsis 截断。label 不强制 nowrap，真正超长时
   自然换成两行，比 "xxxxx..." 好看。output_language 走独立 <select>，不经过此处。
   Options: auto-fit grid with 200px min so LLM-authored labels fit in one row;
   naturally wrap on truly long labels (looks nicer than ellipsis). */
.clarify-v1 .cq-opts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
  margin-bottom: 8px;
  align-items: stretch;
}
.clarify-v1 .cq-opts .cq-opt {
  min-width: 0;
}
/* output_language 用原生 <select> 下拉，独占一行，风格对齐选项卡片 */
.clarify-v1 .cq-select {
  width: 100%;
  display: block;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 13px;
  color: var(--text);
  font-family: inherit;
  outline: none;
  cursor: pointer;
  transition: border-color .15s;
  appearance: auto;
}
.clarify-v1 .cq-select:hover { border-color: var(--text3, var(--text2)); }
.clarify-v1 .cq-select:focus { border-color: var(--text, #111); }
.clarify-v1 .cq-select:disabled {
  opacity: .65;
  cursor: default;
}

/* 单个选项：整行白卡 */
.clarify-v1 .cq-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  font-size: 13px;
  color: var(--text);
  min-width: 0;
}
.clarify-v1 .cq-opt:hover { border-color: var(--text3, var(--text2)); }
.clarify-v1 .cq-opt input[type="radio"],
.clarify-v1 .cq-opt input[type="checkbox"] { display: none; }
.clarify-v1 .cq-opt-body { flex: 1; min-width: 0; }
.clarify-v1 .cq-opt-label { font-weight: 500; line-height: 1.4; }
.clarify-v1 .cq-opt-desc {
  font-size: 11px;
  color: var(--text2);
  margin-top: 2px;
}

/* 右侧圆形 radio 指示器（单选） */
.clarify-v1 .cq-opt::after {
  content: "";
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  flex-shrink: 0;
  background: transparent;
  transition: border-color .15s, background .15s;
}
/* 多选（checkbox）换成方框 */
.clarify-v1 .cq-opt:has(input[type="checkbox"])::after {
  border-radius: 4px;
}
/* 选中态 */
.clarify-v1 .cq-opt:has(input:checked) {
  border-color: var(--text, #111);
  background: var(--bg2);
}
.clarify-v1 .cq-opt:has(input[type="radio"]:checked)::after {
  border-color: var(--text, #111);
  background: var(--text, #111);
  box-shadow: inset 0 0 0 3px var(--bg2, #fff);
}
.clarify-v1 .cq-opt:has(input[type="checkbox"]:checked)::after {
  border-color: var(--text, #111);
  background: var(--text, #111);
  box-shadow: inset 0 0 0 2px var(--bg2, #fff);
}

/* free-text 行与 discovery-v2 的 .d2-opt-free 风格对齐：透明行、跟单题下一条 */
.clarify-v1 .cq-extra {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
  padding: 0 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.clarify-v1 .cq-free {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 11px 0;
  font-size: 13px;
  color: var(--text);
  font-family: inherit;
}
.clarify-v1 .cq-free::placeholder { color: var(--text3, var(--text2)); }
.clarify-v1 .cq-skip {
  font-size: 11px;
  background: transparent;
  color: var(--text3, var(--text2));
  border: none;
  padding: 4px 6px;
  cursor: pointer;
  flex-shrink: 0;
}
.clarify-v1 .cq-skip:hover { color: var(--text2); }

/* 底部按钮：和 discovery-v2 的 .d2-btns 视觉一致 */
.clarify-v1 .cv1-btns {
  border-top: 1px solid var(--border);
  margin-top: 12px;
  padding-top: 12px;
}

/* ═══════════════════════════════════════════════════════════════
   v3 stepper（一页一题引导式） / one-question-per-page stepper
   ═══════════════════════════════════════════════════════════════ */

.clarify-v3 .cv3-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.clarify-v3 .cv3-header-left { flex: 1; min-width: 0; }
.clarify-v3 .cv1-title { display: inline-flex; align-items: center; gap: 8px; }
.cv3-round {
  font-size: 11px;
  font-weight: 500;
  color: var(--accent2);
  background: var(--bg4);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2px 8px;
}
.cv3-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.cv3-pct {
  font-size: 11px;
  color: var(--text2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  margin-right: 2px;
}
.cv3-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 15px;
  line-height: 1;
  color: var(--text2);
  cursor: pointer;
  user-select: none;
  background: transparent;
  border: none;
  transition: color .15s, opacity .15s;
  padding: 0;
}
.cv3-nav-btn:hover { color: var(--text); }
.cv3-nav-disabled {
  opacity: .3;
  cursor: default;
  pointer-events: none;
}

/* 一页一题：非当前页隐藏 */
.clarify-v3 .cv3-page[hidden] { display: none; }
/* 提交后保持 stepper 布局（一题一页），仅禁交互 */
.clarify-v3.clarify-v1-readonly .cv1-btns button {
  opacity: .4; cursor: not-allowed; pointer-events: none;
}
.clarify-v3.clarify-v1-readonly .cv3-nav-btn {
  pointer-events: auto !important; cursor: pointer !important; opacity: 1 !important;
}
.clarify-v3.clarify-v1-readonly .cv3-nav-btn.cv3-nav-disabled { opacity: .3 !important; }

/* header 短标签 chip */
.clarify-v3 .cv3-chip {
  font-size: 10px;
  font-weight: 500;
  color: var(--accent2);
  background: var(--bg4);
  border-radius: 4px;
  padding: 2px 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.clarify-v3 .cq-head { display: flex; align-items: center; gap: 8px; }

/* 推荐徽章 */
.cv3-rec {
  display: inline-block;
  font-size: 10px;
  color: #b8860b;
  background: rgba(255, 193, 7, .14);
  border-radius: 4px;
  padding: 1px 5px;
  margin-left: 6px;
  vertical-align: 1px;
}

/* "其他"展开输入框 */
.clarify-v3 .cq-other-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 8px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text);
  font-family: inherit;
  outline: none;
}
.clarify-v3 .cq-other-input:focus { border-color: var(--text, #111); }

/* 底部细进度条 */
.clarify-v3 .cv3-bar {
  height: 3px;
  background: var(--bg2);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 10px;
}
.clarify-v3 .cv3-bar-fill {
  display: block;
  height: 100%;
  background: var(--accent);
  transition: width .25s ease-out;
}
.clarify-v3.clarify-v1-readonly .cv3-bar { opacity: .5; }

/* 卡片级补充信息（输入框 + 附件按钮，对齐 Genspark） */
.clarify-v3 .cv3-supp { margin-top: 10px; }
.clarify-v3 .cv3-supp-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.clarify-v3 .cv3-supp-row .cv3-supp-ta { flex: 1; }
.clarify-v3 .cv3-supp-attach {
  flex-shrink: 0;
  width: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text2);
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.clarify-v3 .cv3-supp-attach:hover { border-color: var(--text3, var(--text2)); color: var(--text); }
.clarify-v3 .cv3-supp-attach:disabled { opacity: .4; cursor: not-allowed; }
.clarify-v3 .cv3-supp .attach-bar-wrap { margin-top: 8px; }
.clarify-v3 .cv3-supp-ta {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  min-height: 56px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 12px;
  color: var(--text);
  font-family: inherit;
  outline: none;
}
.clarify-v3 .cv3-supp-ta:focus { border-color: var(--text, #111); }
.clarify-v3 .cv1-btns { display: flex; justify-content: flex-end; gap: 8px; }


