body {
    font-family: Arial, sans-serif;
    background-color: #060d1f;
    margin: auto;
    position: relative;
    min-height: 100vh;
    padding-bottom: 0;
}





.back-link:hover {
text-decoration: none; /* Remove o sublinhado */
color: #28a745;
transform: scale(1.05); /* Mantém o efeito de transformação, se desejado */
}

/* Barra fixa no rodapé */
.footer-bar {
  display: flex
;
  justify-content: center;
  align-items: center;
  background-color: #a4a5ab;
  padding: 15px;
  position: fixed;
  bottom: 0;
  width: 100%;
  box-shadow: -2px -8px 10px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  border-top: 2px solid orange;
}

.footer-bar .play-button {
  padding: 10px 20px;
  background-color: #ffffff; /* Cor do botão */
  border: none;
  color: #000000;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.footer-bar .play-button:hover {
  background-color: #45a049; /* Cor do botão ao passar o mouse */
  color: white;
}


h1 {
  text-align: center;
}

.toolbar {
  display: flex
;
  align-items: flex-start;
  background-color: #a4a5ab;
  padding: 10px;
  align-content: space-around;
  justify-content: center;
  position: relative;
  z-index: 1001;
}

.toolbar::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: -webkit-fill-available;
  height: 3px;
  background: radial-gradient(circle at center top, rgb(255 111 0) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}


.new-broadcast-button {
  display: inline-block;
  padding: 10px 15px;
  background-color: #ffffff; /* Cor de fundo do botão */
  color: #000000;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.new-broadcast-button:hover {
  background-color: #45a049; /* Cor de fundo ao passar o mouse */
  color: white; /* Cor do texto ao passar o mouse */
}
.export-m3u-button {
  padding: 10px 20px;
  background-color: #008CBA; /* Cor de fundo do botão */
  color: white; /* Cor do texto */
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.export-m3u-button:hover {
  background-color: #006f8a; /* Cor ao passar o mouse */
}

.broadcast-form {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-direction: column;
}

.broadcasts-container {
  display: flex
;
  flex-wrap: wrap;
  gap: 15px;
  /* width: -webkit-fill-available; */
  /* padding: 0px 26px; */
  padding: 6% 5%;
  z-index: 800;
  top: 188px;
  position: relative;
  justify-content: center;
  padding-top: 66px;
  flex-direction: row;
  align-content: center;
  align-items: stretch;
}


#vjs_video_3 {
  width: -webkit-fill-available;
  height: -webkit-fill-available;
}
.language {
position: fixed;
  top: 8px;
  z-index: 1002;
  right: 10;
}
.perfil {
  z-index: 1001;
  position: fixed;
  padding-left: 10px;
  top: 0;
}
.text_language{
margin: 0;
}
.status-indicator {
  font-weight: bold;
  padding: 5px;
  border-radius: 4px;
  z-index: 800;
  position: absolute;
  width: -webkit-fill-available;
}

.status-indicator.online {
  color: #000000;
  /* background-color: red; */
  background: linear-gradient(to top, rgb(255 0 0 / 0%) 0%, rgb(0 255 10 / 70%) 100%);
}

.status-indicator.offline {
  color: #000000;
  /* background-color: red; */
  background: linear-gradient(to top, rgb(255 0 0 / 0%) 0%, rgb(255 0 0 / 70%) 100%);
}

.scroll-section {
  scroll-snap-align: start;
  margin-bottom: 30px; /* espaço entre cards */
}

.smart-scroll {
  scroll-snap-type: y mandatory;
  overflow-y: auto;
  max-height: 90vh; /* controla a altura visível */
}


.banner {
width: 100%;
  background-color: #cfcfd6;
  text-align: center;
  padding-top: 112px;
  position: fixed;
  z-index: 1000;
  top: 0;
}

.banner .logo {
  max-width: 200px;
  height: auto;
  position: fixed;
  top: 10px;
  right: 50%;
  left: 42%;
}

.broadcast-video {
  transform-origin: center center;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -50%;
  margin-left: -50%;
  display: block;
  pointer-events: none;
  transform: scale(2.0) rotate(-90deg);
  width: -webkit-fill-available;
  height: -webkit-fill-available;
}

.vjs-tech {
  width: -webkit-fill-available;
  height: -webkit-fill-available;
}

.broadcast-card {
  position: relative;
  padding: 0;
  background-image: url(/assets/off.png);
  border: 1px solid #ddd;
  border-radius: 8px;
  width: 240px; /* Ajuste conforme necessário */
  height: 400px; /* Ajuste conforme necessário */
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden; /* Para esconder qualquer overflow */
}
.broadcast-card-desktop {
  position: relative;
  padding: 0;
  background-image: url(/assets/off.png);
  background-size: 240px 400px;
  border: 1px solid #ddd;
  border-radius: 8px;
  width: 240px;
  height: 400px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}



/* Estilo do botão de upload de wallpaper */
.set-wallpaper-button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  /* border-radius: 5px; */
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: -webkit-fill-available;
}

.set-wallpaper-button:hover {
  background-color: #ffffff; /* Cor de fundo ao passar o mouse */
  color: black;
}

/* Estilo do campo de upload */
.upload-wallpaper {
  background-color: #8c8c8c;
  color: white;
  border: none;
  padding: 10px 5px;
  font-size: 16px;
  /* border-radius: 5px; */
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 11px;
  width: -webkit-fill-available;
}
.Broadcasts {
  position: absolute;
  top: 179px;
  width: -webkit-fill-available;
  z-index: 800;
}
.BroadcastsDesk {
  position: absolute;
  /* top: 149px; */
  width: -webkit-fill-available;
  z-index: 800;
  top: 0;
}

.upload-desktop {
      position: absolute;
  bottom: 0;
  z-index: 800;
}
.broadcast-card:hover {
  transform: scale(1.05); /* Aumenta o card em 5% */
}

.broadcast-card-desktop:hover {
  transform: scale(1.05); /* Aumenta o card em 5% */
}
.card-video {
  display: none; /* Escondido, pois usaremos a tag <video> */
}

.broadcast-card.selected {
  transform: scale(1.30); /* Mantém o zoom ao clicar */
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

#wallpaper-upload-form{
  margin-bottom: 0;
}
.broadcast-card-desktop.selected {
  transform: scale(1.30); /* Mantém o zoom ao clicar */
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.broadcast-card.selected .mirror-effect::after {
  display: none; /* Remove o efeito espelho ao selecionar o cartão */
}

.card-checkbox {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  z-index: 100;
}

.card-title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

.card-video {
  margin-top: 10px;
  color: #666;
  font-size: 14px;
  position: absolute;
  bottom: 0px;
}

.broadcast-actions {
  display: flex;
  align-items: center;
}

.play-button {
  padding: 10px 20px;
  background-color: #2196F3;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.play-button:hover {
  background-color: #1976D2;
}

.edit-menu {
  padding: 12px;
  width: 25%;
  background: linear-gradient(to right, rgb(224 224 224 / 81%), rgb(237 237 237));
  border-radius: 0px 18px 20px 0px;
  box-shadow: 0 4px 8px rgb(0 0 0 / 12%);
  position: absolute;
  z-index: 1000;
}

.card-footer {
display: flex;
margin-top: 10px;
bottom: 0;
position: absolute;
left: 14;
flex-direction: row;
flex-wrap: wrap;
align-content: stretch;
justify-content: space-between;
align-items: flex-start;
bottom: 28px;
right: 14;
}
.name-video {
  position: absolute;
  bottom: 0;
  width: -webkit-fill-available;
  text-align: center;
  font-weight: bold;
  background: linear-gradient(to top, rgb(174 95 34) 0%, rgb(174 95 34) 100%);
  margin: 0;
  color: white;
  padding: 10;
}
.btn {
  padding: 5px 10px;
  border: none;
  cursor: pointer;
  background-color: #ff0000;
  color: white;
  border-radius: 5px;
  font-size: 14px;
  margin-top: -9px;
}
.m-0{
  margin-top: 4px;
}

.Versão{
  margin: 0;
    color: white;
    right: 10px;
    position: fixed;
}

.delete-button {
  display: inline-block;
  padding: 10px 15px;
  margin-top: 3px;
  background-color: #F44336; /* Cor vermelha */
  color: white;
  text-decoration: none;
  width: -webkit-fill-available;
  border-radius: 5px;
  text-align: center;
  transition: background-color 0.3s ease;
}

.delete-button:hover {
  background-color: #D32F2F; /* Cor ao passar o mouse */
}


.hidden {
  display: none; /* Usado para esconder o menu */
}
.video-name {
  font-size: 27px;
  color: #ffffff;
  text-align: center;
  margin-top: 5px;
  z-index: 1000;
  position: absolute;
  bottom: 0;
  left: 50;
  right: 50;
  text-shadow: 0px 1px 3px rgb(0 0 0 / 65%);
}


.mirror-effect::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgb(255 255 255 / 97%) 0%, rgb(255 255 255 / 70%) 100%);
  transform: scaleY(-1);
  pointer-events: none;
  box-shadow: 0 10px 20px 15px rgb(255 255 255);
  opacity: 1; /* Ajuste de opacidade */
  transition: opacity 5.3s ease; /* Anima a opacidade */
 
}

.broadcast-card.selected .mirror-effect::after {
  
 opacity: 0; /* Faz o efeito espelho desaparecer gradualmente */
}



.edit-button {
  display: inline-block;
  padding: 10px 15px;
  margin-top: 3px;
  background-color: #FF9800;
  color: white;
  text-decoration: none;
  width: -webkit-fill-available;
  border-radius: 5px;
  text-align: center;
}

.btn-play {
  background-color: #4CAF50;
  transition: width 0.5s ease-in-out, transform 0.3s ease;
}

.btn-play:hover {
  background-color: #45a049;
  transform: scale(1.05);
  width: 100px;
  transition: width 0.5s ease-in-out, transform 0.3s ease;
}

/* Botão Stop */
.btn-stop {
  background-color: #f44336;
  transition: width 0.5s ease-in-out, transform 0.3s ease;
}

.btn-stop:hover {
  background-color: #e53935;
  transform: scale(1.05);
  width: 100px;
  transition: width 0.5s ease-in-out, transform 0.3s ease;
}

/* Botão Edit */
.btn-edit {
  background-color: #2196F3;
  transition: width 0.5s ease-in-out, transform 0.3s ease;
}

.btn-edit:hover {
  background-color: #1e88e5;
  transform: scale(1.05);
  width: 100px;
  transition: width 0.5s ease-in-out, transform 0.3s ease;
}

/* Efeito de seleção de botão */
.btn:focus {
  outline: none;
}

.notification-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notification {
  background: #323232;
  color: white;
  padding: 12px 20px;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  font-size: 14px;
  animation: fadein 0.3s ease, fadeout 0.3s ease 3.7s;
  opacity: 0;
  animation-fill-mode: forwards;
}

@keyframes fadein {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeout {
  from { opacity: 1; }
  to   { opacity: 0; }
}
@import url("https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&family=Outfit:wght@500;600;700&display=swap");

/* Visual da tela original de TVs inspirado no protótipo Lovable. Os controles e
   atributos data-* continuam no ERB para preservar os fluxos existentes. */
.broadcasts-index--lovable {
  --tv-surface: #ffffff;
  --tv-surface-soft: #f6f2fa;
  --tv-text: #30283b;
  --tv-muted: #756d80;
  --tv-border: #e7e0ec;
  --tv-primary: #7549bd;
  --tv-primary-soft: #eee5fb;
  --tv-shadow: 0 1px 2px rgba(54, 25, 99, .05), 0 8px 24px rgba(54, 25, 99, .08);
  color: var(--tv-text);
  font-family: "Figtree", system-ui, sans-serif;
}

html[data-theme="dark"] .broadcasts-index--lovable,
body.theme-dark .broadcasts-index--lovable {
  --tv-surface: #29242f;
  --tv-surface-soft: #332d3b;
  --tv-text: #f2edf5;
  --tv-muted: #c1b7c8;
  --tv-border: #4d4356;
  --tv-primary: #d0bcff;
  --tv-primary-soft: #483664;
  --tv-shadow: 0 2px 8px rgba(0, 0, 0, .22), 0 12px 28px rgba(0, 0, 0, .2);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .broadcasts-index--lovable {
    --tv-surface: #29242f;
    --tv-surface-soft: #332d3b;
    --tv-text: #f2edf5;
    --tv-muted: #c1b7c8;
    --tv-border: #4d4356;
    --tv-primary: #d0bcff;
    --tv-primary-soft: #483664;
    --tv-shadow: 0 2px 8px rgba(0, 0, 0, .22), 0 12px 28px rgba(0, 0, 0, .2);
  }
}

body:has(.broadcasts-index--lovable) .container {
  box-sizing: border-box;
}

body.app-system-surface:has(.broadcasts-index--lovable) {
  background: #faf8fd !important;
}

html[data-theme="dark"] body.app-system-surface:has(.broadcasts-index--lovable),
body.theme-dark.app-system-surface:has(.broadcasts-index--lovable) {
  background: #211d27 !important;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) body.app-system-surface:has(.broadcasts-index--lovable) {
    background: #211d27 !important;
  }
}

.broadcasts-index--lovable .broadcasts-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: stretch;
  gap: 10px 16px;
  margin: 0 0 20px;
  padding: 0;
}

.broadcasts-index--lovable .broadcasts-toolbar__count {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--tv-muted);
  font-size: 14px;
  font-weight: 600;
}

