/* PromXAI Theme 2.0.0-RC14 — branded desktop prompt copy action.
   Phone <=760px is intentionally untouched. */

.px-prompt-top-copy { display: none; }

@media (min-width: 761px) {
  .promxai-prompt-focus .px-prompt-detail-140 .px-prompt-language-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding-bottom: 14px !important;
    margin-bottom: 12px !important;
    border-bottom: 1px solid rgba(151, 169, 205, .14) !important;
  }

  .promxai-prompt-focus .px-prompt-detail-140 .px-prompt-tabs {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .promxai-prompt-focus .px-prompt-detail-140 .px-prompt-tabs > [data-prompt-tab] {
    width: 100% !important;
    min-width: 0 !important;
  }

  .promxai-prompt-focus .px-prompt-detail-140 .px-prompt-top-copy {
    display: inline-flex !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 48px !important;
    padding: 0 18px !important;
    border: 1px solid rgba(255,255,255,.16) !important;
    border-radius: 14px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    color: #fff !important;
    background: linear-gradient(105deg, #2f8cff 0%, #7162f4 54%, #bd42c7 100%) !important;
    box-shadow: 0 12px 28px rgba(91, 76, 220, .22), inset 0 1px 0 rgba(255,255,255,.22) !important;
    cursor: pointer !important;
    font: inherit !important;
    font-size: 13px !important;
    font-weight: 850 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease !important;
  }

  .promxai-prompt-focus .px-prompt-detail-140 .px-prompt-top-copy .px-icon,
  .promxai-prompt-focus .px-prompt-detail-140 .px-prompt-top-copy svg {
    width: 19px !important;
    height: 19px !important;
    flex: 0 0 auto !important;
    stroke-width: 1.9 !important;
  }

  .promxai-prompt-focus .px-prompt-detail-140 .px-prompt-top-copy:hover,
  .promxai-prompt-focus .px-prompt-detail-140 .px-prompt-top-copy:focus-visible {
    color: #fff !important;
    filter: brightness(1.06) saturate(1.05) !important;
    box-shadow: 0 16px 34px rgba(91, 76, 220, .28), 0 0 22px rgba(83, 132, 255, .10), inset 0 1px 0 rgba(255,255,255,.28) !important;
    transform: translateY(-1px) !important;
  }

  .promxai-prompt-focus .px-prompt-detail-140 .px-prompt-top-copy:active {
    transform: translateY(0) scale(.995) !important;
  }

  .promxai-prompt-focus .px-prompt-detail-140 .px-prompt-top-copy.is-copied {
    color: #fff !important;
    background: linear-gradient(105deg, #159b74 0%, #2cc98d 100%) !important;
    border-color: rgba(151, 255, 211, .30) !important;
    box-shadow: 0 12px 28px rgba(30, 160, 111, .20), inset 0 1px 0 rgba(255,255,255,.22) !important;
  }

  /* Copy is now owned by the branded action above the prompt text. */
  .promxai-prompt-focus .px-prompt-detail-140 .px-prompt-panel > .px-copy-button {
    display: none !important;
  }

  .promxai-prompt-focus .px-prompt-detail-140 .px-prompt-scene-switcher {
    margin-top: 0 !important;
    margin-bottom: 12px !important;
  }

  html[data-theme="light"] .promxai-prompt-focus .px-prompt-detail-140 .px-prompt-language-row {
    border-bottom-color: rgba(88, 108, 148, .14) !important;
  }

  /* Keep the copy CTA branded in light mode too; this avoids the washed-out
     grey button problem while preserving a single visual language. */
  html[data-theme="light"] .promxai-prompt-focus .px-prompt-detail-140 .px-prompt-top-copy {
    color: #fff !important;
    border-color: rgba(73, 93, 180, .12) !important;
    background: linear-gradient(105deg, #2f8cff 0%, #7162f4 54%, #bd42c7 100%) !important;
    box-shadow: 0 12px 26px rgba(75, 89, 181, .18), inset 0 1px 0 rgba(255,255,255,.25) !important;
  }
}
