/* V1412: Live Studio desktop Access and pricing sheet only.
   Its visible shell uses data-f999-panel, not the older f911-details-open class.
   Keep all original button nodes and click handlers. No streaming logic changed. */
@media (min-width:1120px) {
  .social-shell:has([data-live-studio]) .f254-studio-v722 form.f254-v722-details.f985-form-visible[data-f999-panel="pricing"] {
    box-sizing: border-box !important;
    scrollbar-gutter: stable;
  }
  /* Premium CTA: override unstyled native button and obsolete state-based styles. */
  .social-shell:has([data-live-studio]) .f254-studio-v722 form.f254-v722-details.f985-form-visible[data-f999-panel="pricing"] .f883-form-price > button.f920-upgrade-access {
    -webkit-appearance: none !important;
    appearance: none !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 48px !important;
    height: auto !important;
    margin: 8px 0 12px !important;
    padding: 12px 18px !important;
    border: 1px solid #176ae6 !important;
    border-radius: 50px !important;
    background: #1877f2 !important;
    color: #fff !important;
    box-shadow: 0 6px 17px rgba(24,119,242,.18) !important;
    font-size: 14px !important;
    font-weight: 780 !important;
    line-height: 1.3 !important;
    letter-spacing: 0 !important;
    text-align: center !important;
    text-decoration: none !important;
    cursor: pointer !important;
    white-space: normal !important;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease !important;
  }
  .social-shell:has([data-live-studio]) .f254-studio-v722 form.f254-v722-details.f985-form-visible[data-f999-panel="pricing"] .f920-upgrade-access svg {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 18px !important;
    color: currentColor !important;
  }
  .social-shell:has([data-live-studio]) .f254-studio-v722 form.f254-v722-details.f985-form-visible[data-f999-panel="pricing"] .f920-upgrade-access:hover {
    background: #0868df !important;
    border-color: #0868df !important;
  }
  /* Keep the existing Back to Studio handler; give it a real pill appearance. */
  .social-shell:has([data-live-studio]) .f254-studio-v722 form.f254-v722-details.f985-form-visible[data-f999-panel="pricing"] > button.f985-settings-close {
    -webkit-appearance: none !important;
    appearance: none !important;
    box-sizing: border-box !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 12 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    width: fit-content !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 40px !important;
    margin: 0 0 16px auto !important;
    padding: 9px 15px !important;
    border: 1px solid #cdd7e6 !important;
    border-radius: 50px !important;
    background: #f2f6fb !important;
    color: #1a2b45 !important;
    box-shadow: none !important;
    font-size: 13px !important;
    font-weight: 750 !important;
    line-height: 1.15 !important;
    text-align: center !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    transition: background-color .15s ease, border-color .15s ease !important;
  }
  .social-shell:has([data-live-studio]) .f254-studio-v722 form.f254-v722-details.f985-form-visible[data-f999-panel="pricing"] > .f985-settings-close svg {
    display: block !important;
    width: 15px !important;
    height: 15px !important;
    flex: 0 0 15px !important;
  }
  .social-shell:has([data-live-studio]) .f254-studio-v722 form.f254-v722-details.f985-form-visible[data-f999-panel="pricing"] > .f985-settings-close:hover {
    background: #e8eef8 !important;
    border-color: #aebdd2 !important;
  }
  /* The older mobile sheet did not style Done in the desktop popup state. */
  .social-shell:has([data-live-studio]) .f254-studio-v722 form.f254-v722-details.f985-form-visible[data-f999-panel="pricing"] > button.f913-panel-done {
    -webkit-appearance: none !important;
    appearance: none !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: max-content !important;
    min-width: 112px !important;
    min-height: 42px !important;
    margin: 14px 0 0 auto !important;
    padding: 10px 22px !important;
    border: 1px solid #cdd7e6 !important;
    border-radius: 50px !important;
    background: #eef3fa !important;
    color: #1c2e48 !important;
    box-shadow: none !important;
    font-size: 13px !important;
    font-weight: 780 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    transition: background-color .15s ease, border-color .15s ease !important;
  }
  .social-shell:has([data-live-studio]) .f254-studio-v722 form.f254-v722-details.f985-form-visible[data-f999-panel="pricing"] > .f913-panel-done:hover {
    background: #e1eaf5 !important;
    border-color: #b0c0d5 !important;
  }
  /* Keep visible keyboard focus and use the appropriate ink on dark surfaces. */
  .social-shell:has([data-live-studio]) .f254-studio-v722 form.f254-v722-details.f985-form-visible[data-f999-panel="pricing"] :is(.f920-upgrade-access,.f985-settings-close,.f913-panel-done):focus-visible {
    outline: 3px solid #70b3ff !important;
    outline-offset: 2px !important;
  }
  html[data-theme="dark"] .social-shell:has([data-live-studio]) .f254-studio-v722 form.f254-v722-details.f985-form-visible[data-f999-panel="pricing"] > :is(.f985-settings-close,.f913-panel-done) {
    background: #28374c !important;
    color: #f4f7fd !important;
    border-color: #4a5a70 !important;
  }
  html[data-theme="dark"] .social-shell:has([data-live-studio]) .f254-studio-v722 form.f254-v722-details.f985-form-visible[data-f999-panel="pricing"] > :is(.f985-settings-close,.f913-panel-done):hover {
    background: #34465e !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .social-shell:has([data-live-studio]) form.f254-v722-details[data-f999-panel="pricing"] :is(.f920-upgrade-access,.f985-settings-close,.f913-panel-done) {
    transition: none !important;
  }
}