html .broadcasts-index--lovable .broadcasts-toolbar .broadcasts-toolbar__actions,
html .broadcasts-index--lovable .broadcasts-toolbar .broadcasts-view-switch {
  position: relative;
  inset: auto;
  z-index: auto;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

html .broadcasts-index--lovable .broadcasts-toolbar .broadcasts-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

html .broadcasts-index--lovable .broadcasts-toolbar__actions .broadcasts-toolbar__btn {
  width: auto;
  min-width: 0;
  height: 40px;
  padding: 0 14px;
  gap: 8px;
  border: 1px solid var(--tv-border);
  border-radius: 999px;
  color: var(--tv-text);
  background: var(--tv-surface);
  box-shadow: var(--tv-shadow);
  font: 600 13px "Figtree", system-ui, sans-serif;
}

html .broadcasts-index--lovable .broadcasts-toolbar__actions .broadcasts-toolbar__btn--primary {
  border-color: var(--tv-primary);
  color: #ffffff;
  background: #7549bd;
}

html[data-theme="dark"] .broadcasts-index--lovable .broadcasts-toolbar__actions .broadcasts-toolbar__btn--primary,
body.theme-dark .broadcasts-index--lovable .broadcasts-toolbar__actions .broadcasts-toolbar__btn--primary {
  color: #2b1c42;
  background: #d0bcff;
}

html .broadcasts-index--lovable .broadcasts-toolbar__actions .broadcasts-toolbar__btn span {
  position: static;
  display: inline;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  overflow: visible;
  clip: auto;
  white-space: nowrap;
}

html .broadcasts-index--lovable .broadcasts-toolbar .broadcasts-view-switch {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--tv-border);
  border-radius: 13px;
  background: var(--tv-surface);
}

html .broadcasts-index--lovable .broadcasts-view-switch__btn {
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 9px;
  color: var(--tv-muted);
  background: transparent;
  box-shadow: none;
  font-size: 13px;
}

html .broadcasts-index--lovable .broadcasts-view-switch__btn.is-active {
  color: var(--tv-primary);
  background: var(--tv-primary-soft);
}

.broadcasts-index--lovable .broadcasts-toolbar .broadcasts-toolbar__help {
  position: static;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  margin: 0;
  color: var(--tv-primary);
  background: var(--tv-primary-soft);
  border: 0;
  border-radius: 50%;
  transform: none;
}

.broadcasts-index--lovable .broadcasts-panel--cards {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.broadcasts-index--lovable .broadcasts-cards-grid {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 18px;
  padding: 0;
  align-items: start;
}

.broadcasts-index--lovable .broadcasts-cards-main {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 8px;
  row-gap: 12px !important;
  grid-auto-rows: max-content;
  align-content: start;
  align-items: start;
}

.broadcasts-index--lovable .broadcasts-side-panel {
  position: sticky;
  top: 20px;
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  width: 100%;
  max-width: 100%;
}

.broadcasts-index--lovable .broadcasts-cards-main > .broadcast-card-modern,
.broadcasts-index--lovable .broadcasts-side-panel .broadcast-card-modern--desktop {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--tv-border) !important;
  border-radius: 18px;
  color: var(--tv-text) !important;
  background: var(--tv-surface) !important;
  box-shadow: var(--tv-shadow);
}

.broadcasts-index--lovable .broadcasts-cards-main > .broadcast-card-modern {
  padding: 0 !important;
  gap: 0;
}

.broadcasts-index--lovable .broadcasts-cards-main > .broadcast-card-modern:hover {
  transform: translateY(-2px);
  border-color: var(--tv-primary) !important;
  box-shadow: 0 12px 30px rgba(72, 36, 119, .15);
}

.broadcasts-index--lovable .broadcasts-cards-main > .broadcast-card-modern::before {
  display: none;
}

.broadcasts-index--lovable .broadcasts-cards-main > .broadcast-card-modern .broadcast-card-modern__video {
  order: 0;
  width: 100%;
  max-width: 100%;
  min-height: 185px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: var(--tv-primary-soft);
}

.broadcasts-index--lovable .broadcasts-cards-main > .broadcast-card-modern .broadcast-card-modern__video--portrait {
  width: 100%;
  max-width: 100%;
  min-height: 0;
  max-height: none;
  margin-inline: 0;
  border: 0;
  aspect-ratio: 9 / 16;
}

.broadcasts-index--lovable .broadcasts-cards-main > .broadcast-card-modern .broadcast-card-modern__video--landscape {
  width: 100%;
  max-width: 100%;
  min-height: 185px;
  margin-inline: 0;
  aspect-ratio: 16 / 9;
}

.broadcasts-index--lovable .broadcasts-cards-main > .broadcast-card-modern .broadcast-card-modern__top {
  order: 1;
  gap: 12px;
  padding: 16px 16px 12px;
  border: 0;
}

.broadcasts-index--lovable .broadcasts-cards-main > .broadcast-card-modern .broadcast-card-modern__top h2 {
  color: var(--tv-text);
  font: 600 18px/1.25 "Outfit", "Figtree", system-ui, sans-serif;
  text-transform: none;
}

.broadcasts-index--lovable .broadcasts-cards-main > .broadcast-card-modern .broadcast-card-modern__top p {
  margin: 5px 0 0;
  color: var(--tv-muted);
  font-size: 12px;
}

