/* Native CSS/SVG rendering stays sharp at the device's pixel density.
   Wider viewports gain space without stretching conversation line lengths. */
#root .cgv6 .cq-product {
  --cq-display-width: 960px;
  --cq-reading-width: 880px;
}
#root .cgv6 .cq-product .xc-shell.center {
  max-width: var(--cq-display-width);
  width: 100%;
  padding-inline: clamp(12px, 2vw, 36px);
  box-sizing: border-box;
}
#root .cgv6 .cq-product .xc-hero {
  max-width: none;
  padding: clamp(28px, 3vw, 56px) clamp(20px, 2.5vw, 48px);
  border-radius: 28px;
}
#root .cgv6 .cq-product .xc-hero::before {
  background: radial-gradient(ellipse at 30% 0%, #e9dfff 0%, transparent 65%),
    linear-gradient(135deg, #faf8ff, #f3effb 65%, #fbf4f1);
  border-color: #e5dff2;
}
#root .cgv6 .cq-product .xc-hero h1 {
  font-size: clamp(30px, 2.6vw, 56px);
  line-height: 1.18;
  text-wrap: balance;
  margin-bottom: clamp(24px, 2vw, 40px);
}
#root .cgv6 .cq-product .xc-hero > svg[aria-label='CrowQ'] {
  width: clamp(88px, 5vw, 120px);
  height: auto;
}
#root .cgv6 .cq-product .xc-in {
  padding: 18px;
  border-radius: 22px;
}
#root .cgv6 .cq-product .xc-in textarea {
  font-size: 16px;
  min-height: 88px;
  cursor: text;
}
#root .cgv6 .cq-product .xc-bar {
  flex-wrap: wrap;
  gap: 8px;
}
#root .cgv6 .cq-product .xc-bar > * { min-width: 0; }
#root .cgv6 .cq-product .xc-bar button { min-height: 36px; }
#root .cgv6 .cq-product .xc-modelwrap { max-width: 100%; }
#root .cgv6 .cq-product .xc-cockpit-main > .xc-inwrap {
  max-width: var(--cq-reading-width);
}
#root .cgv6 .cq-product :is(.xc-msg-body, .xc-inwrap, .cb-spot) {
  min-width: 0;
  overflow-wrap: anywhere;
}
#root .cgv6 .cq-product :is(.xc-msg-body img, .xc-msg-body video) {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
#root .cgv6 .cq-product :is(.xc-msg-body pre, .xc-msg-body table) {
  max-width: 100%;
  overflow-x: auto;
}
#root .cgv6 .cq-product :is(button, a):focus-visible {
  outline: 2px solid #7353dc;
  outline-offset: 3px;
}
@media (min-width: 1920px) {
  #root .cgv6 .cq-product .cqp-header { padding-inline: 40px; }
  #root .cgv6 .cq-product > .vh { padding-inline: 40px; }
}
@media (min-width: 2560px) {
  #root .cgv6 .cq-product { --cq-display-width: 1152px; }
  #root .cgv6 .cq-product .xc-hero { padding-block: 64px; }
  #root .cgv6 .cq-product .xc-in textarea { min-height: 112px; }
  #root .cgv6 .cq-product .xc-quick { gap: 12px; }
  #crowq-workbench :is(.cq-content, .cq-workspace) { min-width: 0; }
  #crowq-workbench .work-hero { max-width: 1200px; margin-inline: auto; }
}
@media (max-width: 650px) {
  #root .cgv6 .cq-product .xc-shell.center { padding-inline: 8px; }
  #root .cgv6 .cq-product .xc-hero { padding: 24px 14px; border-radius: 20px; }
  #root .cgv6 .cq-product .xc-hero h1 { font-size: clamp(26px, 7vw, 32px); }
  #root .cgv6 .cq-product .xc-in { padding: 12px; }
  #root .cgv6 .cq-product .xc-bar button { min-height: 44px; }
  #root .cgv6 .cq-product .xc-modelwrap { flex: 1 1 160px; }
  #root .cgv6 .cq-product .xc-quick { gap: 8px; }
}
@media (max-width: 640px) {
  #root .cgv6 .cq-product .cqp-apps { gap: 0; }
  #root .cgv6 .cq-product .cqp-apps button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
    padding: 8px 3px;
    font-size: 11px;
  }
}
