/* RobloxPets Broadcasts - Phase 17A */
.rp-broadcast-root {
  position: relative;
  z-index: 260;
  width: 100%;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.rp-broadcast-root:empty,
.rp-broadcast-root[hidden] { display: none; }
html.rp-broadcast-flow-active body.rbp-header-active .rbp-header-root .rbp-main {
  top: var(--rp-broadcast-header-offset, 0px) !important;
}
html.rp-broadcast-flow-active body.rbp-header-active .rbp-header-root .rbp-sub {
  top: calc(var(--rp-broadcast-header-offset, 0px) + var(--rbp-fixed-main-h, var(--rbp-h-main-d, 88px))) !important;
}
html.rp-broadcast-flow-active body.rbp-header-active .rbp-header-root .rbp-main::before {
  content: none !important;
}
@media (max-width: 1023px) {
  html.rp-broadcast-flow-active body.rbp-header-active .rbp-header-root .rbp-sub {
    top: calc(var(--rp-broadcast-header-offset, 0px) + var(--rbp-fixed-main-h, var(--rbp-h-main-m, 58px))) !important;
  }
}
.rp-broadcast {
  --rp-bc-bg: linear-gradient(92deg, #071b42 0%, #163d95 52%, #6d35d8 100%);
  --rp-bc-text: #ffffff;
  --rp-bc-muted: rgba(255,255,255,.78);
  --rp-bc-accent: #b8d7ff;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  padding: 8px clamp(14px, 3vw, 34px);
  background: var(--rp-bc-bg);
  color: var(--rp-bc-text);
  box-shadow: 0 14px 34px -24px rgba(9, 19, 46, .75);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.rp-broadcast--info { --rp-bc-bg: linear-gradient(92deg, #061936, #123e87 56%, #245fe6); --rp-bc-accent: #9fd0ff; }
.rp-broadcast--promo { --rp-bc-bg: linear-gradient(92deg, #091638, #4620a8 50%, #1d7df2); --rp-bc-accent: #f5d26b; }
.rp-broadcast--warning { --rp-bc-bg: linear-gradient(92deg, #281703, #8a4a08 52%, #d97706); --rp-bc-accent: #fde68a; }
.rp-broadcast--maintenance { --rp-bc-bg: linear-gradient(92deg, #101828, #334155 54%, #2563eb); --rp-bc-accent: #bae6fd; }
.rp-broadcast--urgent { --rp-bc-bg: linear-gradient(92deg, #101828, #334155 54%, #2563eb); --rp-bc-accent: #bae6fd; }
.rp-broadcast--success { --rp-bc-bg: linear-gradient(92deg, #05291e, #047857 55%, #16a34a); --rp-bc-accent: #bbf7d0; }
.rp-broadcast--custom { background: var(--rp-bc-bg); color: var(--rp-bc-text); }
.rp-broadcast__icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(255,255,255,.14);
  color: var(--rp-bc-accent);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
  flex: 0 0 auto;
}
.rp-broadcast__icon svg { width: 16px; height: 16px; stroke-width: 2.2; }
.rp-broadcast__copy {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
.rp-broadcast__title {
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  white-space: nowrap;
}
.rp-broadcast__message {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  color: var(--rp-bc-muted);
}
.rp-broadcast__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 13px;
  border-radius: 8px;
  background: rgba(255,255,255,.96);
  color: #102653;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 22px -14px rgba(0,0,0,.45);
}
.rp-broadcast__cta:hover,
.rp-broadcast__cta:focus { color: #071b42; text-decoration: none; background: #fff; }
.rp-broadcast__close {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  background: rgba(255,255,255,.10);
  color: var(--rp-bc-text);
  cursor: pointer;
}
.rp-broadcast__close:hover,
.rp-broadcast__close:focus { background: rgba(255,255,255,.18); outline: none; }
.rp-broadcast__close svg { width: 16px; height: 16px; }
@media (max-width: 720px) {
  .rp-broadcast {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 9px;
    padding: 9px 12px;
  }
  .rp-broadcast__copy { display: block; }
  .rp-broadcast__title,
  .rp-broadcast__message { display: block; white-space: normal; overflow-wrap: anywhere; }
  .rp-broadcast__message { font-size: 12px; margin-top: 1px; }
  .rp-broadcast__cta { grid-column: 2 / 3; justify-self: start; margin-top: 2px; min-height: 28px; padding-inline: 11px; }
  .rp-broadcast__close { grid-column: 3; grid-row: 1 / 3; }
}
@media (max-width: 390px) {
  .rp-broadcast__icon { width: 24px; height: 24px; }
  .rp-broadcast { padding-left: 10px; padding-right: 10px; }
}

/* Ops Panel v2 Broadcasts manager */
.rpbc-page {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.rpbc-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #ffffff 0%, #f7fbff 58%, #f5f3ff 100%);
  box-shadow: var(--shadow-soft);
}
.rpbc-hero h2 {
  margin: 2px 0 5px;
  font-size: 22px;
  letter-spacing: 0;
}
.rpbc-hero p:last-child {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 650;
}
.rpbc-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.rpbc-summary > div {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.rpbc-summary span,
.rpbc-summary small {
  display: block;
  min-width: 0;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.rpbc-summary strong {
  display: block;
  min-width: 0;
  margin: 4px 0 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font-size: 21px;
  letter-spacing: 0;
}
.rpbc-summary small {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 650;
}
.rpbc-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
  gap: 16px;
  align-items: start;
}
.rpbc-list-panel,
.rpbc-editor { min-width: 0; }
.rpbc-list {
  display: grid;
  gap: 10px;
  padding: 14px;
}
.rpbc-empty {
  display: grid;
  gap: 7px;
  align-items: start;
  justify-items: start;
  padding: 18px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  background: #f8fafc;
}
.rpbc-empty strong { color: var(--text); font-size: 15px; }
.rpbc-empty span { color: var(--text-muted); font-size: 13px; font-weight: 650; }
.rpbc-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
}
.rpbc-card__main { min-width: 0; }
.rpbc-card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.rpbc-card__title strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}
.rpbc-card p {
  margin: 7px 0 9px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
}
.rpbc-card dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 8px;
}
.rpbc-card dl > div {
  min-width: 0;
  padding: 7px 8px;
  border-radius: 8px;
  background: #f8fafc;
}
.rpbc-card dt {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.rpbc-card dd {
  margin: 2px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}
.rpbc-card small {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 650;
}
.rpbc-card__actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 112px;
}
.rpbc-card__actions .rpov2-hbtn { justify-content: center; width: 100%; }
.rpbc-danger { color: #b42318 !important; border-color: rgba(180,35,24,.24) !important; }
.rpbc-danger:hover { background: #fff1f0 !important; }
.rpbc-editor {
  position: sticky;
  top: 12px;
}
.rpbc-form {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.rpbc-form__head,
.rpbc-form__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
}
.rpbc-form__head strong { display: block; color: var(--text); font-size: 16px; }
.rpbc-form__actions { border-top: 1px solid var(--border); border-bottom: 0; }
.rpbc-notice {
  margin: 12px 14px 0;
  padding: 9px 10px;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 750;
}
.rpbc-notice.is-error { background: #fff1f0; color: #b42318; }
.rpbc-notice.is-ok { background: #ecfdf3; color: #027a48; }
.rpbc-fieldset {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 0;
  border-bottom: 1px solid var(--border);
}
.rpbc-fieldset legend {
  padding: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
}
.rpbc-fieldset label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 750;
}
.rpbc-fieldset input,
.rpbc-fieldset select,
.rpbc-fieldset textarea {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
}
.rpbc-fieldset textarea {
  min-height: 86px;
  resize: vertical;
  line-height: 1.45;
}
.rpbc-fieldset input[type="color"] {
  min-height: 38px;
  padding: 3px;
}
.rpbc-two,
.rpbc-three {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.rpbc-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rpbc-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rpbc-three.is-muted {
  opacity: .52;
}
.rpbc-help {
  margin: -2px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}
.rpbc-preview-wrap {
  display: grid;
  gap: 9px;
  padding: 14px;
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
}
.rpbc-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 750;
}
.rpbc-preview-head small { font-weight: 650; }
.rpbc-preview {
  min-width: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 16px 34px -28px rgba(15, 23, 42, .55);
}
.rpbc-preview .rp-broadcast {
  border-radius: 10px;
  min-height: 50px;
  padding: 10px 12px;
}
.rpbc-preview .rp-broadcast__message { white-space: normal; }
.rpbc-settings-card .rpov2-panel-body {
  display: grid;
  gap: 12px;
}
@media (max-width: 1180px) {
  .rpbc-workbench { grid-template-columns: 1fr; }
  .rpbc-editor { position: static; }
}
@media (max-width: 860px) {
  .rpbc-hero { align-items: flex-start; flex-direction: column; }
  .rpbc-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rpbc-card { grid-template-columns: 1fr; }
  .rpbc-card__actions { flex-direction: row; flex-wrap: wrap; min-width: 0; }
  .rpbc-card__actions .rpov2-hbtn { width: auto; }
}
@media (max-width: 620px) {
  .rpbc-summary,
  .rpbc-card dl,
  .rpbc-two,
  .rpbc-three { grid-template-columns: 1fr; }
  .rpbc-list,
  .rpbc-fieldset,
  .rpbc-preview-wrap { padding: 12px; }
  .rpbc-card__actions .rpov2-hbtn { flex: 1 1 calc(50% - 7px); }
  .rpbc-form__head,
  .rpbc-form__actions { align-items: stretch; flex-direction: column; }
}
@media (max-width: 390px) {
  .rpbc-page { gap: 12px; }
  .rpbc-hero,
  .rpbc-summary > div,
  .rpbc-card { padding: 12px; }
  .rpbc-card__actions .rpov2-hbtn { flex-basis: 100%; }
}