.broadcasts-index--lovable .broadcast-card-modern__device-summary {
  display: block;
  margin-top: 5px;
  color: var(--tv-muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.broadcasts-index--lovable .broadcasts-cards-main .broadcast-card-modern__badges {
  width: 100%;
  min-width: 0;
  flex-wrap: wrap;
  gap: 6px;
}

.broadcasts-index--lovable .broadcasts-cards-main .broadcast-status-icon {
  width: auto;
  min-width: 0;
  height: auto;
  min-height: 26px;
  flex: 0 1 auto;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  animation: none;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.broadcasts-index--lovable .broadcasts-cards-main .broadcast-status-icon__label {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
}

.broadcasts-index--lovable .broadcasts-cards-main .broadcasts-status--online,
.broadcasts-index--lovable .broadcasts-cards-main .broadcasts-status--player-online {
  color: #19744e;
  background: #e5f6ec;
}

.broadcasts-index--lovable .broadcasts-cards-main .broadcasts-status--offline,
.broadcasts-index--lovable .broadcasts-cards-main .broadcasts-status--player-offline {
  color: #a53d53;
  background: #fdebf0;
}

.broadcasts-index--lovable .broadcasts-cards-main .broadcasts-status--neutral {
  color: var(--tv-muted);
  background: var(--tv-surface-soft);
}

html[data-theme="dark"] .broadcasts-index--lovable .broadcasts-cards-main :is(.broadcasts-status--online, .broadcasts-status--player-online),
body.theme-dark .broadcasts-index--lovable .broadcasts-cards-main :is(.broadcasts-status--online, .broadcasts-status--player-online) {
  color: #9be5bf;
  background: #294438;
}

html[data-theme="dark"] .broadcasts-index--lovable .broadcasts-cards-main :is(.broadcasts-status--offline, .broadcasts-status--player-offline),
body.theme-dark .broadcasts-index--lovable .broadcasts-cards-main :is(.broadcasts-status--offline, .broadcasts-status--player-offline) {
  color: #ffc1ce;
  background: #54313d;
}

.broadcasts-index--lovable .broadcasts-cards-main .broadcast-card-modern__slide-dots {
  order: 3;
  min-height: 12px;
  margin: 3px 14px 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.broadcasts-index--lovable .broadcasts-cards-main .broadcasts-actions--card {
  order: 3;
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: auto;
  padding: 10px 12px 12px !important;
  gap: 3px;
  border-top: 1px solid var(--tv-border);
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.broadcasts-index--lovable .broadcasts-cards-main .broadcasts-actions--card :is(form, .broadcast-action-slot) {
  height: 42px;
  min-height: 42px;
}

.broadcasts-index--lovable .broadcasts-cards-main .broadcasts-actions--card .broadcasts-action {
  height: 42px;
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  color: var(--tv-muted) !important;
  background: transparent;
}

.broadcasts-index--lovable .broadcasts-cards-main .broadcasts-actions--card .broadcasts-action:hover,
.broadcasts-index--lovable .broadcasts-cards-main .broadcasts-actions--card .broadcasts-action:focus-visible {
  color: var(--tv-primary) !important;
  background: var(--tv-primary-soft);
}

.broadcasts-index--lovable .broadcasts-cards-main .broadcasts-actions--card .broadcasts-action i {
  width: auto;
  height: auto;
  flex-basis: auto;
  border: 0;
  border-radius: 0;
  color: currentColor;
  background: transparent;
  box-shadow: none;
  font-size: 17px;
}

.broadcasts-index--lovable .broadcasts-cards-main .broadcasts-actions--card .broadcasts-action--play,
.broadcasts-index--lovable .broadcasts-cards-main .broadcasts-actions--card .broadcasts-action--stop {
  color: var(--tv-primary) !important;
}

.broadcasts-index--lovable .broadcasts-cards-main .broadcasts-actions--card .broadcasts-action--delete {
  color: #b44057 !important;
}

.broadcasts-index--lovable .broadcasts-panel--table {
  padding: 5px;
  border: 1px solid var(--tv-border);
  border-radius: 18px;
  color: var(--tv-text);
  background: var(--tv-surface) !important;
  box-shadow: var(--tv-shadow);
}

.broadcasts-index--lovable .broadcasts-panel--table .broadcasts-table thead th {
  color: var(--tv-muted);
  background: var(--tv-surface) !important;
  border-bottom: 1px solid var(--tv-border);
  font-weight: 700;
}

.broadcasts-index--lovable .broadcasts-panel--table .broadcasts-table tbody tr {
  background: var(--tv-surface) !important;
  box-shadow: none;
}

.broadcasts-index--lovable .broadcasts-panel--table .broadcasts-table tbody td {
  color: var(--tv-text);
  background: var(--tv-surface) !important;
  border-color: var(--tv-border);
}

.broadcasts-index--lovable .broadcasts-panel--table .broadcasts-table tbody tr:hover td,
.broadcasts-index--lovable .broadcasts-panel--table .broadcasts-table tbody tr:focus-within td {
  background: var(--tv-surface-soft) !important;
}

.broadcasts-index--lovable .broadcasts-panel--table :is(.broadcasts-table__title strong, .broadcasts-table__stream strong, .broadcasts-table__energy strong) {
  color: var(--tv-text);
}

.broadcasts-index--lovable .broadcasts-panel--table :is(.broadcasts-table__title small, .broadcasts-table__muted) {
  color: var(--tv-muted);
}

.broadcasts-index--lovable .broadcasts-panel--table .broadcasts-table__avatar {
  color: var(--tv-primary);
  background: var(--tv-primary-soft);
  box-shadow: none;
}

.broadcasts-index--lovable .broadcasts-panel--table .broadcasts-table__pill {
  color: var(--tv-text);
  background: var(--tv-surface-soft);
  border-color: var(--tv-border);
}

.broadcasts-index--lovable .broadcasts-panel--table .broadcasts-actions--clean .broadcasts-action.icon {
  color: var(--tv-text);
  background: var(--tv-surface-soft);
  border-color: var(--tv-border);
  border-radius: 50%;
}

.broadcasts-index--lovable .broadcasts-table-footer {
  color: var(--tv-muted);
  border-top: 1px solid var(--tv-border);
}

@media (max-width: 1160px) {
  .broadcasts-index--lovable .broadcasts-cards-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .broadcasts-index--lovable .broadcasts-cards-main {
    grid-template-columns: minmax(0, 1fr);
  }

  html .broadcasts-index--lovable .broadcasts-toolbar {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  html .broadcasts-index--lovable .broadcasts-toolbar__actions {
    position: relative !important;
    inset: auto !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  html .broadcasts-index--lovable .broadcasts-toolbar__actions .broadcasts-toolbar__help {
    position: absolute;
    top: -45px;
    right: 0;
  }

  html .broadcasts-index--lovable .broadcasts-toolbar__actions .broadcasts-toolbar__btn {
    width: 100%;
    min-width: 0;
  }

  html .broadcasts-index--lovable .broadcasts-toolbar__actions .broadcasts-toolbar__btn:last-child {
    grid-column: 1 / -1;
  }

  html .broadcasts-index--lovable .broadcasts-toolbar .broadcasts-view-switch {
    grid-column: 1;
    width: 100%;
    max-width: 100%;
  }

  html .broadcasts-index--lovable .broadcasts-view-switch__btn {
    flex: 1 1 0;
    width: auto;
    max-width: none;
  }

  .broadcasts-index--lovable .broadcasts-panel--table {
    padding: 0;
  }

  .broadcasts-index--lovable .broadcasts-cards-main > [data-tv-help-open] {
    right: 8px;
    transform: none;
  }
}

@media (max-width: 900px) {
  .broadcasts-index--lovable .broadcasts-cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .broadcasts-index--lovable .broadcasts-side-panel {
    position: relative;
    top: auto;
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 430px) {
  html .broadcasts-index--lovable .broadcasts-toolbar .broadcasts-toolbar__actions {
    grid-template-columns: minmax(0, 1fr);
  }

  html .broadcasts-index--lovable .broadcasts-toolbar__actions .broadcasts-toolbar__btn:last-child {
    grid-column: 1;
  }

  .broadcasts-index--lovable .broadcasts-cards-main .broadcast-status-icon {
    font-size: 10px;
  }

  html .broadcasts-index--lovable .broadcasts-toolbar__actions .broadcasts-toolbar__btn {
    padding: 0 9px;
    font-size: 12px;
  }
}

/* Controles rápidos e menu contextual dos cards de TV. */
html .broadcasts-index--lovable .broadcasts-cards-main > .broadcast-card-modern {
  overflow: visible;
  gap: 8px !important;
}

html .broadcasts-index--lovable .broadcasts-cards-main > .broadcast-card-modern.is-menu-open {
  z-index: 2000;
}

html .broadcasts-index--lovable .broadcasts-panel--cards:has(.is-menu-open) {
  position: relative;
  z-index: 2000;
}

html .broadcasts-index--lovable .broadcasts-cards-main > .broadcast-card-modern .broadcast-card-modern__video {
  overflow: hidden;
  border-radius: 17px 17px 0 0;
}

html .broadcasts-index--lovable .broadcasts-cards-main > article.broadcast-card-modern--portrait {
  box-sizing: border-box;
  width: min(100%, 320px);
  justify-self: center;
}

html .broadcasts-index--lovable .broadcasts-cards-main > article.broadcast-card-modern--landscape {
  width: 100%;
  justify-self: stretch;
}

html .broadcasts-index--lovable .broadcasts-cards-main .broadcast-preview-image--thumb {
  object-fit: cover;
  background: transparent;
}

html .broadcasts-index--lovable .broadcasts-cards-main > .broadcast-card-modern .broadcast-card-modern__top {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 16px 14px 4px;
  border: 0;
}

html .broadcasts-index--lovable .broadcasts-cards-main > .broadcast-card-modern .broadcast-card-modern__top h2 {
  font-size: 16px;
  line-height: 1.2;
}

html .broadcasts-index--lovable .broadcasts-cards-main > .broadcast-card-modern .broadcast-card-modern__top p {
  margin-top: 2px;
  line-height: 1.2;
}

html .broadcasts-index--lovable .broadcasts-cards-main > .broadcast-card-modern .broadcast-card-modern__device-summary {
  margin-top: 2px;
  line-height: 1.2;
}

html .broadcasts-index--lovable .broadcasts-cards-main .broadcast-card-modern__top > div:first-child {
  width: auto;
  min-width: 0;
  flex: 1 1 auto;
}

.broadcasts-index--lovable .tv-card-menu {
  position: relative;
  z-index: 65;
  flex: 0 0 auto;
}

.broadcasts-index--lovable .tv-card-menu__trigger {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0 !important;
  border-radius: 50%;
  color: var(--tv-text);
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.broadcasts-index--lovable .tv-card-menu__trigger:hover,
.broadcasts-index--lovable .tv-card-menu__trigger[aria-expanded="true"],
.broadcasts-index--lovable .tv-card-menu__trigger:focus-visible {
  background: var(--tv-primary-soft);
}

.broadcasts-index--lovable .tv-card-menu__trigger:focus-visible {
  outline: 0;
}

.broadcasts-index--lovable .tv-card-menu__item:focus-visible {
  outline: 2px solid var(--tv-primary);
  outline-offset: 2px;
}

.broadcasts-index--lovable .tv-card-menu__panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 70;
  width: 200px;
  max-width: calc(100vw - 22px);
  max-height: min(70vh, 440px);
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 5px;
  border: 1px solid var(--tv-border);
  border-radius: 14px;
  color: var(--tv-text);
  background: var(--tv-surface);
  box-shadow: 0 12px 26px rgba(26, 16, 43, .2);
}

.broadcasts-index--lovable .tv-card-menu__panel[hidden] {
  display: none;
}

.broadcasts-index--lovable .tv-card-menu.is-flipped .tv-card-menu__panel {
  top: auto;
  bottom: calc(100% + 6px);
}

.broadcasts-index--lovable .tv-card-menu__form {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
}

.broadcasts-index--lovable .tv-card-menu__item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 34px;
  box-sizing: border-box;
  margin: 0;
  padding: 7px 9px;
  border: 0;
  border-radius: 8px;
  color: var(--tv-text);
  background: transparent;
  box-shadow: none;
  text-align: left;
  text-decoration: none;
  font: 500 13px/1.3 "Figtree", system-ui, sans-serif;
  cursor: pointer;
}

.broadcasts-index--lovable .tv-card-menu__item i {
  width: 16px;
  flex: 0 0 16px;
  color: var(--tv-muted);
  text-align: center;
}

.broadcasts-index--lovable .tv-card-menu__item:hover {
  color: var(--tv-text);
  background: var(--tv-primary-soft);
}

.broadcasts-index--lovable .tv-card-menu__item:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.broadcasts-index--lovable .tv-card-menu__item--danger,
.broadcasts-index--lovable .tv-card-menu__item--danger i {
  color: #c33247;
}

.broadcasts-index--lovable .tv-card-menu__divider {
  height: 1px;
  margin: 4px -5px;
  background: var(--tv-border);
}

html .broadcasts-index--lovable .broadcasts-cards-main > .broadcast-card-modern .broadcast-card-modern__badges {
  order: 2;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0 14px;
  box-sizing: border-box;
  align-self: stretch;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 4px;
}

html .broadcasts-index--lovable .broadcasts-cards-main .broadcast-card-modern__badges .broadcast-status-icon {
  min-height: 21px;
  padding: 2px 7px;
  font-size: 10px;
}

.broadcasts-index--lovable .broadcasts-cards-main .broadcast-card-modern__badges .broadcast-status-icon i {
  display: none;
}

.broadcasts-index--lovable .broadcasts-cards-main .broadcast-card-modern__badges .broadcast-status-icon::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: currentColor;
}

html .broadcasts-index--lovable .broadcasts-cards-main .broadcasts-actions--card {
  order: 4;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  width: 100%;
  margin: 0;
  padding: 7px 14px 10px !important;
  border: 0;
}

html .broadcasts-index--lovable .broadcasts-cards-main .broadcasts-actions--card :is(form, .broadcast-action-slot) {
  width: 36px;
  height: 36px;
  min-height: 36px;
  flex: 0 0 36px;
  margin: 0;
}

html .broadcasts-index--lovable .broadcasts-cards-main .broadcasts-actions--card .broadcast-action-slot {
  order: 0;
}

html .broadcasts-index--lovable .broadcasts-cards-main .broadcasts-actions--card > form:has(.broadcasts-action--power) {
  order: 1;
}

html .broadcasts-index--lovable .broadcasts-cards-main .broadcasts-actions--card > .broadcasts-action--volume {
  order: 2;
}

html .broadcasts-index--lovable .broadcasts-cards-main .broadcasts-actions--card .broadcasts-action {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--tv-text) !important;
  background: var(--tv-primary-soft);
}

html .broadcasts-index--lovable .broadcasts-cards-main .broadcasts-actions--card .broadcasts-action:hover,
html .broadcasts-index--lovable .broadcasts-cards-main .broadcasts-actions--card .broadcasts-action:focus-visible {
  color: var(--tv-primary) !important;
  background: var(--tv-border);
}

html .broadcasts-index--lovable .broadcasts-cards-main .broadcasts-actions--card .broadcasts-action i {
  position: static;
  display: inline;
  width: auto;
  height: auto;
  flex: none;
  color: inherit;
  font-size: 15px;
}

html .broadcasts-index--lovable .broadcasts-cards-main .broadcasts-actions--card .broadcasts-action i::before {
  position: static;
  display: inline;
  transform: none;
}

html .broadcasts-index--lovable .broadcasts-cards-main .broadcasts-actions--card .broadcast-action__label {
  display: none;
}

html .broadcasts-index--lovable .broadcasts-cards-main .broadcasts-actions--card .broadcasts-action--play,
html .broadcasts-index--lovable .broadcasts-cards-main .broadcasts-actions--card .broadcasts-action--stop {
  color: var(--tv-text) !important;
}

@media (max-width: 430px) {
  .broadcasts-index--lovable .tv-card-menu__panel {
    width: min(200px, calc(100vw - 100px));
  }
}

/* Modal original de publicação com a composição do Dialog de /novo/tvs. */
[data-publish-modal] {
  --publish-bg: #faf8fc;
  --publish-card: #ffffff;
  --publish-text: #30283b;
  --publish-muted: #756d80;
  --publish-border: #e7e0ec;
  --publish-primary: #7549bd;
  --publish-primary-text: #ffffff;
  --publish-hover: #f3edf8;
  padding: 16px;
  box-sizing: border-box;
}

html[data-theme="dark"] [data-publish-modal],
body.theme-dark [data-publish-modal] {
  --publish-bg: #211d27;
  --publish-card: #29242f;
  --publish-text: #f2edf5;
  --publish-muted: #c1b7c8;
  --publish-border: #4d4356;
  --publish-primary: #d0bcff;
  --publish-primary-text: #2b1c42;
  --publish-hover: #332d3b;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) [data-publish-modal] {
    --publish-bg: #211d27;
    --publish-card: #29242f;
    --publish-text: #f2edf5;
    --publish-muted: #c1b7c8;
    --publish-border: #4d4356;
    --publish-primary: #d0bcff;
    --publish-primary-text: #2b1c42;
    --publish-hover: #332d3b;
  }
}

html [data-publish-modal] .broadcast-publish-modal__backdrop {
  background: rgba(0, 0, 0, .8);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html [data-publish-modal] .broadcast-publish-modal__dialog {
  width: min(768px, calc(100vw - 32px)) !important;
  height: auto !important;
  min-height: 0;
  max-height: 92dvh !important;
  box-sizing: border-box;
  border: 1px solid var(--publish-border) !important;
  border-radius: 14px !important;
  color: var(--publish-text) !important;
  background: var(--publish-bg) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .28) !important;
}

html [data-publish-modal] .broadcast-publish-modal__dialog .broadcast-publish-modal__header {
  position: relative;
  display: block;
  flex: 0 0 auto;
  padding: 20px 88px 20px 20px !important;
  border-bottom: 1px solid var(--publish-border) !important;
  color: var(--publish-text) !important;
  background: var(--publish-bg) !important;
}

html [data-publish-modal] .broadcast-publish-modal__header strong {
  color: var(--publish-text) !important;
  font: 600 18px/1.2 "Outfit", "Figtree", system-ui, sans-serif;
}

html [data-publish-modal] .broadcast-publish-modal__header p {
  margin: 6px 0 0;
  color: var(--publish-muted) !important;
  font: 400 14px/1.4 "Figtree", system-ui, sans-serif;
}

html [data-publish-modal] .broadcast-publish-modal__help,
html [data-publish-modal] .broadcast-publish-modal__close {
  position: absolute;
  top: 16px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: var(--publish-muted);
  background: transparent;
  box-shadow: none;
  filter: none;
  transform: none;
}

html [data-publish-modal] .broadcast-publish-modal__help { right: 52px; }
html [data-publish-modal] .broadcast-publish-modal__close { right: 16px; }

html [data-publish-modal] :is(.broadcast-publish-modal__help, .broadcast-publish-modal__close):hover,
html [data-publish-modal] :is(.broadcast-publish-modal__help, .broadcast-publish-modal__close):focus-visible {
  color: var(--publish-text);
  background: var(--publish-hover);
  transform: none;
  filter: none;
}

html [data-publish-modal] .broadcast-publish-modal__close .material-symbols-rounded {
  font-size: 19px;
}

html [data-publish-modal] .broadcast-publish-modal__dialog .broadcast-publish-form {
  min-height: 0;
  color: var(--publish-text);
  background: var(--publish-bg) !important;
}

html [data-publish-modal] .broadcast-publish-modal__dialog .broadcast-publish-modal__body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  align-content: start;
  gap: 20px;
  min-height: 260px;
  padding: 20px !important;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: auto;
  color: var(--publish-text);
  background: var(--publish-bg) !important;
}

html [data-publish-modal] .broadcast-publish-modal__dialog .broadcast-publish-section,
html [data-publish-modal] .broadcast-publish-modal__dialog .broadcast-publish-section:nth-child(2) {
  width: 100%;
  height: auto;
  min-width: 0;
  min-height: 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0;
  color: var(--publish-text) !important;
  background: transparent !important;
  box-shadow: none;
}

html [data-publish-modal] .broadcast-publish-section__title {
  min-height: 32px;
  margin-bottom: 8px;
  gap: 8px;
}

html [data-publish-modal] .broadcast-publish-section__title h3 {
  margin: 0;
  color: var(--publish-text) !important;
  font: 600 14px/1.3 "Figtree", system-ui, sans-serif;
}

html [data-publish-modal] .broadcast-publish-section__title .broadcast-material-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: auto;
  height: 30px;
  min-width: 0;
  min-height: 30px;
  flex: 0 0 auto;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  color: var(--publish-text);
  background: transparent;
  box-shadow: none;
  font: 500 12px "Figtree", system-ui, sans-serif;
}

html [data-publish-modal] .broadcast-publish-section__title .broadcast-material-icon-button:hover {
  color: var(--publish-primary);
  background: var(--publish-hover);
}

html [data-publish-modal] .broadcast-publish-section__title .material-symbols-rounded {
  font-size: 17px;
}

html [data-publish-modal] :is(.broadcast-playlist-list, .broadcast-publish-tvs) {
  display: grid;
  gap: 8px;
  width: 100%;
  height: auto;
  max-height: none;
  padding: 0;
  overflow: visible;
  scrollbar-gutter: auto;
  contain: none;
}

html [data-publish-modal] .broadcast-playlist-option {
  display: grid;
  grid-template-columns: 18px auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  min-height: 64px;
  height: auto;
  padding: 8px 10px;
  box-sizing: border-box;
  border: 1px solid var(--publish-border) !important;
  border-radius: 12px;
  color: var(--publish-text);
  background: var(--publish-card) !important;
  box-shadow: none;
  contain: none;
  content-visibility: visible;
}

html [data-publish-modal] .broadcast-playlist-option:hover {
  background: var(--publish-hover) !important;
}

html [data-publish-modal] .broadcast-playlist-option:has(input:checked) {
  border-color: var(--publish-primary) !important;
  background: var(--publish-hover) !important;
  box-shadow: none;
}

html [data-publish-modal] .broadcast-material-radio,
html [data-publish-modal] .broadcast-material-checkbox {
  width: 17px;
  height: 17px;
  min-width: 17px;
  min-height: 17px;
  border: 1px solid var(--publish-primary);
  border-radius: 50%;
  background: transparent;
}

html [data-publish-modal] :is(.broadcast-playlist-option, .broadcast-publish-tv) input:checked + :is(.broadcast-material-radio, .broadcast-material-checkbox) {
  border-color: var(--publish-primary) !important;
  background: var(--publish-primary) !important;
}

html [data-publish-modal] .broadcast-playlist-option__thumbs {
  display: flex;
  align-items: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  overflow: visible;
  padding: 0;
}

html [data-publish-modal] .broadcast-playlist-option__thumbs--2 {
  width: 53px;
}

html [data-publish-modal] .broadcast-playlist-option__thumbs--3 {
  width: 66px;
}

html [data-publish-modal] .broadcast-playlist-option__thumb,
html [data-publish-modal] .broadcast-playlist-option__thumb:first-child:nth-last-child(1) {
  display: block;
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  flex: 0 0 40px;
  margin: 0;
  border: 2px solid var(--publish-card);
  border-radius: 50%;
  background: var(--publish-hover);
}

html [data-publish-modal] .broadcast-playlist-option__thumb:not(:first-child) {
  margin-left: -27px;
}

html [data-publish-modal] .broadcast-playlist-option__thumb :is(img, video) {
  width: 40px;
  height: 40px;
  min-height: 40px;
  object-fit: cover;
  border-radius: 50%;
}

html [data-publish-modal] .broadcast-playlist-option > span:nth-last-child(2) {
  min-width: 0;
}

html [data-publish-modal] .broadcast-playlist-option strong {
  overflow: hidden;
  color: var(--publish-text) !important;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 600 13px/1.25 "Figtree", system-ui, sans-serif;
}

html [data-publish-modal] .broadcast-playlist-option small {
  margin-top: 2px;
  overflow: hidden;
  color: var(--publish-muted) !important;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}

html [data-publish-modal] .broadcast-playlist-option .broadcast-playlist-option__actions {
  display: flex;
  grid-column: auto;
  align-items: center;
  justify-self: end;
  gap: 2px;
}

html [data-publish-modal] .broadcast-playlist-material-action {
  width: 28px;
  height: 28px;
  padding: 3px;
  border: 0;
  color: var(--publish-muted);
  background: transparent;
}

html [data-publish-modal] .broadcast-playlist-material-action:hover {
  color: var(--publish-primary);
  background: var(--publish-hover);
}

html [data-publish-modal] .broadcast-playlist-material-action:disabled {
  opacity: .42;
  cursor: not-allowed;
}

html [data-publish-modal] .broadcast-playlist-material-action--danger,
html [data-publish-modal] .broadcast-playlist-material-action--danger:hover {
  color: #d43b52;
}

html [data-publish-modal] .broadcast-playlist-material-action .material-symbols-rounded {
  font-size: 18px;
}

html [data-publish-modal] .broadcast-publish-tv {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 44px;
  height: auto;
  padding: 6px 8px;
  box-sizing: border-box;
  border: 0 !important;
  border-radius: 10px;
  color: var(--publish-text);
  background: transparent !important;
  box-shadow: none !important;
  transform: none;
}

html [data-publish-modal] .broadcast-publish-tv:hover,
html [data-publish-modal] .broadcast-publish-tv:has(input:checked) {
  background: var(--publish-hover) !important;
  transform: none;
}

html [data-publish-modal] .broadcast-publish-tv__device,
html [data-publish-modal] .broadcast-publish-tv__arrow {
  display: none;
}

html [data-publish-modal] .broadcast-publish-tv__copy {
  display: contents;
}

html [data-publish-modal] .broadcast-publish-tv__copy strong {
  min-width: 0;
  overflow: hidden;
  color: var(--publish-text) !important;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 500 13px/1.3 "Figtree", system-ui, sans-serif;
}

html [data-publish-modal] .broadcast-publish-tv__copy small {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  color: var(--publish-muted) !important;
  white-space: nowrap;
  font-size: 11px;
}

html [data-publish-modal] .broadcast-publish-tv__status {
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  box-shadow: none;
}

html [data-publish-modal] .broadcast-publish-modal__dialog .broadcast-publish-modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px !important;
  border-top: 1px solid var(--publish-border) !important;
  color: var(--publish-text) !important;
  background: var(--publish-bg) !important;
  backdrop-filter: none;
}

html [data-publish-modal] .broadcast-publish-requirements {
  flex: 1 1 auto;
  margin-right: auto;
  color: var(--publish-muted);
  font-size: 12px;
  font-weight: 400;
}

html [data-publish-modal] .broadcast-publish-requirements.is-ready {
  color: #24815a;
}

html [data-publish-modal] .broadcast-material-footer-button {
  width: auto;
  min-width: 0;
  min-height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  color: var(--publish-text);
  background: transparent;
  box-shadow: none;
  white-space: nowrap;
  font: 500 13px "Figtree", system-ui, sans-serif;
}

html [data-publish-modal] .broadcast-material-footer-button:hover {
  color: var(--publish-text);
  background: var(--publish-hover);
  box-shadow: none;
  transform: none;
}

html [data-publish-modal] .broadcast-material-footer-button .material-symbols-rounded {
  display: none;
}

html [data-publish-modal] .broadcast-material-footer-button--primary {
  color: var(--publish-primary-text) !important;
  background: var(--publish-primary) !important;
}

html [data-publish-modal] .broadcast-material-footer-button--primary:hover {
  filter: brightness(1.08);
}

@media (max-width: 760px) {
  html [data-publish-modal].broadcast-publish-modal {
    align-items: center !important;
    padding: 8px !important;
  }

  html [data-publish-modal] .broadcast-publish-modal__dialog {
    width: min(100%, calc(100vw - 16px)) !important;
    max-height: calc(100dvh - 16px) !important;
  }

  html [data-publish-modal] .broadcast-publish-modal__dialog .broadcast-publish-modal__header {
    padding: 16px 74px 16px 16px !important;
  }

  html [data-publish-modal] .broadcast-publish-modal__header strong {
    font-size: 17px;
  }

  html [data-publish-modal] .broadcast-publish-modal__help,
  html [data-publish-modal] .broadcast-publish-modal__close {
    top: 16px;
  }

  html [data-publish-modal] .broadcast-publish-modal__help { right: 44px; }
  html [data-publish-modal] .broadcast-publish-modal__close { right: 12px; }

  html [data-publish-modal] .broadcast-publish-modal__dialog .broadcast-publish-modal__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: max-content;
    align-content: start;
    gap: 18px;
    min-height: 0;
    padding: 16px !important;
  }

  html [data-publish-modal] :is(.broadcast-playlist-list, .broadcast-publish-tvs) {
    max-height: none;
    overflow: visible;
  }

  html [data-publish-modal] .broadcast-playlist-option {
    grid-template-columns: 18px auto minmax(0, 1fr) auto !important;
  }

  html [data-publish-modal] .broadcast-playlist-option__thumbs--1 { width: 40px !important; }
  html [data-publish-modal] .broadcast-playlist-option__thumbs--2 { width: 53px !important; }
  html [data-publish-modal] .broadcast-playlist-option__thumbs--3 { width: 66px !important; }

  html [data-publish-modal] .broadcast-publish-modal__dialog .broadcast-publish-modal__footer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px !important;
  }

  html [data-publish-modal] .broadcast-publish-requirements {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
  }

  html [data-publish-modal] .broadcast-material-footer-button {
    width: 100%;
  }
}

