/* Product Copilot content only; shared drawer, close control and launcher stay unchanged. */
#product-copilot-drawer .jdc-ai-body {
  padding: 16px;
  font-size: 14px;
  line-height: 1.6;
}

#product-copilot-drawer [data-copilot-content] {
  min-width: 0;
  overflow-wrap: anywhere;
}

#product-copilot-drawer [data-copilot-content] > section,
#product-copilot-drawer [data-copilot-content] > details,
#product-copilot-drawer [data-copilot-content] article.jdc-ai-answer {
  margin: 0 0 16px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

#product-copilot-drawer [data-copilot-content] h3 {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.5;
}

#product-copilot-drawer [data-copilot-content] h4 {
  margin: 16px 0 8px;
  font-size: 14px;
  line-height: 1.6;
}

#product-copilot-drawer [data-copilot-content] p {
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.6;
}

#product-copilot-drawer [data-analysis-form] > label {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
}

#product-copilot-drawer [data-analysis-form] input[name="topic"] {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 44px;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
}

#product-copilot-drawer [data-analysis-form] fieldset {
  min-width: 0;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

#product-copilot-drawer [data-analysis-form] legend {
  padding: 0;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 14px;
}

#product-copilot-drawer [data-analysis-form] fieldset label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

#product-copilot-drawer [data-analysis-form] input[type="checkbox"] {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin: 3px 0 0;
}

#product-copilot-drawer [data-copilot-content] p:has(> button[data-preview-id]) {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

#product-copilot-drawer [data-preview-id] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

#product-copilot-drawer [data-preview-id]:hover:not(:disabled) {
  background: var(--g10);
}

#product-copilot-drawer [data-copilot-content] button:disabled,
#product-copilot-drawer [data-analysis-form] input:disabled {
  opacity: .55;
  cursor: default;
}

#product-copilot-drawer [data-analysis-form] input:focus-visible,
#product-copilot-drawer [data-copilot-content] button:focus-visible {
  outline: 2px solid var(--g100);
  outline-offset: 2px;
}

#product-copilot-drawer [data-copilot-content] blockquote {
  margin: 10px 0;
  padding: 0 0 0 12px;
  border-left: 2px solid var(--line-strong);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

#product-copilot-drawer [data-copilot-content] .jdc-ai-answer-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
}

#product-copilot-drawer [data-document-preview] pre {
  margin: 8px 0 12px;
  font: inherit;
  font-size: 14px;
  line-height: 1.6;
}

#product-copilot-drawer [data-document-preview] summary,
#product-copilot-drawer [data-copilot-content] > details > summary {
  padding: 6px 0;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
}

#product-copilot-drawer [data-copilot-status] {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

#product-copilot-drawer [data-copilot-status]:empty {
  display: none;
}
