/* R.S Films Group — Support UI v23.2
   Exact Support toolbar containment fix.
   Why v23.1 still showed the title on the card edge:
   enterprise-base.css has an older higher-specificity rule that forces
   .artist-live-stack > .artist-live-toolbar to padding:0!important.
   These selectors intentionally outrank that legacy rule and remain scoped
   only to Artist -> Support. */

body[data-rsf-page="Support"] .artist-portal .artist-live-stack.rsx-support-page{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}

/* Desktop/tablet Support header card: eyebrow, title and action stay inside. */
body[data-rsf-page="Support"] .artist-portal .artist-live-stack.rsx-support-page > .artist-live-toolbar.rsx-support-toolbar{
  grid-column:1/-1!important;
  position:relative!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  grid-template-rows:auto auto!important;
  column-gap:24px!important;
  row-gap:4px!important;
  align-items:center!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:118px!important;
  box-sizing:border-box!important;
  margin:0!important;
  padding:22px 26px!important;
  overflow:hidden!important;
  border:1px solid #dce4e9!important;
  border-radius:16px!important;
  background:linear-gradient(135deg,#fff,#fbfaf6)!important;
  color:#10202a!important;
  box-shadow:0 10px 28px rgba(13,29,39,.05)!important;
}

body[data-rsf-page="Support"] .artist-portal .artist-live-stack.rsx-support-page > .artist-live-toolbar.rsx-support-toolbar::before{
  content:"ARTIST SUPPORT DESK"!important;
  grid-column:1!important;
  grid-row:1!important;
  position:static!important;
  inset:auto!important;
  align-self:end!important;
  display:block!important;
  width:auto!important;
  max-width:100%!important;
  margin:0 0 2px!important;
  padding:0!important;
  transform:none!important;
  translate:none!important;
  text-indent:0!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  font-size:8px!important;
  line-height:1.3!important;
  letter-spacing:1.8px!important;
  font-weight:800!important;
  color:#9a7129!important;
}

body[data-rsf-page="Support"] .artist-portal .artist-live-stack.rsx-support-page > .artist-live-toolbar.rsx-support-toolbar > h2{
  grid-column:1!important;
  grid-row:2!important;
  align-self:start!important;
  justify-self:start!important;
  width:auto!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  position:static!important;
  inset:auto!important;
  transform:none!important;
  translate:none!important;
  text-indent:0!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
  font-size:23px!important;
  line-height:1.25!important;
  color:#10202a!important;
}

body[data-rsf-page="Support"] .artist-portal .artist-live-stack.rsx-support-page > .artist-live-toolbar.rsx-support-toolbar > .primary{
  grid-column:2!important;
  grid-row:1/3!important;
  align-self:center!important;
  justify-self:end!important;
  width:auto!important;
  max-width:100%!important;
  min-height:44px!important;
  margin:0!important;
  padding:0 22px!important;
  box-sizing:border-box!important;
  white-space:nowrap!important;
  background:#c79b43!important;
  border-color:#c79b43!important;
  color:#15120b!important;
}

/* Keep list and conversation content within the Support workspace. */
body[data-rsf-page="Support"] .artist-portal .artist-live-stack.rsx-support-page > .rsx-support-list,
body[data-rsf-page="Support"] .artist-portal .artist-live-stack.rsx-support-page > .rsx-support-thread{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
body[data-rsf-page="Support"] .artist-portal .rsx-support-list .artist-live-row,
body[data-rsf-page="Support"] .artist-portal .rsx-support-thread,
body[data-rsf-page="Support"] .artist-portal .rsx-support-thread *{
  max-width:100%!important;
  box-sizing:border-box!important;
}
body[data-rsf-page="Support"] .artist-portal .rsx-support-list .artist-live-row strong,
body[data-rsf-page="Support"] .artist-portal .rsx-support-list .artist-live-row span,
body[data-rsf-page="Support"] .artist-portal .rsx-support-thread h3,
body[data-rsf-page="Support"] .artist-portal .rsx-support-thread p,
body[data-rsf-page="Support"] .artist-portal .artist-live-message p{
  min-width:0!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  word-break:break-word!important;
}

/* Compose drawer remains fully usable on tablet/phone. */
body[data-rsf-page="Support"] .artist-portal .rsx-support-compose:not([hidden]){
  box-sizing:border-box!important;
  max-width:100vw!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior:contain!important;
}
body[data-rsf-page="Support"] .artist-portal .rsx-support-compose .field,
body[data-rsf-page="Support"] .artist-portal .rsx-support-compose select,
body[data-rsf-page="Support"] .artist-portal .rsx-support-compose input,
body[data-rsf-page="Support"] .artist-portal .rsx-support-compose textarea{
  min-width:0!important;
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}

@media (max-width:900px){
  body[data-rsf-page="Support"] .artist-portal .artist-live-stack.rsx-support-page{
    grid-template-columns:minmax(0,1fr)!important;
    gap:14px!important;
  }
  body[data-rsf-page="Support"] .artist-portal .artist-live-stack.rsx-support-page > .artist-live-toolbar.rsx-support-toolbar{
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:auto auto auto!important;
    row-gap:5px!important;
    min-height:0!important;
    padding:20px 18px!important;
  }
  body[data-rsf-page="Support"] .artist-portal .artist-live-stack.rsx-support-page > .artist-live-toolbar.rsx-support-toolbar::before{
    grid-column:1!important;
    grid-row:1!important;
  }
  body[data-rsf-page="Support"] .artist-portal .artist-live-stack.rsx-support-page > .artist-live-toolbar.rsx-support-toolbar > h2{
    grid-column:1!important;
    grid-row:2!important;
    font-size:22px!important;
  }
  body[data-rsf-page="Support"] .artist-portal .artist-live-stack.rsx-support-page > .artist-live-toolbar.rsx-support-toolbar > .primary{
    grid-column:1!important;
    grid-row:3!important;
    justify-self:stretch!important;
    width:100%!important;
    margin-top:10px!important;
    white-space:normal!important;
  }
}

@media (max-width:600px){
  body[data-rsf-page="Support"] .artist-portal .artist-live-stack.rsx-support-page > .artist-live-toolbar.rsx-support-toolbar{
    padding:18px 16px!important;
    border-radius:14px!important;
  }
  body[data-rsf-page="Support"] .artist-portal .rsx-support-compose:not([hidden]){
    left:0!important;
    right:0!important;
    top:0!important;
    width:100vw!important;
    max-width:100vw!important;
    height:100dvh!important;
    margin:0!important;
    padding:0 16px calc(20px + env(safe-area-inset-bottom))!important;
    border-left:0!important;
    border-radius:0!important;
  }
  body[data-rsf-page="Support"] .artist-portal .rsx-support-compose-head{
    margin-left:-16px!important;
    margin-right:-16px!important;
    padding-left:16px!important;
    padding-right:16px!important;
    padding-top:calc(16px + env(safe-area-inset-top))!important;
  }
  body[data-rsf-page="Support"] .artist-portal .rsx-support-compose select,
  body[data-rsf-page="Support"] .artist-portal .rsx-support-compose input,
  body[data-rsf-page="Support"] .artist-portal .rsx-support-compose textarea{
    font-size:16px!important;
  }
  body[data-rsf-page="Support"] .artist-portal .rsx-support-compose > .primary,
  body[data-rsf-page="Support"] .artist-portal .rsx-support-thread form > .primary{
    width:100%!important;
    min-height:46px!important;
  }
  body[data-rsf-page="Support"] .artist-portal .rsx-support-thread > .artist-live-toolbar{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:10px!important;
    align-items:stretch!important;
  }
  body[data-rsf-page="Support"] .artist-portal .rsx-support-thread > .artist-live-toolbar button{
    width:100%!important;
    min-height:42px!important;
  }
}