/* Editor original de playlists com a composição do Dialog Radix de /novo/tvs. */
[data-playlist-editor-modal] {
  --editor-bg: #faf8fc;
  --editor-card: #ffffff;
  --editor-text: #30283b;
  --editor-muted: #756d80;
  --editor-border: #e7e0ec;
  --editor-primary: #7549bd;
  --editor-hover: #f3edf8;
  box-sizing: border-box;
}

html[data-theme="dark"] [data-playlist-editor-modal],
body.theme-dark [data-playlist-editor-modal] {
  --editor-bg: #211d27;
  --editor-card: #29242f;
  --editor-text: #f2edf5;
  --editor-muted: #c1b7c8;
  --editor-border: #4d4356;
  --editor-primary: #d0bcff;
  --editor-hover: #332d3b;
}

html [data-playlist-editor-modal] .broadcast-publish-modal__backdrop {
  background: rgba(0, 0, 0, .8) !important;
  backdrop-filter: none;
}

html [data-playlist-editor-modal].broadcast-publish-modal {
  align-items: center !important;
  padding: 16px;
}

html [data-playlist-editor-modal] .broadcast-playlist-editor-modal__dialog {
  display: flex !important;
  flex-direction: column;
  width: min(896px, calc(100vw - 32px)) !important;
  max-width: 896px !important;
  height: auto !important;
  max-height: 92dvh !important;
  min-height: 0;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid var(--editor-border) !important;
  border-radius: 14px !important;
  color: var(--editor-text) !important;
  background: var(--editor-bg) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .28) !important;
}

html [data-playlist-editor-modal] .broadcast-playlist-editor__header {
  position: relative;
  display: block;
  flex: 0 0 auto;
  padding: 20px 88px 20px 20px !important;
  border-bottom: 1px solid var(--editor-border) !important;
  color: var(--editor-text) !important;
  background: var(--editor-bg) !important;
}

html [data-playlist-editor-modal] .broadcast-playlist-editor__mark,
html [data-playlist-editor-modal] .broadcast-playlist-editor__header p {
  display: none !important;
}

html [data-playlist-editor-modal] .broadcast-playlist-editor__header strong {
  color: var(--editor-text) !important;
  font: 600 18px/1.2 "Outfit", "Figtree", system-ui, sans-serif;
}

html [data-playlist-editor-modal] :is(.broadcast-publish-modal__help, .broadcast-publish-modal__close) {
  position: absolute;
  top: 16px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: var(--editor-muted);
  background: transparent;
  box-shadow: none;
  transform: none;
}

html [data-playlist-editor-modal] .broadcast-publish-modal__help { right: 52px; }
html [data-playlist-editor-modal] .broadcast-publish-modal__close { right: 16px; }

html [data-playlist-editor-modal] .broadcast-playlist-editor {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  color: var(--editor-text);
  background: var(--editor-bg) !important;
}

html [data-playlist-editor-modal] .broadcast-publish-modal__body {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) !important;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: start;
  gap: 20px 24px;
  min-height: 0;
  padding: 20px !important;
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--editor-text);
  background: var(--editor-bg) !important;
}

html[data-theme="light"] [data-playlist-editor-modal] .broadcast-publish-modal__body,
html[data-theme="dark"] [data-playlist-editor-modal] .broadcast-publish-modal__body {
  color: var(--editor-text) !important;
  background: var(--editor-bg) !important;
}

html [data-playlist-editor-modal] .broadcast-publish-section {
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: auto;
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-theme="light"] [data-playlist-editor-modal] .broadcast-publish-section,
html[data-theme="dark"] [data-playlist-editor-modal] .broadcast-publish-section {
  color: var(--editor-text) !important;
  background: transparent !important;
  border-color: transparent !important;
}

html [data-playlist-editor-modal] .broadcast-playlist-editor__settings { grid-column: 1; grid-row: 1; }
html [data-playlist-editor-modal] .broadcast-playlist-editor__order-section { grid-column: 1; grid-row: 2; }
html [data-playlist-editor-modal] .broadcast-playlist-editor__library-section { grid-column: 2; grid-row: 1 / 3; }

html [data-playlist-editor-modal] :is(.broadcast-playlist-editor__library-section, .broadcast-playlist-editor__order-section) {
  display: block;
  min-height: 0 !important;
}

html [data-playlist-editor-modal] .broadcast-playlist-editor__settings h3 {
  display: none;
}

html [data-playlist-editor-modal] .broadcast-playlist-editor__order-section h3 {
  display: block;
  margin: 0;
  color: var(--editor-text) !important;
  font: 600 14px/1.3 "Figtree", system-ui, sans-serif;
}

html [data-playlist-editor-modal] .broadcast-playlist-editor__settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 14px;
  margin: 0;
}

html [data-playlist-editor-modal] .broadcast-playlist-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

html [data-playlist-editor-modal] .broadcast-playlist-field > span {
  color: var(--editor-text) !important;
  font: 500 13px/1.3 "Figtree", system-ui, sans-serif;
}

html [data-playlist-editor-modal] :is(.broadcast-playlist-input-wrap, .broadcast-playlist-field > select, .broadcast-transition-picker__trigger) {
  min-height: 38px;
  box-sizing: border-box;
  border: 1px solid var(--editor-border) !important;
  border-radius: 8px;
  color: var(--editor-text) !important;
  background: var(--editor-card) !important;
  box-shadow: none !important;
}

html [data-playlist-editor-modal] .broadcast-playlist-input-wrap input {
  color: var(--editor-text) !important;
  background: transparent !important;
}

html [data-playlist-editor-modal] .broadcast-playlist-field--sync {
  display: grid;
  gap: 6px;
}

html [data-playlist-editor-modal] .broadcast-playlist-sync-toggle {
  min-height: 38px;
  border: 0;
  color: var(--editor-text) !important;
  background: transparent !important;
  box-shadow: none;
}

html [data-playlist-editor-modal] .broadcast-publish-section__title {
  min-height: 32px;
  margin: 0 0 10px;
  color: var(--editor-text);
}

html [data-playlist-editor-modal] .broadcast-publish-section__title h3 {
  color: var(--editor-text) !important;
  font: 600 14px/1.3 "Figtree", system-ui, sans-serif;
}

html [data-playlist-editor-modal] .broadcast-publish-section__title h3 > .material-symbols-rounded {
  display: none;
}

html [data-playlist-editor-modal] .broadcast-playlist-editor__tabs {
  display: flex;
  width: fit-content;
  max-width: 100%;
  padding: 4px;
  border: 1px solid var(--editor-border);
  border-radius: 10px;
  background: var(--editor-hover);
}

html [data-playlist-editor-modal] .broadcast-playlist-editor__tab {
  min-height: 34px;
  border-radius: 7px;
  color: var(--editor-muted) !important;
  background: transparent !important;
}

html [data-playlist-editor-modal] .broadcast-playlist-editor__tab.is-active {
  color: var(--editor-text) !important;
  background: var(--editor-card) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
}

html [data-playlist-editor-modal] :is(.broadcast-publish-library, .broadcast-playlist-order) {
  flex: 0 0 auto;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  contain: none;
  border: 0;
  background: transparent;
}

html [data-playlist-editor-modal] .broadcast-playlist-order__empty {
  min-height: 120px;
}

html [data-playlist-editor-modal] .broadcast-publish-modal__footer {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px !important;
  border-top: 1px solid var(--editor-border) !important;
  color: var(--editor-text) !important;
  background: var(--editor-bg) !important;
}

html [data-playlist-editor-modal] .broadcast-material-footer-button {
  width: auto;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13px;
}

/* Campos e biblioteca do editor seguem os componentes do protótipo. */
html [data-playlist-editor-modal] .broadcast-playlist-editor__settings-grid {
  gap: 18px;
}

html [data-playlist-editor-modal] .broadcast-playlist-field > span {
  font-size: 14px;
  font-weight: 500;
}

html [data-playlist-editor-modal] .broadcast-playlist-input-wrap,
html [data-playlist-editor-modal] .broadcast-playlist-field > select,
html [data-playlist-editor-modal] .broadcast-transition-picker__trigger {
  min-height: 38px;
  border-radius: 10px;
}

html [data-playlist-editor-modal] .broadcast-playlist-input-wrap > .material-symbols-rounded,
html [data-playlist-editor-modal] .broadcast-playlist-input-wrap > small,
html [data-playlist-editor-modal] .broadcast-transition-picker__trigger img {
  display: none !important;
}

html [data-playlist-editor-modal] .broadcast-playlist-field--video-mode {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
}

html [data-playlist-editor-modal] .broadcast-playlist-field--video-mode select {
  display: none;
}

html [data-playlist-editor-modal] .broadcast-playlist-field--video-mode input[type="checkbox"] {
  display: block;
  position: relative;
  width: 36px;
  height: 20px;
  min-height: 20px;
  flex: 0 0 36px;
  margin: 0;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: #d9d4df;
  cursor: pointer;
}

html [data-playlist-editor-modal] .broadcast-playlist-field--video-mode input[type="checkbox"]:checked {
  background: var(--editor-primary);
}

html [data-playlist-editor-modal] .broadcast-playlist-field--video-mode input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
  transition: transform .18s ease;
}

html [data-playlist-editor-modal] .broadcast-playlist-field--video-mode input[type="checkbox"]:checked::after {
  transform: translateX(16px);
}

html [data-playlist-editor-modal] .broadcast-playlist-field--advanced {
  order: 6;
}

html [data-playlist-editor-modal] .broadcast-playlist-editor__advanced summary {
  width: fit-content;
  color: var(--editor-muted);
  cursor: pointer;
  font-size: 12px;
}

html [data-playlist-editor-modal] .broadcast-playlist-editor__advanced[open] .broadcast-playlist-field {
  margin-top: 10px;
}

html [data-playlist-editor-modal] .broadcast-playlist-field--sync {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

html [data-playlist-editor-modal] .broadcast-playlist-field--sync > small,
html [data-playlist-editor-modal] .broadcast-playlist-sync-toggle strong,
html [data-playlist-editor-modal] .broadcast-playlist-sync-toggle > span {
  display: none !important;
}

html [data-playlist-editor-modal] .broadcast-playlist-sync-toggle {
  width: auto;
  min-width: 36px;
  min-height: 20px;
  margin: 0;
  padding: 0;
}

html [data-playlist-editor-modal] .broadcast-playlist-sync-toggle input[type="checkbox"] {
  display: block;
  position: relative;
  width: 36px;
  height: 20px;
  margin: 0;
  opacity: 1;
  pointer-events: auto;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: #d9d4df;
  cursor: pointer;
}

html [data-playlist-editor-modal] .broadcast-transition-picker__trigger {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 400;
}

html [data-playlist-editor-modal] .broadcast-playlist-sync-toggle input[type="checkbox"]:checked {
  background: var(--editor-primary);
}

html [data-playlist-editor-modal] .broadcast-playlist-sync-toggle input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
  transition: transform .18s ease;
}

html [data-playlist-editor-modal] .broadcast-playlist-sync-toggle input[type="checkbox"]:checked::after {
  transform: translateX(16px);
}

html [data-playlist-editor-modal] .broadcast-playlist-editor__library-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-auto-rows: max-content;
  align-content: start;
  column-gap: 8px;
}

html [data-playlist-editor-modal] .broadcast-playlist-editor__library-section > .broadcast-publish-section__title {
  grid-column: 2;
  grid-row: 1;
  margin: 0 0 12px;
}

html [data-playlist-editor-modal] .broadcast-playlist-editor__library-section > .broadcast-publish-section__title h3 {
  display: none;
}

html [data-playlist-editor-modal] .broadcast-playlist-editor__tabs {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  border: 0;
}

html [data-playlist-editor-modal] .broadcast-playlist-editor__tab .material-symbols-rounded,
html [data-playlist-editor-modal] .broadcast-playlist-editor__tab small {
  display: none;
}

html [data-playlist-editor-modal] .broadcast-publish-section__actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

html [data-playlist-editor-modal] .broadcast-playlist-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: auto;
  height: 34px;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  color: var(--editor-text);
  background: transparent;
  font-size: 12px;
}

html [data-playlist-editor-modal] .broadcast-playlist-icon-btn .material-symbols-rounded {
  font-size: 17px;
}

html [data-playlist-editor-modal] .broadcast-publish-upload-control {
  order: -1;
  border: 1px solid var(--editor-border);
  background: var(--editor-card);
}

html [data-playlist-editor-modal] :is(.broadcast-publish-library, .broadcast-publish-library--selected) {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: 8px;
  padding: 0;
}

html [data-playlist-editor-modal] :is(.broadcast-publish-library, .broadcast-publish-library--selected)[hidden] {
  display: none !important;
}

html [data-playlist-editor-modal] .broadcast-publish-video {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  min-height: 0;
  padding: 4px;
  border: 2px solid transparent !important;
  border-radius: 12px;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
}

html [data-playlist-editor-modal] .broadcast-publish-video--selected .broadcast-playlist-selected-remove {
  position: absolute;
  z-index: 1;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
}

html [data-playlist-editor-modal] .broadcast-publish-video:has(input:checked),
html [data-playlist-editor-modal] .broadcast-publish-video--selected {
  border-color: var(--editor-primary) !important;
}

html [data-playlist-editor-modal] .broadcast-publish-video input[type="checkbox"],
html [data-playlist-editor-modal] .broadcast-publish-video > i,
html [data-playlist-editor-modal] .broadcast-publish-video small {
  display: none !important;
}

html [data-playlist-editor-modal] .broadcast-publish-video > .broadcast-playlist-thumb-preview {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  min-height: 0;
  border-radius: 10px;
  overflow: hidden;
}

html [data-playlist-editor-modal] .broadcast-publish-video .broadcast-playlist-thumb-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

html [data-playlist-editor-modal] .broadcast-publish-video > span:last-of-type {
  display: block;
  min-width: 0;
  padding: 0 3px;
}

html [data-playlist-editor-modal] .broadcast-publish-video strong {
  display: block;
  overflow: hidden;
  color: var(--editor-text) !important;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 400;
}

html [data-playlist-editor-modal] .broadcast-playlist-editor__count {
  display: none;
}

html [data-playlist-editor-modal] .broadcast-playlist-order__item {
  display: grid;
  grid-template-columns: 16px 36px minmax(0, 1fr) 28px 28px;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 5px 8px;
  border: 1px solid var(--editor-border) !important;
  border-radius: 12px;
  background: var(--editor-card) !important;
  box-shadow: none;
}

html [data-playlist-editor-modal] .broadcast-playlist-order__drag {
  width: 16px;
  height: 26px;
  padding: 0;
  background: transparent;
}

html [data-playlist-editor-modal] .broadcast-playlist-order__index,
html [data-playlist-editor-modal] .broadcast-playlist-order__item small {
  display: none;
}

html [data-playlist-editor-modal] .broadcast-playlist-order__item > .broadcast-playlist-thumb-preview {
  grid-column: 2;
  grid-row: 1;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px;
  min-height: 36px;
  overflow: hidden;
  border-radius: 50%;
}

html [data-playlist-editor-modal] .broadcast-playlist-order__thumb {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50%;
}

html [data-playlist-editor-modal] .broadcast-playlist-order__item > .broadcast-playlist-thumb-preview i {
  display: none;
}

html [data-playlist-editor-modal] .broadcast-playlist-order__item > span:has(strong) {
  grid-column: 3;
  min-width: 0;
}

html [data-playlist-editor-modal] .broadcast-playlist-order__item strong {
  color: var(--editor-text) !important;
  font-size: 12px;
  font-weight: 400;
}

html [data-playlist-editor-modal] .broadcast-playlist-order__action {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--editor-muted);
  background: transparent;
  cursor: pointer;
  font-size: 18px;
}

html [data-playlist-editor-modal] .broadcast-playlist-order__action:disabled {
  opacity: .35;
  cursor: default;
}

html [data-playlist-editor-modal] .broadcast-playlist-clear-order {
  display: none;
}

html [data-playlist-editor-modal] .broadcast-playlist-editor__pill {
  min-height: 0;
  padding: 0;
  color: var(--editor-text);
  background: transparent;
  font-size: 14px;
  font-weight: 600;
}

html [data-playlist-editor-modal] .broadcast-playlist-editor__order-section .broadcast-publish-section__title {
  justify-content: flex-start;
  gap: 3px;
}

html [data-playlist-editor-modal] .broadcast-material-footer-button .material-symbols-rounded {
  display: none;
}

html [data-playlist-editor-modal] .broadcast-material-footer-button:not(.broadcast-material-footer-button--primary) {
  border: 0;
  background: transparent;
  box-shadow: none;
}

html [data-playlist-editor-modal] .broadcast-material-footer-button--primary {
  min-width: 72px;
  color: #fff;
  background: var(--editor-primary);
}

@media (max-width: 760px) {
  html [data-playlist-editor-modal] .broadcast-playlist-editor-modal__dialog {
    width: calc(100vw - 16px) !important;
    max-height: calc(100dvh - 16px) !important;
  }

  html [data-playlist-editor-modal] .broadcast-playlist-editor__header {
    padding: 16px 74px 16px 16px !important;
  }

  html [data-playlist-editor-modal] .broadcast-publish-modal__body {
    display: flex !important;
    flex-direction: column;
    gap: 20px;
    padding: 16px !important;
  }

  html [data-playlist-editor-modal] .broadcast-publish-section {
    flex: 0 0 auto;
  }

  html [data-playlist-editor-modal] .broadcast-playlist-editor__settings { order: 1; }
  html [data-playlist-editor-modal] .broadcast-playlist-editor__order-section { order: 2; }
  html [data-playlist-editor-modal] .broadcast-playlist-editor__library-section { order: 3; }

  html [data-playlist-editor-modal] .broadcast-playlist-editor__library-section {
    grid-template-columns: minmax(0, 1fr);
  }

  html [data-playlist-editor-modal] .broadcast-playlist-editor__library-section > .broadcast-publish-section__title,
  html [data-playlist-editor-modal] .broadcast-playlist-editor__tabs {
    grid-column: 1;
  }

  html [data-playlist-editor-modal] .broadcast-playlist-editor__library-section > .broadcast-publish-section__title {
    grid-row: 2;
  }

  html [data-playlist-editor-modal] :is(.broadcast-publish-library, .broadcast-publish-library--selected) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html [data-playlist-editor-modal] .broadcast-publish-modal__footer {
    display: flex;
    padding: 12px !important;
  }
}

/* Componentes equivalentes aos Button, Tabs, Input, Select e Switch do Novo Layout. */
html [data-playlist-editor-modal] .editor-lucide-icon {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  stroke: currentColor;
}

html [data-playlist-editor-modal] .broadcast-playlist-editor__tabs {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 36px;
  padding: 4px;
  border: 0;
  border-radius: 10px;
  background: var(--editor-hover);
  box-shadow: none;
}

html [data-playlist-editor-modal] .broadcast-playlist-editor__tab {
  min-height: 28px;
  padding: 4px 12px;
  border: 0;
  border-radius: 7px;
  color: var(--editor-muted) !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 13px;
  font-weight: 500;
}

html [data-playlist-editor-modal] .broadcast-playlist-editor__tab.is-active {
  color: var(--editor-text) !important;
  background: var(--editor-card) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12) !important;
}

html [data-playlist-editor-modal] .broadcast-playlist-icon-btn {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--editor-text) !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 12px;
  font-weight: 500;
}

html [data-playlist-editor-modal] .broadcast-playlist-icon-btn:hover {
  background: var(--editor-hover) !important;
}

html [data-playlist-editor-modal] .broadcast-publish-upload-control {
  border: 1px solid var(--editor-border) !important;
  background: var(--editor-card) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08) !important;
}

html [data-playlist-editor-modal] .broadcast-playlist-field > span {
  color: var(--editor-text) !important;
  font-size: 14px;
  font-weight: 500;
}

html [data-playlist-editor-modal] .broadcast-playlist-input-wrap,
html [data-playlist-editor-modal] .broadcast-transition-picker__trigger {
  height: 36px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--editor-border) !important;
  border-radius: 8px;
  color: var(--editor-text) !important;
  background: var(--editor-card) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08) !important;
  font-size: 14px;
  font-weight: 400;
}

html [data-playlist-editor-modal] .broadcast-playlist-input-wrap:focus-within,
html [data-playlist-editor-modal] .broadcast-transition-picker__trigger:focus-visible {
  outline: 2px solid var(--editor-primary);
  outline-offset: 1px;
}

html [data-playlist-editor-modal] .broadcast-playlist-input-wrap input {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0 !important;
  outline: 0;
  color: var(--editor-text) !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 14px;
  font-weight: 400;
}

html [data-playlist-editor-modal] .broadcast-transition-picker__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

html [data-playlist-editor-modal] .broadcast-transition-picker__trigger .editor-lucide-icon {
  color: var(--editor-muted);
}

html [data-playlist-editor-modal] .broadcast-playlist-field--switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  gap: 12px;
}

html [data-playlist-editor-modal] .broadcast-playlist-field--switch input[type="checkbox"] {
  display: block !important;
  position: relative !important;
  width: 36px !important;
  height: 20px !important;
  min-width: 36px !important;
  min-height: 20px !important;
  flex: 0 0 36px;
  margin: 0 !important;
  padding: 0 !important;
  appearance: none;
  opacity: 1 !important;
  pointer-events: auto !important;
  border: 2px solid transparent !important;
  border-radius: 999px !important;
  background: #d9d4df !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12) !important;
  cursor: pointer;
}

html [data-playlist-editor-modal] .broadcast-playlist-field--switch input[type="checkbox"]:checked {
  background: var(--editor-primary) !important;
}

html [data-playlist-editor-modal] .broadcast-playlist-field--switch input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--editor-card);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
  transition: transform .18s ease;
}

html [data-playlist-editor-modal] .broadcast-playlist-field--switch input[type="checkbox"]:checked::after {
  transform: translateX(16px);
}

html [data-playlist-editor-modal] .broadcast-playlist-order__drag,
html [data-playlist-editor-modal] .broadcast-playlist-order__action {
  display: grid;
  place-items: center;
  color: var(--editor-muted);
  background: transparent !important;
}

html [data-playlist-editor-modal] .broadcast-playlist-order__action:hover {
  color: var(--editor-text);
  background: var(--editor-hover) !important;
}

html[data-theme="light"] [data-playlist-editor-modal] .broadcast-playlist-editor__tab.is-active,
html[data-theme="dark"] [data-playlist-editor-modal] .broadcast-playlist-editor__tab.is-active {
  color: var(--editor-text) !important;
  background: var(--editor-card) !important;
}

html[data-theme="light"] .broadcast-playlist-editor-modal[data-playlist-editor-modal] .broadcast-transition-picker__trigger,
html[data-theme="dark"] .broadcast-playlist-editor-modal[data-playlist-editor-modal] .broadcast-transition-picker__trigger {
  border-color: var(--editor-border) !important;
  color: var(--editor-text) !important;
  background: var(--editor-card) !important;
}

html[data-theme="light"] .broadcast-playlist-editor-modal[data-playlist-editor-modal] .broadcast-transition-picker__trigger:focus-visible,
html[data-theme="dark"] .broadcast-playlist-editor-modal[data-playlist-editor-modal] .broadcast-transition-picker__trigger:focus-visible {
  border-color: var(--editor-primary) !important;
}

/* O estilo Material antigo é inserido no fim da view; estes seletores limitam a
   referência Radix ao editor da tela de TVs. */
html[data-theme="light"] .broadcast-playlist-editor-modal[data-playlist-editor-modal] .broadcast-playlist-editor__tabs,
html[data-theme="dark"] .broadcast-playlist-editor-modal[data-playlist-editor-modal] .broadcast-playlist-editor__tabs {
  display: inline-flex !important;
  align-items: center;
  width: max-content;
  height: 36px;
  min-height: 36px;
  padding: 4px !important;
  border: 0 !important;
  border-radius: 16px !important;
  background: var(--editor-hover) !important;
  box-shadow: none !important;
}

html[data-theme="light"] .broadcast-playlist-editor-modal[data-playlist-editor-modal] .broadcast-playlist-editor__tab,
html[data-theme="dark"] .broadcast-playlist-editor-modal[data-playlist-editor-modal] .broadcast-playlist-editor__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  min-height: 28px;
  padding: 4px 12px;
  border: 0 !important;
  border-radius: 14px !important;
  color: var(--editor-muted) !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 14px;
  font-weight: 500;
}

html[data-theme="light"] .broadcast-playlist-editor-modal[data-playlist-editor-modal] .broadcast-playlist-editor__tab.is-active,
html[data-theme="dark"] .broadcast-playlist-editor-modal[data-playlist-editor-modal] .broadcast-playlist-editor__tab.is-active {
  color: var(--editor-text) !important;
  background: var(--editor-card) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .15) !important;
}

html[data-theme="light"] .broadcast-playlist-editor-modal[data-playlist-editor-modal] .broadcast-playlist-editor__tab.is-active span,
html[data-theme="dark"] .broadcast-playlist-editor-modal[data-playlist-editor-modal] .broadcast-playlist-editor__tab.is-active span {
  color: var(--editor-text) !important;
}

html[data-theme="light"] .broadcast-playlist-editor-modal[data-playlist-editor-modal] .broadcast-playlist-input-wrap,
html[data-theme="dark"] .broadcast-playlist-editor-modal[data-playlist-editor-modal] .broadcast-playlist-input-wrap,
html[data-theme="light"] .broadcast-playlist-editor-modal[data-playlist-editor-modal] .broadcast-transition-picker__trigger,
html[data-theme="dark"] .broadcast-playlist-editor-modal[data-playlist-editor-modal] .broadcast-transition-picker__trigger {
  height: 36px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--editor-border) !important;
  border-radius: 14px !important;
  color: var(--editor-text) !important;
  background: var(--editor-bg) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .14) !important;
}

html[data-theme="light"] .broadcast-playlist-editor-modal[data-playlist-editor-modal] .broadcast-transition-picker__trigger > span,
html[data-theme="dark"] .broadcast-playlist-editor-modal[data-playlist-editor-modal] .broadcast-transition-picker__trigger > span {
  color: var(--editor-text) !important;
  font-size: 14px;
  font-weight: 400 !important;
  text-transform: none;
}

html[data-theme="light"] .broadcast-playlist-editor-modal[data-playlist-editor-modal] .broadcast-playlist-input-wrap input,
html[data-theme="dark"] .broadcast-playlist-editor-modal[data-playlist-editor-modal] .broadcast-playlist-input-wrap input {
  color: var(--editor-text) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
}

/* Toolbar da tela de TVs no mesmo arranjo compacto do novo layout. */
html .broadcasts-index--lovable .broadcasts-toolbar {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 12px 16px;
}

html .broadcasts-index--lovable .broadcasts-toolbar__count {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  font-size: 13px;
  font-weight: 500;
}

html .broadcasts-index--lovable .broadcasts-toolbar__actions {
  grid-column: 1 / -1;
  grid-row: 1;
  justify-self: end;
  justify-content: flex-end;
  gap: 8px;
}

html .broadcasts-index--lovable .broadcasts-toolbar__actions .broadcasts-toolbar__btn {
  height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  gap: 7px;
}

html .broadcasts-index--lovable .broadcasts-toolbar__actions .broadcasts-toolbar__publish {
  color: var(--tv-text);
  border-color: var(--tv-border);
  background: var(--tv-primary-soft);
  box-shadow: 0 1px 3px rgba(40, 25, 60, .08);
}

html .broadcasts-index--lovable .broadcasts-toolbar__actions .broadcasts-toolbar__publish:hover {
  background: color-mix(in srgb, var(--tv-primary-soft) 78%, var(--tv-primary));
}

html .broadcasts-index--lovable .broadcasts-toolbar .broadcasts-toolbar__icon {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  stroke-width: 2;
}

html .broadcasts-index--lovable .broadcasts-toolbar__bulk-actions {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}

html .broadcasts-index--lovable .broadcasts-toolbar__bulk-form {
  display: inline-flex;
  margin: 0;
}

html .broadcasts-index--lovable .broadcasts-toolbar__btn--compact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  height: 34px;
  padding: 0 13px;
  border: 1px solid var(--tv-border);
  border-radius: 999px;
  color: var(--tv-text);
  background: var(--tv-surface);
  box-shadow: var(--tv-shadow);
  font: 500 12px "Figtree", system-ui, sans-serif;
  white-space: nowrap;
}

html .broadcasts-index--lovable .broadcasts-toolbar__btn--compact:hover:not(:disabled) {
  background: var(--tv-primary-soft);
  border-color: color-mix(in srgb, var(--tv-border) 65%, var(--tv-primary));
}

html .broadcasts-index--lovable .broadcasts-toolbar__btn--compact:disabled {
  cursor: not-allowed;
  opacity: .5;
}

html .broadcasts-index--lovable .broadcasts-toolbar .broadcasts-view-switch {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

html .broadcasts-index--lovable .broadcasts-view-switch__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  color: var(--tv-text);
  background: transparent;
  box-shadow: none;
}

html .broadcasts-index--lovable .broadcasts-view-switch__btn[data-view-target="cards"] { order: 1; }
html .broadcasts-index--lovable .broadcasts-view-switch__btn[data-view-target="table"] { order: 2; }

html .broadcasts-index--lovable .broadcasts-view-switch__btn .broadcasts-toolbar__icon {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}

html .broadcasts-index--lovable .broadcasts-view-switch__btn > span:last-child:not(.material-symbols-rounded) {
  display: none;
}

html .broadcasts-index--lovable .broadcasts-view-switch__btn.is-active {
  color: var(--tv-primary);
  background: var(--tv-primary-soft);
}

@media (max-width: 760px) {
  html .broadcasts-index--lovable .broadcasts-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 10px 8px;
  }

  html .broadcasts-index--lovable .broadcasts-toolbar__actions {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  html .broadcasts-index--lovable .broadcasts-toolbar__bulk-actions {
    grid-column: 1;
    grid-row: 2;
    flex-wrap: wrap;
  }

  html .broadcasts-index--lovable .broadcasts-toolbar .broadcasts-view-switch {
    grid-column: 2;
    grid-row: 2;
    width: auto;
    justify-self: end;
  }
}

/* Visual do agendamento de energia do Novo Layout (shadcn/ui e Radix). */
html .broadcast-power-schedule-modal {
  --power-modal-bg: #211d27;
  --power-modal-surface: #29242f;
  --power-modal-hover: #393043;
  --power-modal-border: #504758;
  --power-modal-text: #f0eaf3;
  --power-modal-muted: #b6aebd;
  font-family: "Figtree", system-ui, sans-serif;
}

html .broadcast-power-schedule-modal__backdrop {
  background: rgba(0, 0, 0, .8);
  backdrop-filter: none;
}

html .broadcast-power-schedule-modal__dialog {
  width: min(448px, calc(100vw - 32px));
  border: 1px solid var(--power-modal-border);
  border-radius: 16px;
  background: var(--power-modal-bg);
  color: var(--power-modal-text);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
}

html .broadcast-power-schedule-modal__header,
html .broadcast-power-schedule-modal__footer {
  padding: 20px 24px;
  background: transparent;
  border: 0;
  backdrop-filter: none;
}

html .broadcast-power-schedule-modal__header strong {
  font-family: "Outfit", "Figtree", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 600;
}

html .broadcast-power-schedule-modal__header p {
  color: var(--power-modal-muted);
  font-size: 13px;
  font-weight: 400;
}

html .broadcast-power-schedule-modal__body {
  padding: 20px 24px;
  gap: 20px;
  background: transparent;
}

html .broadcast-power-schedule-modal__times {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

html .broadcast-power-schedule-modal__field {
  gap: 6px;
  color: var(--power-modal-text);
  font-size: 14px;
  font-weight: 500;
}

html .broadcast-power-schedule-modal__field input {
  box-sizing: border-box;
  width: 100%;
  min-height: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--power-modal-border);
  border-radius: 8px;
  background: transparent;
  color: var(--power-modal-text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
}

html .broadcast-power-schedule-modal__field input:focus-visible {
  outline: 2px solid #a46aec;
  outline-offset: 2px;
  border-color: #a46aec;
}

html .broadcast-power-schedule-modal__days {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

html .broadcast-power-schedule-modal__days legend {
  width: 100%;
  margin-bottom: 8px;
  padding: 0;
  color: var(--power-modal-text);
  font-size: 14px;
  font-weight: 500;
}

html .broadcast-power-schedule-modal__day {
  position: relative;
  box-sizing: border-box;
  min-width: 40px;
  min-height: 36px;
  height: 36px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  color: var(--power-modal-text);
  background: transparent;
  box-shadow: none;
  font-size: 14px;
  font-weight: 500;
  text-transform: capitalize;
  cursor: pointer;
}

html .broadcast-power-schedule-modal__day input {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

html .broadcast-power-schedule-modal__day:hover {
  color: var(--power-modal-text);
  background: var(--power-modal-hover);
}

html .broadcast-power-schedule-modal__day:has(input:checked) {
  color: #ead7ff;
  background: #45344f;
}

html .broadcast-power-schedule-modal__day:has(input:focus-visible) {
  outline: 2px solid #a46aec;
  outline-offset: 2px;
}

html .broadcast-power-schedule-modal__footer {
  gap: 8px;
  padding-top: 8px;
  justify-content: flex-end;
}

html .broadcast-power-schedule-modal__footer .broadcast-material-footer-button {
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
}

html .broadcast-power-schedule-modal__footer .broadcast-material-footer-button:not(.broadcast-material-footer-button--primary) {
  color: var(--power-modal-text);
  background: transparent;
  border: 1px solid var(--power-modal-border);
  box-shadow: none;
}

html .broadcast-power-schedule-modal__footer .broadcast-material-footer-button--primary {
  color: #fff;
  background: #8039c7;
  border: 1px solid #8039c7;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}

html .broadcast-power-schedule-modal__footer .broadcast-material-footer-button--primary:hover {
  color: #fff;
  background: #7130b2;
  border-color: #7130b2;
}

html .broadcast-power-schedule-modal__footer .material-symbols-rounded {
  display: none;
}

html[data-theme="light"] .broadcast-power-schedule-modal {
  --power-modal-bg: #fff;
  --power-modal-surface: #f6f2f8;
  --power-modal-hover: #f2edf5;
  --power-modal-border: #e3dce9;
  --power-modal-text: #302b36;
  --power-modal-muted: #786f80;
}

html[data-theme="light"] .broadcast-power-schedule-modal__day:has(input:checked) {
  color: #502681;
  background: #eee2fa;
}

@media (max-width: 680px) {
  html .broadcast-power-schedule-modal__times { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html .broadcast-power-schedule-modal__header,
  html .broadcast-power-schedule-modal__body,
  html .broadcast-power-schedule-modal__footer { padding: 16px; }
}
.video-editor-page {
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  padding: 10px;
  box-sizing: border-box;
  color: #172030;
  overflow: hidden;
}

.video-editor-splash {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.video-editor-splash.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.video-editor-splash__logo {
  width: min(520px, 76vw);
  max-height: 40vh;
  object-fit: contain;
}

body:has(.video-editor-page) {
  overflow: hidden;
}

.app-shell:has(.video-editor-page) {
  height: 100vh;
  overflow: hidden;
  box-sizing: border-box;
}

.container:has(.video-editor-page) {
  height: 100%;
}

.video-editor-studio {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) 6px minmax(120px, var(--video-editor-timeline-height, 185px));
  gap: 6px;
}

.video-editor-topbar,
.video-editor-workspace,
.video-editor-topbar__actions,
.video-editor-menubar,
.video-editor-program__header,
.video-editor-program__header > div,
.video-editor-transport,
.video-editor-preview__meta,
.video-editor-tracks,
.video-editor-timeline,
.video-editor-caption-track {
  display: flex;
}

.video-editor-topbar {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 4px 8px;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.video-editor-menubar {
  gap: 4px;
  align-items: center;
}

.video-editor-menu {
  position: relative;
}

.video-editor-menu > button {
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #243041;
  font-weight: 800;
  cursor: pointer;
}

.video-editor-menu > button:hover,
.video-editor-menu:focus-within > button,
.video-editor-menu:hover > button {
  background: #eef6f5;
  color: #0f766e;
}

.video-editor-menu__panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 20;
  min-width: 190px;
  display: none;
  padding: 6px;
  border: 1px solid #d7dde5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
}

.video-editor-menu.is-open .video-editor-menu__panel,
.video-editor-menu:hover .video-editor-menu__panel,
.video-editor-menu:focus-within .video-editor-menu__panel {
  display: grid;
  gap: 4px;
}

.video-editor-menubar:has(.video-editor-menu.is-open) .video-editor-menu:not(.is-open) .video-editor-menu__panel {
  display: none;
}

.video-editor-menu__panel button,
.video-editor-menu__panel label,
.video-editor-menu__submit {
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  color: #243041;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.video-editor-menu__panel i {
  width: 16px;
  flex: 0 0 16px;
  margin-top: 0;
  color: #0f766e;
  text-align: center;
}

.video-editor-menu__panel button:hover,
.video-editor-menu__panel label:hover,
.video-editor-menu__submit:hover {
  background: #eef6f5;
  color: #0f766e;
}

.video-editor-flash {
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 8px;
  font-weight: 700;
}

.video-editor-flash--notice {
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.video-editor-flash--alert {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
}

.video-editor-topbar__actions {
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.video-editor-topbar__hint {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.video-editor-topbar__back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 12px;
  height: 30px;
  border-radius: 8px;
  background: rgba(100, 116, 139, 0.1);
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.video-editor-topbar__back:hover {
  background: rgba(100, 116, 139, 0.18);
  color: #334155;
}

.video-editor-link,
.video-editor-submit,
.video-editor-transport button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.video-editor-link,
.video-editor-transport button {
  background: #eef6f5;
  border-color: #cde7e3;
  color: #0f766e;
}

.video-editor-link {
  cursor: pointer;
}

.video-editor-submit {
  background: #0f766e;
  color: #fff;
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.16);
}

.video-editor-workspace {
  min-height: 0;
  gap: 0;
  align-items: stretch;
  overflow: hidden;
}

.video-editor-bin,
.video-editor-program,
.video-editor-inspector,
.video-editor-timeline-shell {
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.video-editor-bin,
.video-editor-inspector {
  width: var(--video-editor-media-width, 240px);
  flex: 0 0 var(--video-editor-media-width, 240px);
  padding: 10px;
  overflow: auto;
}

.video-editor-inspector {
  width: var(--video-editor-inspector-width, 260px);
  flex-basis: var(--video-editor-inspector-width, 260px);
}

.video-editor-resizer {
  flex: 0 0 auto;
  border-radius: 999px;
  background: transparent;
  position: relative;
  z-index: 6;
}

.video-editor-resizer::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: #cbd5e1;
  opacity: 0.65;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.video-editor-resizer:hover::before,
.video-editor-layout-resizing .video-editor-resizer::before {
  background: #0f766e;
  opacity: 1;
}

.video-editor-resizer--vertical {
  width: 8px;
  cursor: col-resize;
}

.video-editor-resizer--vertical::before {
  width: 2px;
  height: 46px;
}

.video-editor-resizer--horizontal {
  height: 6px;
  cursor: row-resize;
}

.video-editor-resizer--horizontal::before {
  width: 72px;
  height: 2px;
}

.video-editor-layout-resizing,
.video-editor-layout-resizing * {
  user-select: none;
}

.video-editor-program {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 8px;
}

.video-editor-panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  color: #0f172a;
}

.video-editor-panel-title span {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
}

.video-editor-field {
  margin-bottom: 9px;
}

.video-editor-field label {
  display: block;
  margin-bottom: 7px;
  font-weight: 800;
  color: #243041;
  font-size: 0.9rem;
}

.video-editor-input {
  width: 100%;
  min-height: 36px;
  padding: 7px 9px;
  border: 1px solid #d7dde5;
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 14px;
  background: #fff;
  color: #172030;
}

.video-editor-field--split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.video-editor-color-input {
  padding: 4px;
}

.video-editor-input:disabled {
  background: #f1f5f9;
  color: #94a3b8;
}

.video-editor-textarea {
  min-height: 64px;
  resize: vertical;
}

.video-editor-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.video-editor-dropzone {
  margin: 16px 0;
}

.video-editor-dropzone__label {
  min-height: 72px;
  padding: 10px;
  border: 2px dashed #9bcac4;
  border-radius: 8px;
  background: #f4fbfa;
  color: #0f766e;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  text-align: center;
  cursor: pointer;
}

.video-editor-dropzone__label span {
  color: #64748b;
  font-size: 0.88rem;
}

.video-editor-media-list {
  display: grid;
  gap: 8px;
}

.video-editor-media-row {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #dbe3ec;
  border-radius: 8px;
  background: #f8fafc;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  text-align: left;
  cursor: pointer;
}

.video-editor-media-row.is-selected {
  border-color: #0f766e;
  background: #ecfdf5;
}

.video-editor-media-row span {
  font-size: 0.7rem;
  font-weight: 900;
  color: #0f766e;
}

.video-editor-media-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #172030;
}

.video-editor-program__header {
  justify-content: flex-start;
  gap: 14px;
  align-items: center;
}

.video-editor-program__header > div:first-child {
  flex-direction: column;
  gap: 3px;
}

.video-editor-program__header strong {
  color: #0f172a;
}

.video-editor-program__header span {
  color: #64748b;
  font-weight: 700;
}

.video-editor-transport {
  gap: 8px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 2px;
}

.video-editor-preview__screen {
  position: relative;
  align-self: center;
  justify-self: center;
  width: min(100%, 820px);
  height: 100%;
  max-height: 100%;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  background: #020617;
  color: #cbd5e1;
}

.video-editor-preview__screen.is-portrait {
  aspect-ratio: 9 / 16;
  width: min(100%, 360px);
}

.video-editor-preview__screen.is-landscape {
  aspect-ratio: 16 / 9;
}

.video-editor-preview__media {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.video-editor-preview__media--layer {
  position: absolute;
  inset: 0;
  transition: none;
}

.video-editor-preview__transition-badge {
  position: absolute;
  right: 14px;
  top: 14px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.video-editor-preload-pool {
  position: fixed;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.video-editor-preview__caption {
  position: absolute;
  left: 50%;
  bottom: 28px;
  max-width: calc(100% - 48px);
  transform: translateX(-50%);
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.48);
  color: #fff;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
  cursor: move;
  user-select: none;
  touch-action: none;
}

.video-editor-preview__caption.is-top_center {
  top: 28px;
  bottom: auto;
}

.video-editor-preview__caption.is-center {
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -50%);
}

.video-editor-preview__caption.is-bottom_left,
.video-editor-preview__caption.is-top_left {
  left: 24px;
  transform: none;
  text-align: left;
}

.video-editor-preview__caption.is-bottom_right,
.video-editor-preview__caption.is-top_right {
  left: auto;
  right: 24px;
  transform: none;
  text-align: right;
}

.video-editor-preview__caption.is-top_left,
.video-editor-preview__caption.is-top_right {
  top: 28px;
  bottom: auto;
}

.video-editor-preview__caption.is-custom {
  right: auto;
  bottom: auto;
  transform: none;
  text-align: left;
}

.video-editor-layer-actions {
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 8px;
  align-items: end;
}

.video-editor-layer-actions button {
  min-height: 40px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font-weight: 800;
  cursor: pointer;
}

.video-editor-layer-actions button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.video-editor-timeline-shell {
  position: relative;
  min-height: 0;
  padding: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  box-sizing: border-box;
}

.video-editor-ruler {
  position: relative;
  height: 24px;
  min-width: 720px;
  border-bottom: 1px solid #dbe3ec;
}

.video-editor-ruler span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 700;
}

.video-editor-ruler span::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 18px;
  width: 1px;
  height: 10px;
  background: #cbd5e1;
}

.video-editor-project-duration {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 5px;
  min-width: 20px;
  border-radius: 999px;
  background: #00a99d;
  box-shadow: 0 0 0 1px rgba(0, 169, 157, 0.25);
}

.video-editor-project-duration span {
  left: auto;
  right: 8px;
  top: -18px;
  transform: none;
  color: #00796f;
  font-size: 0.68rem;
  white-space: nowrap;
}

.video-editor-project-duration span::before {
  display: none;
}

.video-editor-project-duration button {
  position: absolute;
  right: -7px;
  top: -5px;
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #00a99d;
  box-shadow: 0 0 0 1px #008a80;
  cursor: ew-resize;
}

.video-editor-tracks {
  min-width: 720px;
  gap: 10px;
  padding-top: 10px;
}

.video-editor-track-labels {
  width: 48px;
  flex: 0 0 48px;
  display: grid;
  grid-template-rows: 64px 34px;
  gap: 6px;
}

.video-editor-track-labels span {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 900;
}

.video-editor-track-area {
  position: relative;
  flex: 1 1 auto;
  min-width: 720px;
  display: grid;
  gap: 8px;
  width: max-content;
}

.video-editor-playhead {
  position: absolute;
  top: -8px;
  bottom: -4px;
  left: 0;
  width: 2px;
  z-index: 4;
  background: #ef4444;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.18);
  cursor: grab;
}

.video-editor-playhead::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 10px solid #ef4444;
}

.video-editor-playhead::after {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  width: 24px;
  height: 24px;
  transform: translateX(-50%);
}

.video-editor-timeline,
.video-editor-caption-track {
  min-height: 64px;
  gap: 0;
  align-items: stretch;
  padding: 6px;
  border-radius: 8px;
  background: #eef2f7;
  flex: 0 0 auto;
}

.video-editor-caption-track {
  min-height: 34px;
  background: #f8fafc;
}

.video-editor-clip,
.video-editor-transition-handle,
.video-editor-caption-block {
  min-width: 90px;
  flex-grow: 0;
  flex-shrink: 0;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #172030;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
}

.video-editor-transition-handle {
  position: absolute;
  top: 18px;
  min-width: 74px;
  width: 74px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  height: 44px;
  background: #f8fafc;
  border-style: dashed;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 900;
}

.video-editor-transition-handle.has-effect {
  background: #ecfdf5;
  border-style: solid;
  border-color: #0f766e;
  color: #0f766e;
}

.video-editor-transition-palette {
  position: absolute;
  top: 58px;
  z-index: 8;
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #cde7e3;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
}

.video-editor-transition-palette[hidden] {
  display: none !important;
}

.video-editor-transition-palette button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #d7dde5;
  border-radius: 8px;
  background: #f8fafc;
  color: #243041;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.video-editor-transition-palette button:hover {
  border-color: #0f766e;
  background: #ecfdf5;
  color: #0f766e;
}

.video-editor-clip {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
}

.video-editor-is-resizing,
.video-editor-is-resizing * {
  cursor: ew-resize !important;
  user-select: none;
}

.video-editor-is-scrubbing,
.video-editor-is-scrubbing * {
  cursor: grabbing !important;
  user-select: none;
}

.video-editor-clip.is-selected {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.16);
}

.video-editor-clip__thumb {
  width: 72px;
  height: 100%;
  object-fit: cover;
  background: #0f172a;
}

.video-editor-clip__label {
  min-width: 0;
  padding: 0 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
  font-size: 0.82rem;
}

.video-editor-clip__remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.85);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s, transform 0.15s;
  z-index: 10;
  padding: 0;
  flex-shrink: 0;
}

.video-editor-clip:hover .video-editor-clip__remove,
.video-editor-clip.is-selected .video-editor-clip__remove {
  opacity: 1;
}

.video-editor-clip__remove:hover {
  background: rgba(220, 38, 38, 1);
  transform: scale(1.15);
}

.video-editor-clip__resize {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 18px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  cursor: ew-resize;
  background: rgba(15, 118, 110, 0.16);
  transition: opacity 0.14s ease, background 0.14s ease;
}

.video-editor-clip__resize::before {
  display: block;
  color: #0f766e;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.video-editor-clip__resize--left {
  left: 0;
  border-right: 1px solid rgba(15, 118, 110, 0.28);
}

.video-editor-clip__resize--left::before {
  content: "\2194";
}

.video-editor-clip__resize--right {
  right: 0;
  border-left: 1px solid rgba(15, 118, 110, 0.28);
}

.video-editor-clip__resize--right::before {
  content: "\2194";
}

.video-editor-clip:hover .video-editor-clip__resize,
.video-editor-clip.is-selected .video-editor-clip__resize,
.video-editor-is-resizing .video-editor-clip__resize {
  opacity: 1;
}

.video-editor-clip__resize:hover {
  background: rgba(15, 118, 110, 0.28);
}

.video-editor-caption-block,
.video-editor-caption-transition {
  min-height: 30px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #e2e8f0;
  color: #64748b;
  font-weight: 800;
  font-size: 0.8rem;
}

.video-editor-caption-transition {
  position: absolute;
  top: 84px;
  min-width: 74px;
  width: 74px;
  z-index: 3;
  justify-content: center;
  padding: 0;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #0f766e;
}

.video-editor-caption-block.has-caption {
  background: #fef3c7;
  border-color: #fbbf24;
  color: #92400e;
}

@media (max-width: 1180px) {
  .video-editor-workspace {
    display: grid;
    grid-template-columns: minmax(180px, var(--video-editor-media-width, 220px)) 8px minmax(0, 1fr);
  }

  .video-editor-inspector {
    grid-column: 1 / -1;
    width: auto;
    flex-basis: auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .video-editor-resizer--vertical[data-resize-panel="inspector"] {
    display: none;
  }

  .video-editor-inspector .video-editor-panel-title {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }
}

@media (max-width: 820px) {
  .video-editor-page {
    height: auto;
    min-height: calc(100vh - 24px);
    padding: 8px;
    overflow: visible;
  }

  .video-editor-studio {
    height: auto;
    grid-template-rows: auto auto auto;
  }

  .video-editor-topbar,
  .video-editor-topbar__actions,
  .video-editor-workspace,
  .video-editor-inspector {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .video-editor-bin,
  .video-editor-inspector {
    width: auto;
    flex-basis: auto;
  }

  .video-editor-resizer {
    display: none;
  }

  .video-editor-preview__screen {
    min-height: 280px;
  }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
 .btn-conteiner-perfil {
  display: flex
  ;
      justify-content: flex-start;
      align-items: flex-start;
      flex-direction: row;
}
 .container {
    margin: 0;
  padding: 0;
  }
  .fa-solid, .fas {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-top: 10px;
  }
  


.language {
    position: fixed;
      top: 8px;
      z-index: 1002;
      right: 10;
    }
    .perfil {
      z-index: 1001;
      position: fixed;
      padding-left: 10px;
      top: 0;
    }
    .text_language{
    margin: 0;
    }

    .btn-manage_account {
        padding: 5px 10px;
        border: none;
        cursor: pointer;
        background-color: #ff0000;
        color: white;
        border-radius: 5px;
        font-size: 14px;
        margin-top: -9px;
        transition: background 0.3s ease;
        text-decoration: none;
        font-weight: bold;
        margin-right: 6px;
      }

      .btn-manage_account:focus{
        outline: none;
      }
     .btn-manage_account:hover {
        background-color: #c40000;
      }

      .btn-danger{
        padding: 5px 10px;
        border: none;
        cursor: pointer;
        background-color: #ff0000;
        color: white;
        border-radius: 5px;
        font-size: 14px;
        margin-top: -9px;
        transition: background 0.3s ease;
        text-decoration: none;
        font-weight: bold;

      }

      .btn-danger:focus{
        outline: none;
      }
      .btn-danger:hover{
        background-color: #c40000;
      }

      .back-link {
        color: #000000;
        text-decoration: none;
        background-color: white;
        padding: 38px;
        border-radius: 30px;
        width: max-content;
        box-shadow: 0px 1px 12px 5px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        transform: scale(0.90);
    }

    .btn-nevegation{
        width: -webkit-fill-available;
    display: flex
;
    text-align: center;
    justify-content: space-evenly;
    position: relative;
    top: 43px;
    }

.desktop-agents-page {
  --desktop-agent-card: rgba(18, 24, 44, .84);
  --desktop-agent-card-strong: rgba(8, 12, 26, .58);
  --desktop-agent-border: rgba(148, 163, 184, .18);
  --desktop-agent-text: #ffffff;
  --desktop-agent-muted: #aeb7cf;
  --desktop-agent-input: rgba(8, 12, 26, .58);
  --desktop-agent-input-border: rgba(148, 163, 184, .24);
  --desktop-agent-icon: #c084fc;
  --desktop-agent-shadow: 0 24px 70px rgba(0, 0, 0, .26);
  width: min(100%, 1120px);
  margin: 0 auto 48px;
  padding: 28px;
  display: grid;
  gap: 16px;
  color: var(--desktop-agent-text);
  box-sizing: border-box;
}

.desktop-agents-page i {
  width: 1.15em;
  height: 1.15em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.desktop-agent-card,
.desktop-agent-token,
.desktop-agent-overview article {
  border: 1px solid var(--desktop-agent-border);
  border-radius: 14px;
  background: var(--desktop-agent-card);
  box-shadow: var(--desktop-agent-shadow);
  color: var(--desktop-agent-text);
  backdrop-filter: blur(18px);
}

.desktop-agent-card {
  padding: 22px;
}

.desktop-agent-token {
  padding: 16px;
  display: grid;
  grid-template-columns: 46px 1fr minmax(280px, auto);
  gap: 14px;
  align-items: center;
  border-color: rgba(168, 85, 247, .42);
}

.desktop-agent-token__icon,
.desktop-agent-card__head > span {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #c084fc;
  background: rgba(139, 47, 242, .16);
}

.desktop-agent-token p,
.desktop-agent-card__head p,
.desktop-agent-row small,
.desktop-agent-row span,
.desktop-agent-empty {
  margin: 0;
  color: var(--desktop-agent-muted);
}

.desktop-agent-token code {
  display: block;
  padding: 12px;
  border: 1px solid var(--desktop-agent-border);
  border-radius: 10px;
  background: var(--desktop-agent-card-strong);
  color: var(--desktop-agent-text);
  overflow-wrap: anywhere;
}

.desktop-agent-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.desktop-agent-overview article {
  min-height: 88px;
  padding: 16px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 4px 12px;
  align-items: center;
}

.desktop-agent-overview i {
  grid-row: span 2;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  color: var(--desktop-agent-icon);
  background: rgba(139, 47, 242, .14);
}

.desktop-agent-overview span {
  color: var(--desktop-agent-muted);
  font-size: 13px;
  font-weight: 800;
}

.desktop-agent-overview strong {
  font-size: 26px;
  line-height: 1;
}

.desktop-agent-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.desktop-agent-card__head h2 {
  margin: 0 0 4px;
  color: var(--desktop-agent-text);
  font-size: 19px;
  letter-spacing: 0;
}

.desktop-agent-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: end;
}

.desktop-agent-form label {
  display: grid;
  gap: 8px;
}

.desktop-agent-form label > span {
  color: var(--desktop-agent-text);
  font-size: 13px;
  font-weight: 850;
}

.desktop-agent-input {
  min-height: 50px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--desktop-agent-input-border);
  border-radius: 10px;
  background: var(--desktop-agent-input);
}

.desktop-agent-input i {
  color: #9ca8c3;
}

.desktop-agent-input input {
  width: 100%;
  min-width: 0;
  height: 48px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--desktop-agent-text);
  font: inherit;
  font-weight: 750;
}

.desktop-agent-input:focus-within {
  border-color: rgba(168, 85, 247, .62);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, .12);
}

.desktop-agent-list {
  display: grid;
  gap: 10px;
}

.desktop-agent-row {
  display: grid;
  grid-template-columns: auto minmax(180px, 1.4fr) minmax(120px, 1fr) minmax(120px, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--desktop-agent-border);
  border-radius: 10px;
  background: var(--desktop-agent-card-strong);
}

.desktop-agent-row__main strong,
.desktop-agent-row__meta strong {
  display: block;
  color: var(--desktop-agent-text);
  overflow-wrap: anywhere;
}

.desktop-agent-row__meta span {
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.desktop-agent-row__status {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 0 6px rgba(239, 68, 68, .12);
}

.desktop-agent-row__status.is-online {
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, .14);
}

.desktop-agent-row__status.is-pending {
  background: #f59e0b;
  box-shadow: 0 0 0 6px rgba(245, 158, 11, .14);
}

.desktop-agent-row--pending {
  border-color: rgba(245, 158, 11, .28);
}

.desktop-agent-icon-btn,
.desktop-agent-action {
  min-height: 42px;
  border: 1px solid var(--desktop-agent-border);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 14px;
  color: var(--desktop-agent-text);
  background: var(--desktop-agent-card-strong);
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.desktop-agent-icon-btn {
  width: 42px;
  padding: 0;
}

.desktop-agent-icon-btn:hover,
.desktop-agent-action:hover {
  transform: translateY(-1px);
}

.desktop-agent-action--primary {
  border-color: rgba(168, 85, 247, .55);
  color: #fff;
  background: #8b2ff2;
  box-shadow: 0 16px 34px rgba(139, 47, 242, .32);
}

.desktop-agent-icon-btn--approve {
  border-color: rgba(34, 197, 94, .32);
  color: #86efac;
}

.desktop-agent-icon-btn--delete {
  border-color: rgba(248, 113, 113, .34);
  color: #fecaca;
}

.desktop-agent-empty {
  min-height: 90px;
  border: 1px dashed var(--desktop-agent-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--desktop-agent-card-strong);
}

.desktop-agent-errors {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(248, 113, 113, .42);
  border-radius: 12px;
  color: #fecaca;
  background: rgba(127, 29, 29, .32);
}

html[data-theme="light"] .desktop-agents-page {
  --desktop-agent-card: rgba(255, 255, 255, .88);
  --desktop-agent-card-strong: rgba(255, 255, 255, .76);
  --desktop-agent-border: rgba(15, 23, 42, .12);
  --desktop-agent-text: #111827;
  --desktop-agent-muted: #64748b;
  --desktop-agent-input: rgba(255, 255, 255, .82);
  --desktop-agent-input-border: rgba(15, 23, 42, .13);
  --desktop-agent-shadow: 0 24px 70px rgba(15, 23, 42, .10);
}

html[data-theme="light"] .desktop-agent-input i {
  color: #64748b;
}

html[data-theme="light"] .desktop-agent-input input::placeholder {
  color: #94a3b8;
}

html[data-theme="light"] .desktop-agent-errors {
  color: #991b1b;
  background: rgba(254, 242, 242, .9);
  border-color: rgba(248, 113, 113, .42);
}

@media (max-width: 980px) {
  .desktop-agents-page {
    padding: 18px;
  }

  .desktop-agent-token,
  .desktop-agent-form,
  .desktop-agent-row {
    grid-template-columns: 1fr;
  }

  .desktop-agent-row__status {
    justify-self: start;
  }
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .desktop-agents-page {
    --desktop-agent-card: rgba(255, 255, 255, .88);
    --desktop-agent-card-strong: rgba(255, 255, 255, .76);
    --desktop-agent-border: rgba(15, 23, 42, .12);
    --desktop-agent-text: #111827;
    --desktop-agent-muted: #64748b;
    --desktop-agent-input: rgba(255, 255, 255, .82);
    --desktop-agent-input-border: rgba(15, 23, 42, .13);
    --desktop-agent-shadow: 0 24px 70px rgba(15, 23, 42, .10);
  }

  :root:not([data-theme="dark"]) .desktop-agent-input i {
    color: #64748b;
  }

  :root:not([data-theme="dark"]) .desktop-agent-input input::placeholder {
    color: #94a3b8;
  }

  :root:not([data-theme="dark"]) .desktop-agent-errors {
    color: #991b1b;
    background: rgba(254, 242, 242, .9);
    border-color: rgba(248, 113, 113, .42);
  }
}

@media (max-width: 680px) {
  .desktop-agents-page {
    padding: 14px;
  }

  .desktop-agent-overview {
    grid-template-columns: 1fr;
  }

  .desktop-agent-card {
    padding: 18px;
  }
}
