/* STAGE 1PM - PROTÓTIPO V4 */

:root {
  --bg: #f6f8f1;
  --card: #ffffff;
  --text: #171a1f;
  --muted: #7d8490;
  --line: #e7ebdf;
  --lime: #c7ff00;
  --blue: #9eeaff;
  --dark: #111318;
  --shadow: 0 24px 80px rgba(23, 26, 31, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(158, 234, 255, 0.30), transparent 36%),
    radial-gradient(circle at top right, rgba(199, 255, 0, 0.38), transparent 32%),
    var(--bg);
}

button, input, textarea, select { font-family: inherit; }
.hidden { display: none !important; }

.app { min-height: 100vh; padding: 28px; }
.screen { min-height: calc(100vh - 56px); }

.entry-screen { display: grid; place-items: center; }

.entry-card {
  width: 100%;
  max-width: 520px;
  padding: 36px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.84);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.8);
  backdrop-filter: blur(18px);
}

.brand-badge {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--dark);
  color: var(--lime);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  margin-bottom: 24px;
}

h1, h2, h3 { letter-spacing: -.03em; }
.entry-card h1, .section-title-row h1, .admin-hero h1 {
  margin: 6px 0 10px;
  font-size: 40px;
  line-height: 1.05;
}

.entry-card p, .helper-text, .share-card p {
  color: var(--muted);
  line-height: 1.55;
}

.demo-note, .notice {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  background: #f9fbf4;
  border-radius: 18px;
  color: #535966;
  font-size: 12px;
}

.error-box {
  margin-top: 14px;
  background: #ffe8e8;
  color: #8a1717;
  border: 1px solid #ffc7c7;
  padding: 12px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 700;
}

.form-group { margin-bottom: 16px; }

label {
  display: block;
  font-size: 13px;
  font-weight: 900;
  color: #424751;
  margin-bottom: 8px;
}

input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fbfcf7;
  border-radius: 16px;
  padding: 14px 15px;
  outline: none;
  color: var(--text);
}

textarea { min-height: 92px; resize: vertical; }

input:focus, textarea:focus, select:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 4px rgba(199,255,0,.22);
}

.primary-btn, .secondary-btn {
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 14px 18px;
  font-weight: 900;
  transition: .2s ease;
}

.primary-btn {
  background: var(--lime);
  color: var(--dark);
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(199,255,0,.35);
}

.secondary-btn {
  background: #f1f4ea;
  color: var(--dark);
}

.full { width: 100%; display: inline-flex; justify-content: center; text-decoration: none; }

.ghost-back {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
  padding: 0;
  margin-bottom: 10px;
}

/* HEADER */

.admin-screen, .live-room { max-width: 1400px; margin: 0 auto; }

.admin-topbar, .room-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.room-brand { display: flex; align-items: center; gap: 16px; }

.logo-mark {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--lime));
  font-weight: 900;
  color: var(--dark);
}

.eyebrow {
  color: var(--muted);
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.admin-topbar h2, .room-header h2 { margin: 4px 0 0; font-size: 26px; }
.admin-actions-top, .room-header-actions { display: flex; align-items: center; gap: 12px; }

/* ADMIN LAYOUT */

.admin-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 22px;
}

.admin-sidebar, .config-card, .admin-hero, .metric-card, .event-card, .video-card, .side-panel, .offer-inline, .share-card, .admin-status-card {
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(255,255,255,.84);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.admin-sidebar {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: start;
  position: sticky;
  top: 28px;
}

.admin-menu {
  border: none;
  background: transparent;
  text-align: left;
  padding: 14px 15px;
  border-radius: 16px;
  cursor: pointer;
  font-weight: 900;
  color: var(--muted);
}

.admin-menu.active {
  background: var(--lime);
  color: var(--dark);
}

.main-tab, .event-tab { display: none; }
.main-tab.active, .event-tab.active { display: block; }

.admin-hero {
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  background:
    radial-gradient(circle at left, rgba(158,234,255,.45), transparent 38%),
    radial-gradient(circle at right, rgba(199,255,0,.55), transparent 38%),
    rgba(255,255,255,.84);
}

.admin-hero p { max-width: 620px; color: var(--muted); }

.admin-status-card {
  min-width: 210px;
  padding: 18px;
  background: var(--dark);
  color: white;
}

.admin-status-card span {
  color: var(--lime);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-status-card strong { display: block; font-size: 24px; margin-top: 8px; }

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 16px;
}

.metric-card, .config-card { padding: 20px; }

.metric-card span {
  display: block;
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}

.metric-card strong {
  display: block;
  font-size: 34px;
  margin: 10px 0 18px;
}

.metric-card button, .link-box button {
  border: none;
  background: var(--lime);
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 900;
  cursor: pointer;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.event-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
}

.event-card {
  padding: 20px;
  cursor: pointer;
  transition: .2s ease;
}

.event-card:hover { transform: translateY(-2px); }
.event-card h3 { margin: 10px 0 8px; font-size: 24px; }
.event-card p { color: var(--muted); margin: 0 0 18px; line-height: 1.5; }

.event-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: #4c535e;
}

.status-pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 8px 12px;
  background: #f1f4ea;
  color: #59606b;
  font-size: 12px;
  font-weight: 900;
}

.status-pill.live { background: var(--lime); color: var(--dark); }

.inner-event-layout { grid-template-columns: 210px minmax(0,1fr); }

.config-card { max-width: 900px; }
.config-card h3 { margin: 0 0 18px; font-size: 30px; }
.config-card input, .config-card textarea, .config-card select { margin-bottom: 14px; }

.check {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 10px 0;
}

.check input { width: auto; margin: 0; }

.two-buttons, .support-actions, .admin-chat-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.link-box {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  background: #fbfcf7;
  border-radius: 16px;
  padding: 11px;
  margin-bottom: 14px;
}

.link-box span {
  color: #464c56;
  font-weight: 900;
  word-break: break-all;
}

/* LIVE ROOM */

.room-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) 410px;
  gap: 22px;
}

.video-card { padding: 14px; }

.video-placeholder {
  min-height: 540px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 30% 20%, rgba(158,234,255,.35), transparent 28%),
    radial-gradient(circle at 70% 80%, rgba(199,255,0,.35), transparent 28%),
    #121419;
  display: grid;
  place-items: center;
  align-content: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.video-placeholder.admin-video { min-height: 430px; }

.youtube-tag {
  position: absolute;
  left: 18px;
  top: 18px;
  background: #ff0033;
  color: white;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 900;
}

.play-icon {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--dark);
  display: grid;
  place-items: center;
  font-size: 30px;
  margin-bottom: 18px;
}

.audience-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow);
  font-weight: 900;
}

.live-dot {
  width: 9px;
  height: 9px;
  background: #ff3b3b;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(255,59,59,.12);
}

.offer-inline {
  margin-top: 18px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.offer-inline span { display: block; color: var(--muted); font-size: 13px; font-weight: 800; }
.offer-inline strong { font-size: 20px; }

.offer-inline a {
  background: var(--dark);
  color: var(--lime);
  padding: 13px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
}

/* SIDE PANEL */

.side-panel {
  overflow: hidden;
  min-height: 650px;
  display: flex;
  flex-direction: column;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  padding: 10px;
  gap: 8px;
  border-bottom: 1px solid var(--line);
}

.admin-side-preview .tabs { grid-template-columns: repeat(2,1fr); }

.tab-btn {
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 12px;
  font-weight: 900;
  cursor: pointer;
  color: var(--muted);
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.tab-btn.active { background: var(--lime); color: var(--dark); }

#participantTabs .tab-btn:not(.active):hover,
.admin-preview-tabs .tab-btn:not(.active):hover {
  background: rgba(199,255,0,.14);
  color: var(--dark);
  box-shadow: 0 8px 20px rgba(167,230,239,.18);
  cursor: pointer;
}

.tab-content, .admin-preview-tab {
  display: none;
  padding: 18px;
  flex: 1;
}

.tab-content.active, .admin-preview-tab.active {
  display: flex;
  flex-direction: column;
}

.messages {
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 500px;
}

.admin-messages { max-height: 520px; }

.message {
  position: relative;
  background: #f7f9f1;
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 16px;
}

.message strong { display: block; font-size: 13px; margin-bottom: 5px; }
.message p { margin: 0; color: #343943; line-height: 1.4; }

.support-public { background: #111318; color: white; }
.support-public p { color: #dce3d1; }

.private-message { background: #eefcff; border-color: #cceff5; }

.message-menu-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #edf1e6;
  cursor: pointer;
  font-weight: 900;
}

.message-actions {
  position: absolute;
  right: 8px;
  top: 40px;
  z-index: 80;
  display: none;
  min-width: 160px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 14px;
  padding: 8px;
}

.message-actions.open { display: grid; gap: 6px; }

.message-actions.open-up {
  top: auto;
  bottom: 40px;
}

.message-actions button {
  border: none;
  border-radius: 10px;
  padding: 9px;
  background: #f7f9f1;
  cursor: pointer;
  text-align: left;
  font-weight: 800;
}

.chat-composer { display: flex; gap: 8px; margin-top: 14px; }
.chat-composer input { flex: 1; }

.chat-composer button, .support-actions button {
  border: none;
  border-radius: 999px;
  padding: 0 16px;
  font-weight: 900;
  background: var(--lime);
  cursor: pointer;
}

.support-participant-box h3 { margin-top: 0; }
.private-answers { margin-top: 14px; display: grid; gap: 10px; }

.support-admin-grid { display: grid; grid-template-columns: 180px 1fr; gap: 18px; }
.support-admin-grid.compact { grid-template-columns: 120px 1fr; gap: 14px; }

.support-user {
  display: block;
  width: 100%;
  border: none;
  background: #f2f5ec;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  font-weight: 800;
  text-align: left;
}

.support-user.active { background: var(--dark); color: var(--lime); }

.admin-live-preview {
  display: grid;
  grid-template-columns: minmax(0,1fr) 410px;
  gap: 22px;
}

/* OFFER */

.offer-content { text-align: center; }

.offer-label {
  display: inline-flex;
  background: var(--dark);
  color: var(--lime);
  padding: 9px 13px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
}

.offer-content h3 { font-size: 30px; margin: 18px 0 8px; }
.offer-content p { color: var(--muted); line-height: 1.5; }

.offer-image {
  min-height: 180px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(158,234,255,.65), transparent 35%),
    radial-gradient(circle at bottom right, rgba(199,255,0,.75), transparent 35%),
    #15181e;
  color: white;
  display: grid;
  place-items: center;
  font-size: 42px;
  font-weight: 900;
  letter-spacing: .08em;
  margin: 18px 0;
  overflow: hidden;
}

.offer-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.price { font-size: 26px; color: var(--dark) !important; font-weight: 900; }

/* RESPONSIVO */

@media (max-width: 1120px) {
  .admin-layout, .inner-event-layout, .room-grid, .admin-live-preview, .metrics-grid, .event-cards-grid {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    flex-direction: row;
    overflow: auto;
  }

  .admin-menu { white-space: nowrap; }

  .admin-hero, .admin-topbar, .room-header, .section-title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-actions-top { width: 100%; justify-content: space-between; }
}

@media (max-width: 720px) {
  .app { padding: 14px; }
  .entry-card { padding: 24px; }
  .entry-card h1, .admin-hero h1, .section-title-row h1 { font-size: 31px; }
  .video-placeholder { min-height: 260px; }
  .side-panel { min-height: 520px; }
  .offer-inline { flex-direction: column; align-items: flex-start; }
  .support-admin-grid, .support-admin-grid.compact { grid-template-columns: 1fr; }
}


/* V5 - Ajustes de layout do editor do evento */

#editorEventTitle {
  font-size: 34px;
  line-height: 1.08;
  max-width: 980px;
}

.event-top-menu {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px;
  margin-bottom: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(255,255,255,.84);
  box-shadow: var(--shadow);
}

.event-top-menu .admin-menu {
  text-align: center;
  white-space: nowrap;
}

.event-editor-content {
  width: 100%;
}

.event-editor-content .config-card {
  max-width: none;
  width: 100%;
}

.wide-card {
  max-width: none !important;
}

.admin-live-preview {
  grid-template-columns: minmax(0, 1fr) 410px;
  align-items: start;
}

.admin-live-preview .video-card {
  width: 100%;
}

.video-placeholder,
.video-placeholder.admin-video {
  aspect-ratio: 16 / 9;
  min-height: unset;
  height: auto;
}

.admin-preview-main {
  min-width: 0;
}

.side-panel.admin-side-preview {
  min-height: auto;
  height: 100%;
}

.logo-mark.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

@media (max-width: 1120px) {
  #editorEventTitle {
    font-size: 30px;
  }

  .event-top-menu {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .admin-live-preview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  #editorEventTitle {
    font-size: 26px;
  }
}


/* V6 - Sidebar recolhível + chat admin + suporte expandido */

.sidebar-toggle {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 16px;
  background: rgba(255,255,255,.86);
  box-shadow: var(--shadow);
  cursor: pointer;
  font-weight: 900;
  font-size: 18px;
  color: var(--dark);
}

.admin-screen.sidebar-collapsed .admin-layout {
  grid-template-columns: 0 minmax(0, 1fr);
}

.admin-screen.sidebar-collapsed .main-sidebar {
  width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  opacity: 0;
}

.admin-screen.sidebar-collapsed .admin-content {
  min-width: 0;
}

.admin-screen.sidebar-collapsed .event-editor-content,
.admin-screen.sidebar-collapsed .event-top-menu,
.admin-screen.sidebar-collapsed .admin-live-preview {
  width: 100%;
}

.admin-chat-composer {
  display: flex;
  gap: 8px;
  padding-top: 14px;
  margin-top: auto;
  border-top: 1px solid var(--line);
}

.admin-chat-composer input {
  flex: 1;
}

.admin-chat-composer button,
.support-reply-bar button {
  border: none;
  border-radius: 999px;
  padding: 0 16px;
  font-weight: 900;
  background: var(--lime);
  cursor: pointer;
}

#sendSupportRequestBtn,
#replyPrivateBtn {
  background: linear-gradient(90deg, #A7E6EF 0%, #B6EEC8 50%, #B8E86A 100%);
  color: var(--dark);
  box-shadow: 0 10px 24px rgba(184, 232, 106, .22);
}

#sendSupportRequestBtn:hover,
#replyPrivateBtn:hover {
  box-shadow: 0 12px 28px rgba(167, 230, 239, .26), 0 10px 24px rgba(184, 232, 106, .2);
}

.admin-preview-tab {
  min-height: 560px;
}

#adminPreviewChat.active {
  display: flex;
  flex-direction: column;
}

.admin-messages {
  max-height: none;
  min-height: 450px;
}

.support-console {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  height: 100%;
  min-height: 560px;
}

.support-people {
  border-right: 1px solid var(--line);
  padding-right: 14px;
}

.support-people h4 {
  margin: 0 0 14px;
}

.support-thread {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 560px;
}

.support-thread-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.support-thread-header h4 {
  margin: 4px 0 0;
  font-size: 20px;
}

.support-name-field {
  width: 220px;
}

.support-name-field label {
  font-size: 11px;
  margin-bottom: 6px;
}

.support-name-field input {
  padding: 10px 12px;
  border-radius: 14px;
}

.support-thread-messages {
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 0;
  min-height: 360px;
}

.support-reply-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}

.support-reply-bar input {
  min-width: 0;
}

.admin-side-preview {
  min-height: 640px;
}

.admin-live-preview {
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, .85fr);
}

@media (max-width: 1120px) {
  .admin-screen.sidebar-collapsed .admin-layout,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-screen.sidebar-collapsed .main-sidebar {
    display: none;
  }

  .support-console {
    grid-template-columns: 1fr;
  }

  .support-people {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-bottom: 10px;
    display: flex;
    gap: 8px;
    overflow: auto;
  }

  .support-people h4 {
    display: none;
  }

  .support-user {
    white-space: nowrap;
  }

  .support-thread-header {
    flex-direction: column;
  }

  .support-name-field {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .support-reply-bar {
    grid-template-columns: 1fr;
  }

  .support-reply-bar button {
    padding: 12px;
  }
}


/* V7 - Ajustes finos: salvar dentro do bloco, scrolls e oferta */

.card-save-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.card-save-row .primary-btn {
  min-width: 150px;
}

.admin-live-preview {
  height: calc(100vh - 250px);
  min-height: 620px;
  max-height: 760px;
  overflow: hidden;
}

.admin-preview-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.admin-preview-main .video-card {
  flex: 0 0 auto;
}

.admin-side-preview {
  height: 100%;
  min-height: 0 !important;
  overflow: hidden;
}

.admin-preview-tab {
  min-height: 0 !important;
  height: 100%;
  overflow: hidden;
}

#adminPreviewChat.active {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.admin-messages {
  flex: 1;
  min-height: 0 !important;
  max-height: none !important;
  overflow-y: auto;
  padding-right: 4px;
}

.admin-chat-composer {
  flex: 0 0 auto;
  background: rgba(255,255,255,.84);
}

.support-console {
  height: 100%;
  min-height: 0 !important;
  overflow: hidden;
}

.support-people {
  max-height: 100%;
  overflow-y: auto;
  min-height: 0;
}

.support-thread {
  height: 100%;
  min-height: 0 !important;
  overflow: hidden;
}

.support-thread-messages {
  flex: 1;
  min-height: 0 !important;
  max-height: none;
  overflow-y: auto;
  padding-right: 4px;
}

.support-reply-bar {
  flex: 0 0 auto;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: stretch;
  background: rgba(255,255,255,.84);
}

.support-reply-bar input {
  width: 100%;
  height: 44px;
}

.support-reply-bar button {
  min-width: 82px;
}

#participantTabs {
  grid-template-columns: repeat(2, 1fr);
}

#participantTabs.has-offer {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1120px) {
  .admin-live-preview {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .admin-side-preview {
    min-height: 620px !important;
  }

  .support-people {
    max-height: 120px;
  }
}


/* V8 - Oferta também aparece na prévia do admin */

.admin-preview-tabs {
  grid-template-columns: repeat(2, 1fr);
}

.admin-preview-tabs.has-offer {
  grid-template-columns: repeat(3, 1fr);
}

#adminPreviewOffer.active {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

#adminPreviewOffer .offer-content {
  width: 100%;
}

#adminPreviewOffer .offer-image {
  min-height: 180px;
}

#adminOfferBannerInline {
  margin-top: 16px;
  margin-bottom: 0;
}


/* V9 - Ajustes da sala do participante */

.participant-room-header {
  margin-bottom: 8px;
}

.participant-room-brand {
  align-items: center;
}

.participant-room-brand h2 {
  margin: 0 !important;
  font-size: 26px;
  line-height: 1.1;
}

.room-logo-free {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: var(--dark);
  flex: 0 0 auto;
  overflow: visible;
}

.room-logo-free.has-image {
  background: transparent !important;
}

.room-logo-free.has-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
  display: block;
}

.participant-video-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.participant-video-topline .audience-badge {
  margin-left: auto;
}

.participant-video-placeholder .youtube-tag {
  display: none;
}

#supportTab.active {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.support-messages {
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  padding-right: 4px;
}

.support-composer {
  flex: 0 0 auto;
}

.support-composer input {
  flex: 1;
}

@media (max-width: 720px) {
  .participant-room-brand h2 {
    font-size: 22px;
  }

  .participant-video-topline {
    margin-top: 8px;
  }
}


/* V10 - Alinhamento sala participante */

.participant-room-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 22px;
  align-items: center;
  margin-bottom: 14px;
}

.participant-room-brand {
  min-width: 0;
}

.participant-room-brand h2 {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.participant-room-header .audience-badge {
  justify-self: end;
  align-self: center;
}

.room-logo-free {
  width: 78px;
  height: 78px;
  font-size: 18px;
}

.room-grid {
  align-items: start;
}

.live-room .video-card,
.live-room .side-panel {
  height: clamp(520px, 58vh, 650px);
}

.live-room .video-card {
  display: flex;
  padding: 14px;
}

.live-room .video-placeholder {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

.live-room .side-panel {
  min-height: 0;
}

.live-room .tab-content.active {
  min-height: 0;
  height: 100%;
}

.live-room .messages {
  max-height: none;
  min-height: 0;
}

.live-room #chatTab.active,
.live-room #supportTab.active {
  display: flex;
  flex-direction: column;
}

.live-room #chatMessages,
.live-room .support-messages {
  flex: 1;
  overflow-y: auto;
}

.live-room .chat-composer {
  flex: 0 0 auto;
}

@media (max-width: 1120px) {
  .participant-room-header {
    grid-template-columns: 1fr;
  }

  .participant-room-header .audience-badge {
    justify-self: start;
  }

  .participant-room-brand h2 {
    white-space: normal;
  }

  .live-room .video-card,
  .live-room .side-panel {
    height: auto;
    min-height: 520px;
  }

  .live-room .video-card {
    height: auto;
  }

  .live-room .video-placeholder {
    aspect-ratio: 16 / 9;
    height: auto;
  }
}

@media (max-width: 720px) {
  .room-logo-free {
    width: 62px;
    height: 62px;
  }

  .participant-room-brand {
    gap: 12px;
  }

  .participant-room-brand h2 {
    font-size: 21px;
  }

  .live-room .side-panel {
    min-height: 520px;
  }
}


/* V11 - Contador alinhado ao vídeo, chat maior e logo maior */

.participant-room-header {
  display: block;
  margin-bottom: 10px;
}

.participant-room-brand {
  max-width: calc(100% - 0px);
}

.participant-room-brand h2 {
  max-width: min(980px, 72vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.participant-video-topline,
.admin-video-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 14px;
}

.participant-video-topline .audience-badge,
.admin-video-topline .audience-badge {
  margin-left: auto;
}

.room-logo-free {
  width: 120px;
  height: 86px;
  font-size: 22px;
}

.room-logo-free.has-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.live-room .video-card {
  height: clamp(520px, 58vh, 650px);
}

.live-room .side-panel {
  height: clamp(640px, 72vh, 790px);
  min-height: 0;
}

.live-room .video-placeholder {
  height: 100%;
}

.live-room .offer-inline {
  min-height: 82px;
}

.admin-video-topline {
  padding: 0 2px;
}

.admin-video-topline .audience-badge {
  box-shadow: none;
}

@media (max-width: 1120px) {
  .participant-room-brand h2 {
    max-width: 100%;
    white-space: normal;
  }

  .room-logo-free {
    width: 92px;
    height: 70px;
  }

  .live-room .video-card,
  .live-room .side-panel {
    height: auto;
    min-height: 520px;
  }

  .live-room .video-placeholder {
    aspect-ratio: 16 / 9;
    height: auto;
  }
}

@media (max-width: 720px) {
  .room-logo-free {
    width: 78px;
    height: 60px;
  }
}


/* V12 - Topo da sala do participante alinhado com vídeo + chat */

.live-room {
  max-width: 1440px;
}

.participant-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 22px;
  align-items: center;
  margin-bottom: 16px;
}

.participant-counter-cell {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.participant-room-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 22px;
}

.participant-room-brand h2 {
  margin: 0 !important;
  max-width: 100%;
  font-size: 28px;
  line-height: 1.08;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-logo-free {
  width: 150px;
  height: 96px;
  font-size: 24px;
  flex: 0 0 150px;
}

.room-logo-free.has-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.live-room .room-grid {
  grid-template-columns: minmax(0, 1fr) 410px;
  align-items: start;
}

.live-room .video-card,
.live-room .side-panel {
  margin-top: 0;
}

/* cancela a margem do topline antigo quando existir por cache */
.participant-video-topline {
  display: none !important;
}

@media (max-width: 1120px) {
  .participant-top-grid,
  .live-room .room-grid {
    grid-template-columns: 1fr;
  }

  .participant-counter-cell {
    justify-content: flex-start;
  }

  .participant-room-brand h2 {
    white-space: normal;
  }

  .room-logo-free {
    width: 112px;
    height: 78px;
    flex-basis: 112px;
  }
}

@media (max-width: 720px) {
  .participant-room-brand {
    gap: 14px;
  }

  .room-logo-free {
    width: 88px;
    height: 64px;
    flex-basis: 88px;
  }

  .participant-room-brand h2 {
    font-size: 22px;
  }
}


/* V13 - Contador alinhado ao final da coluna do vídeo, não do chat */

.participant-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 22px;
  align-items: center;
  margin-bottom: 16px;
}

.participant-video-header {
  min-width: 0;
  min-height: 96px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.participant-chat-header-spacer {
  min-height: 1px;
}

.participant-video-header .audience-badge {
  justify-self: end;
  white-space: nowrap;
}

.participant-room-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 22px;
}

.participant-room-brand h2 {
  margin: 0 !important;
  max-width: 100%;
  font-size: 28px;
  line-height: 1.08;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.room-logo-free {
  width: 160px;
  height: 98px;
  font-size: 24px;
  flex: 0 0 160px;
}

.room-logo-free.has-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.live-room .room-grid {
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 22px;
  align-items: start;
}

@media (max-width: 1120px) {
  .participant-top-grid,
  .live-room .room-grid {
    grid-template-columns: 1fr;
  }

  .participant-video-header {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .participant-video-header .audience-badge {
    justify-self: start;
  }

  .room-logo-free {
    width: 120px;
    height: 82px;
    flex-basis: 120px;
  }
}

@media (max-width: 720px) {
  .participant-room-brand {
    gap: 14px;
  }

  .room-logo-free {
    width: 92px;
    height: 66px;
    flex-basis: 92px;
  }

  .participant-room-brand h2 {
    font-size: 22px;
  }
}


/* V14 - Título do participante com quebra em até 2 linhas sem desalinhar o vídeo */

.participant-video-header {
  min-height: 98px;
  max-height: 98px;
  overflow: hidden;
}

.participant-room-brand {
  min-height: 98px;
  align-items: center;
}

.participant-room-brand h2 {
  white-space: normal !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden !important;
  text-overflow: ellipsis;
  line-height: 1.15;
  max-height: 65px;
}

.participant-video-header .audience-badge {
  align-self: center;
}

@media (max-width: 1120px) {
  .participant-video-header {
    max-height: none;
    min-height: 0;
  }

  .participant-room-brand {
    min-height: 0;
  }

  .participant-room-brand h2 {
    max-height: none;
  }
}


/* V15 - Tipografia mais minimalista e refinada */

body {
  font-size: 14px;
}

.entry-card h1,
.admin-hero h1,
.section-title-row h1 {
  font-size: 32px !important;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.admin-topbar h2,
.room-header h2 {
  font-size: 22px !important;
}

#editorEventTitle {
  font-size: 28px !important;
  line-height: 1.12;
}

.config-card h3 {
  font-size: 24px !important;
}

.event-card h3 {
  font-size: 20px !important;
  line-height: 1.16;
}

.metric-card strong {
  font-size: 28px !important;
}

.offer-content h3 {
  font-size: 24px !important;
}

.price {
  font-size: 22px !important;
}

.participant-room-brand h2 {
  font-size: 24px !important;
  line-height: 1.15;
}

label,
.admin-menu,
.metric-card span,
.event-card-footer,
.status-pill,
.eyebrow {
  font-size: 12px;
}

.primary-btn,
.secondary-btn,
.metric-card button,
.link-box button,
.chat-composer button,
.support-actions button,
.support-reply-bar button,
.admin-chat-composer button {
  font-size: 13px;
}

input,
textarea,
select {
  font-size: 13px;
}

.message strong {
  font-size: 12px;
}

.message p {
  font-size: 14px;
}

.event-card {
  max-width: 320px;
}

.event-cards-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 320px));
}

.admin-sidebar {
  width: 210px;
}

.admin-layout {
  grid-template-columns: 210px minmax(0, 1fr);
}

.logo-mark {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  font-size: 14px;
}

.admin-topbar {
  margin-bottom: 18px;
}

.section-title-row {
  margin-bottom: 18px;
}

.config-card,
.metric-card,
.event-card {
  padding: 18px;
}

@media (max-width: 720px) {
  .entry-card h1,
  .admin-hero h1,
  .section-title-row h1 {
    font-size: 27px !important;
  }

  #editorEventTitle {
    font-size: 24px !important;
  }

  .participant-room-brand h2 {
    font-size: 20px !important;
  }
}


/* V16 - Suporte privado clicável no painel admin */

.support-user {
  transition: .18s ease;
}

.support-thread-header h4 {
  word-break: break-word;
}

.message-actions button[data-action="private"] {
  background: var(--lime);
  color: var(--dark);
}

.support-thread-messages .message {
  animation: supportPop .18s ease;
}

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


/* V17 - Contadores separados no painel admin */

.admin-audience-panel {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}

.admin-audience-card {
  min-width: 132px;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: 0 10px 30px rgba(23,26,31,.06);
}

.admin-audience-card span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.admin-audience-card strong {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-top: 3px;
  color: var(--dark);
  font-size: 14px;
  font-weight: 900;
}

.admin-audience-card strong::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #ff5b5b;
  box-shadow: 0 0 0 5px rgba(255,91,91,.12);
}

@media (max-width: 720px) {
  .admin-audience-panel {
    justify-content: flex-start;
    width: 100%;
  }

  .admin-audience-card {
    flex: 1;
    min-width: 120px;
  }
}


/* V18 - Player sempre em proporção YouTube 16:9 */

.video-card {
  height: auto !important;
  min-height: unset !important;
  max-height: none !important;
  display: block !important;
}

.video-placeholder,
.video-placeholder.admin-video,
.participant-video-placeholder,
.live-room .video-placeholder {
  width: 100% !important;
  height: auto !important;
  min-height: unset !important;
  max-height: none !important;
  aspect-ratio: 16 / 9 !important;
}

.live-room .video-card {
  height: auto !important;
  min-height: unset !important;
}

.admin-preview-main .video-card {
  height: auto !important;
  min-height: unset !important;
}

.admin-live-preview {
  height: auto !important;
  min-height: unset !important;
  max-height: none !important;
  overflow: visible !important;
  align-items: start;
}

.live-room .side-panel {
  height: auto !important;
  min-height: 520px !important;
  max-height: none !important;
}

.admin-side-preview {
  height: auto !important;
  min-height: 520px !important;
}

@media (min-width: 1121px) {
  .live-room .side-panel {
    min-height: calc((100vw - 28px - 28px - 410px - 22px) * 0.5625 + 28px) !important;
  }

  .admin-side-preview {
    min-height: 520px !important;
  }
}

@media (max-width: 1120px) {
  .video-placeholder,
  .video-placeholder.admin-video,
  .participant-video-placeholder,
  .live-room .video-placeholder {
    aspect-ratio: 16 / 9 !important;
  }
}


/* V19 - Mantém vídeo 16:9 e restaura scrolls internos dos chats */

/* Sala do participante */
.live-room .room-grid {
  align-items: start;
}

@media (min-width: 1121px) {
  .live-room .side-panel {
    height: clamp(
      520px,
      calc((min(calc(100vw - 56px), 1440px) - 432px) * 0.5625 + 28px),
      660px
    ) !important;
    min-height: unset !important;
    max-height: 660px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }
}

.live-room .tabs {
  flex: 0 0 auto;
}

.live-room .tab-content {
  min-height: 0 !important;
  overflow: hidden !important;
}

.live-room .tab-content.active {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: 0 !important;
}

.live-room .messages,
.live-room #chatMessages,
.live-room .support-messages,
.live-room #privateSupportAnswers {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-y: auto !important;
  padding-right: 4px;
}

.live-room .chat-composer,
.live-room .support-composer {
  flex: 0 0 auto !important;
  margin-top: 12px !important;
}

/* Painel admin - Chat/Suporte */
.admin-live-preview {
  height: auto !important;
  min-height: unset !important;
  max-height: none !important;
  overflow: visible !important;
  align-items: start !important;
}

@media (min-width: 1121px) {
  .admin-side-preview {
    height: 650px !important;
    min-height: unset !important;
    max-height: 650px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }
}

.admin-side-preview .tabs {
  flex: 0 0 auto;
}

.admin-preview-tab {
  min-height: 0 !important;
  overflow: hidden !important;
}

.admin-preview-tab.active {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: 0 !important;
}

#adminPreviewChat.active {
  display: flex !important;
  flex-direction: column !important;
}

.admin-messages,
#adminChatList {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-y: auto !important;
  padding-right: 4px;
}

.admin-chat-composer {
  flex: 0 0 auto !important;
  margin-top: 12px !important;
}

/* Suporte admin */
.support-console {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: 100% !important;
  overflow: hidden !important;
}

.support-people {
  min-height: 0 !important;
  max-height: 100% !important;
  overflow-y: auto !important;
}

.support-thread {
  min-height: 0 !important;
  height: 100% !important;
  overflow: hidden !important;
}

.support-thread-messages,
#supportThreadMessages {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-y: auto !important;
  padding-right: 4px;
}

.support-reply-bar {
  flex: 0 0 auto !important;
  margin-top: 12px !important;
}

/* Mobile/tablet */
@media (max-width: 1120px) {
  .live-room .side-panel,
  .admin-side-preview {
    height: 560px !important;
    min-height: unset !important;
    max-height: 560px !important;
    overflow: hidden !important;
  }

  .support-console {
    height: 100% !important;
  }

  .support-people {
    max-height: 120px !important;
  }
}


/* V20 - Chat do participante alinhado até o fim do bloco da oferta */

@media (min-width: 1121px) {
  .live-room .side-panel {
    height: clamp(
      620px,
      calc((min(calc(100vw - 56px), 1440px) - 432px) * 0.5625 + 126px),
      790px
    ) !important;
    min-height: unset !important;
    max-height: 790px !important;
    overflow: hidden !important;
  }
}

.live-room .tab-content.active {
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.live-room #chatTab.active,
.live-room #supportTab.active,
.live-room #offerTab.active {
  display: flex !important;
  flex-direction: column !important;
}

.live-room #chatMessages,
.live-room .support-messages,
.live-room #privateSupportAnswers {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
}

.live-room #offerTab.active {
  overflow-y: auto !important;
}

.live-room #offerTab .offer-content {
  flex: 0 0 auto;
  padding-bottom: 8px;
}

.live-room #offerTab .offer-image {
  max-height: 240px;
}

.live-room .chat-composer,
.live-room .support-composer {
  flex: 0 0 auto !important;
}

/* Mantém o bloco da oferta abaixo do vídeo com altura previsível */
.live-room .offer-inline {
  min-height: 96px !important;
  margin-top: 18px !important;
}

/* Garante que o vídeo não deforme */
.live-room .video-placeholder,
.participant-video-placeholder {
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
}

@media (max-width: 1120px) {
  .live-room .side-panel {
    height: 620px !important;
    min-height: unset !important;
    max-height: 620px !important;
  }
}

@media (max-width: 720px) {
  .live-room .side-panel {
    height: 560px !important;
    max-height: 560px !important;
  }
}


/* V21 - Duplicar evento e persistência local */

.event-card-footer {
  align-items: flex-end;
}

.event-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.event-mini-btn {
  border: none;
  border-radius: 999px;
  background: #f1f4ea;
  color: var(--dark);
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: .18s ease;
}

.event-mini-btn:hover {
  background: var(--lime);
  transform: translateY(-1px);
}

.event-card-footer > span:first-child {
  max-width: 190px;
  word-break: break-word;
}


/* V22 - Botão Abrir link da sala dentro do evento */

.event-top-menu {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.event-top-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.event-open-link-btn {
  flex: 0 0 auto;
  padding: 12px 18px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .event-top-menu {
    align-items: flex-start;
    flex-direction: column;
  }

  .event-top-tabs {
    width: 100%;
  }
}


/* V23 - Cards de eventos mais organizados com copiar, editar, duplicar e apagar */

.event-card {
  display: flex;
  flex-direction: column;
  min-height: 230px;
  border: 1px solid rgba(255,255,255,.86);
}

.event-card:hover {
  background:
    radial-gradient(circle at top right, rgba(199,255,0,.22), transparent 42%),
    rgba(255,255,255,.94) !important;
  border-color: rgba(199,255,0,.55);
  box-shadow: 0 26px 70px rgba(23,26,31,.12);
  transform: translateY(-3px);
}

.event-card h3 {
  margin-bottom: 10px;
}

.event-link-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
}

.event-link-row span {
  flex: 1;
  min-width: 0;
  color: #4c535e;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  word-break: break-word;
}

.copy-event-link-btn {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: none;
  border-radius: 999px;
  background: #f1f4ea;
  color: var(--dark);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: .18s ease;
}

.copy-event-link-btn:hover {
  background: var(--lime);
  transform: translateY(-1px);
}

.event-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.event-text-btn {
  border: none;
  padding: 0;
  background: transparent;
  color: #424751;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.event-text-btn:hover {
  color: #000;
  text-decoration: underline;
}

.event-text-btn.danger {
  color: #a13b3b;
}

.event-text-btn.danger:hover {
  color: #7e1717;
}

.action-separator {
  color: #b1b8c2;
  font-size: 12px;
  font-weight: 900;
}

.event-mini-btn {
  display: none;
}

.event-card-footer {
  display: none;
}


/* V24 - Cards refinados: selo curto e botões arredondados */

.event-card .status-pill {
  width: fit-content !important;
  max-width: max-content !important;
  align-self: flex-start;
  padding: 8px 14px;
  border-radius: 999px;
}

.event-card .status-pill.live {
  background: var(--lime);
  color: var(--dark);
}

.event-card-actions {
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  justify-content: flex-start;
}

.action-separator {
  display: none;
}

.event-text-btn {
  min-width: 34px;
  min-height: 34px;
  border: none;
  border-radius: 999px;
  background: #f1f4ea;
  color: var(--dark);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: .18s ease;
  text-decoration: none !important;
}

.event-text-btn:hover {
  background: var(--lime);
  color: var(--dark);
  transform: translateY(-1px);
  text-decoration: none !important;
}

.event-text-btn.danger {
  color: #7e1717;
  background: #f7eeee;
}

.event-text-btn.danger:hover {
  background: var(--lime);
  color: var(--dark);
}

.copy-event-link-btn {
  background: #f1f4ea;
}

.copy-event-link-btn:hover {
  background: var(--lime);
  color: var(--dark);
}

.event-card:hover .status-pill.live {
  background: var(--lime);
}


/* V25 - Menu lateral minimalista sempre aparente */

.admin-layout {
  grid-template-columns: 92px minmax(0, 1fr) !important;
  gap: 24px;
}

.main-sidebar.mini-sidebar {
  width: 72px !important;
  min-width: 72px;
  max-width: 72px;
  padding: 12px 8px !important;
  border-radius: 24px;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(199,255,0,.18);
  box-shadow: 0 24px 70px rgba(23,26,31,.06);
  position: sticky;
  top: 94px;
}

.mini-menu {
  width: 56px;
  min-height: 70px;
  padding: 8px 6px !important;
  border-radius: 18px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-align: center !important;
  color: var(--muted);
  background: transparent;
}

.mini-menu .mini-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: transparent;
  border: 1px solid transparent;
  font-size: 17px;
  line-height: 1;
  font-weight: 900;
  color: #8a929c;
  transition: .18s ease;
}

.mini-menu span:last-child {
  font-size: 10px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.mini-menu:hover {
  background: rgba(199,255,0,.12);
  color: var(--dark);
}

.mini-menu:hover .mini-icon {
  background: rgba(199,255,0,.25);
  color: var(--dark);
  border-color: rgba(199,255,0,.45);
}

.mini-menu.active {
  background: transparent !important;
  color: var(--dark) !important;
}

.mini-menu.active .mini-icon {
  background: linear-gradient(135deg, rgba(158,234,255,.65), var(--lime));
  color: var(--dark);
  border-color: rgba(199,255,0,.8);
  box-shadow: 0 10px 24px rgba(199,255,0,.26);
}

.mini-menu.active span:last-child {
  color: var(--dark);
}

.sidebar-toggle {
  display: none !important;
}

/* Ajuste do conteúdo porque o menu agora é estreito */
.admin-content {
  min-width: 0;
}

/* Botões internos do evento continuam horizontais */
.event-top-menu {
  margin-left: 0;
}

/* Mantém responsivo */
@media (max-width: 900px) {
  .admin-layout {
    grid-template-columns: 1fr !important;
  }

  .main-sidebar.mini-sidebar {
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    position: static;
    flex-direction: row;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 8px !important;
    border-radius: 22px;
  }

  .mini-menu {
    width: 76px;
    min-width: 76px;
    min-height: 64px;
  }
}


/* V26 - Logo oficial no login e no painel admin */

.login-logo-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 26px;
}

.login-logo-wrap img {
  width: 210px;
  max-width: 70%;
  height: auto;
  object-fit: contain;
  display: block;
}

.admin-login-card h1 {
  text-align: left;
  margin-top: 0;
}

.admin-brand {
  align-items: center;
  gap: 16px;
}

.admin-logo-img {
  width: 72px;
  height: 42px;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
}

.admin-brand h2 {
  margin: 0 !important;
  line-height: 1;
}

.admin-topbar {
  align-items: center;
}

@media (max-width: 720px) {
  .login-logo-wrap img {
    width: 170px;
  }

  .admin-logo-img {
    width: 62px;
    height: 36px;
  }
}


/* V27 - Novo logo Stage */

.login-logo-wrap img {
  width: 260px;
  max-width: 78%;
}

.admin-logo-img {
  width: 92px;
  height: 48px;
  object-fit: contain;
}

@media (max-width: 720px) {
  .login-logo-wrap img {
    width: 210px;
  }

  .admin-logo-img {
    width: 78px;
    height: 42px;
  }
}


/* V28 - Menu lateral e topo refinados */

.admin-topbar {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
}

.admin-brand {
  grid-column: 2;
  gap: 12px;
}

.admin-actions-top {
  grid-column: 3;
}

.admin-logo-img {
  width: 78px !important;
  height: 40px !important;
}

.admin-brand h2 {
  font-size: 18px !important;
  line-height: 1.05 !important;
  letter-spacing: -0.025em;
  font-weight: 900;
}

.main-sidebar.mini-sidebar {
  width: 70px !important;
  min-width: 70px;
  max-width: 70px;
  padding: 10px 7px !important;
  border-radius: 26px;
}

.mini-menu {
  width: 56px;
  min-height: 72px;
  padding: 7px 5px !important;
  border-radius: 24px !important;
}

.mini-menu .mini-icon {
  width: 38px;
  height: 38px;
  border-radius: 50% !important;
  display: grid;
  place-items: center;
}

.mini-menu .mini-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}

.mini-menu span:last-child {
  font-size: 9.5px;
  line-height: 1.05;
}

.mini-menu:hover .mini-icon {
  border-radius: 50% !important;
  background: rgba(199,255,0,.2);
}

.mini-menu.active .mini-icon {
  border-radius: 50% !important;
  background: linear-gradient(135deg, rgba(167,230,239,.75), rgba(182,238,200,.75) 45%, var(--lime));
  box-shadow: 0 10px 24px rgba(199,255,0,.22);
}

.mini-menu.active {
  background: rgba(255,255,255,.5) !important;
}

@media (max-width: 900px) {
  .admin-topbar {
    grid-template-columns: 1fr auto;
    gap: 14px;
  }

  .admin-brand {
    grid-column: 1;
  }

  .admin-actions-top {
    grid-column: 2;
  }

  .main-sidebar.mini-sidebar {
    width: 100% !important;
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .admin-brand h2 {
    font-size: 16px !important;
  }

  .admin-logo-img {
    width: 68px !important;
    height: 34px !important;
  }
}


/* V29 - Logo alinhado acima da coluna do menu lateral */

.admin-topbar {
  grid-template-columns: 92px minmax(0, 1fr) auto !important;
  gap: 24px !important;
}

.admin-brand {
  grid-column: 1 / 3 !important;
  display: grid !important;
  grid-template-columns: 92px minmax(0, 1fr) !important;
  gap: 24px !important;
  align-items: center !important;
}

.admin-logo-img {
  grid-column: 1 !important;
  justify-self: center !important;
  width: 78px !important;
  height: 40px !important;
}

.admin-brand h2 {
  grid-column: 2 !important;
  justify-self: start !important;
}

.admin-actions-top {
  grid-column: 3 !important;
}

.admin-layout {
  grid-template-columns: 92px minmax(0, 1fr) !important;
  gap: 24px !important;
}

@media (max-width: 900px) {
  .admin-topbar {
    grid-template-columns: 1fr auto !important;
  }

  .admin-brand {
    grid-column: 1 !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  .admin-logo-img {
    grid-column: 1 !important;
    justify-self: start !important;
  }

  .admin-brand h2 {
    grid-column: 2 !important;
  }

  .admin-actions-top {
    grid-column: 2 !important;
  }

  .admin-layout {
    grid-template-columns: 1fr !important;
  }
}


/* V30 - Ajuste fino do logo e tipografia dos eventos */

.admin-logo-img {
  justify-self: start !important;
  margin-left: -6px;
}

.section-title-row h1 {
  font-size: 28px !important;
  line-height: 1.08;
}

.event-card h3 {
  font-size: 18px !important;
  line-height: 1.16;
  letter-spacing: -0.025em;
}

.event-card {
  min-height: 220px;
}

@media (max-width: 720px) {
  .section-title-row h1 {
    font-size: 25px !important;
  }

  .event-card h3 {
    font-size: 17px !important;
  }

  .admin-logo-img {
    margin-left: 0;
  }
}


/* V31 - Logo do evento no login da sala e botão com efeito sonar */

.participant-entry-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 26px;
  min-height: 72px;
}

.participant-entry-logo-wrap img {
  width: 210px;
  max-width: 76%;
  max-height: 86px;
  object-fit: contain;
  display: block;
}

.offer-inline a,
#offerButton,
#adminPreviewOfferButton,
#adminInlineOfferButton,
#inlineOfferButton {
  position: relative;
  overflow: visible;
  isolation: isolate;
  background: linear-gradient(90deg, #d9f3ff 0%, #d4ffc3 100%) !important;
  color: #111318 !important;
  box-shadow:
    0 0 0 0 rgba(199, 255, 0, 0.45),
    0 0 26px rgba(199, 255, 0, 0.34),
    0 0 18px rgba(167, 230, 239, 0.22);
  animation: offerButtonGlow 2.4s ease-in-out infinite;
}

.offer-inline a::before,
#offerButton::before,
#adminPreviewOfferButton::before,
#adminInlineOfferButton::before,
#inlineOfferButton::before {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: inherit;
  border: 2px solid rgba(199, 255, 0, 0.32);
  opacity: 0;
  z-index: -1;
  animation: offerSonar 2.4s ease-out infinite;
}

.offer-inline a::after,
#offerButton::after,
#adminPreviewOfferButton::after,
#adminInlineOfferButton::after,
#inlineOfferButton::after {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: inherit;
  border: 1px solid rgba(167, 230, 239, 0.28);
  opacity: 0;
  z-index: -2;
  animation: offerSonar 2.4s ease-out infinite;
  animation-delay: .55s;
}

@keyframes offerButtonGlow {
  0%, 100% {
    filter: brightness(1);
    box-shadow:
      0 0 0 0 rgba(199, 255, 0, 0.36),
      0 0 22px rgba(199, 255, 0, 0.28),
      0 0 14px rgba(167, 230, 239, 0.18);
  }

  50% {
    filter: brightness(1.07);
    box-shadow:
      0 0 0 7px rgba(199, 255, 0, 0.10),
      0 0 38px rgba(199, 255, 0, 0.55),
      0 0 24px rgba(167, 230, 239, 0.35);
  }
}

@keyframes offerSonar {
  0% {
    transform: scale(0.96);
    opacity: 0.58;
  }

  70% {
    opacity: 0.10;
  }

  100% {
    transform: scale(1.18);
    opacity: 0;
  }
}

@media (max-width: 720px) {
  .participant-entry-logo-wrap img {
    width: 170px;
    max-height: 72px;
  }
}


/* V32 - Auditoria do evento */

.audit-wrap {
  width: 100%;
}

.audit-header-row,
.audit-table-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.audit-header-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  justify-content: initial;
  column-gap: 12px;
}

.audit-header-row h3,
.audit-table-title h3 {
  margin: 4px 0 0;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.audit-metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.audit-metric-card {
  min-height: 136px;
  padding: 20px 18px 0;
  border-radius: 22px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 24px 70px rgba(23,26,31,.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.audit-metric-card strong {
  display: block;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--dark);
  margin-bottom: 8px;
}

.audit-metric-card span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: auto;
}

.audit-metric-card button {
  width: calc(100% + 36px);
  margin: 18px -18px 0;
  border: none;
  border-top: 1px solid rgba(231,235,223,.85);
  background: linear-gradient(90deg, rgba(199,255,0,.92), rgba(199,255,0,.72));
  color: var(--dark);
  padding: 12px;
  font-size: 12px;
  font-weight: 900;
  cursor: default;
}

.audit-table-card {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: var(--shadow);
}

.audit-table-scroll {
  overflow: auto;
  max-height: 520px;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.audit-table {
  width: 100%;
  min-width: 2200px;
  border-collapse: collapse;
  background: #fbfcf7;
}

.audit-table th,
.audit-table td {
  text-align: left;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  white-space: nowrap;
}

.audit-table th {
  color: #59606b;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 900;
  background: rgba(241,244,234,.74);
}

.audit-table td {
  color: #242932;
  font-weight: 700;
}

.audit-yes {
  color: #2f7d2f;
  font-weight: 900;
}

.audit-no {
  color: #9aa2ae;
  font-weight: 800;
}

@media (max-width: 1180px) {
  .audit-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .audit-metrics-grid {
    grid-template-columns: 1fr;
  }

  .audit-header-row,
  .audit-table-title {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* V33 - Auditoria com cards em dois blocos, próximo da referência */

.audit-metrics-grid {
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.audit-metric-card {
  position: relative;
  min-height: 148px;
  padding: 0 !important;
  border-radius: 18px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible !important;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

.audit-metric-card::before {
  content: "";
  position: absolute;
  inset: 10px 8px 0;
  border-radius: 18px;
  background: rgba(199,255,0,.16);
  filter: blur(10px);
  opacity: .75;
  z-index: -1;
}

.audit-metric-card strong,
.audit-metric-card span {
  background: rgba(255,255,255,.92);
}

.audit-metric-card strong {
  display: block;
  padding: 22px 20px 0;
  border-radius: 18px 18px 0 0;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--dark);
  margin: 0 !important;
}

.audit-metric-card span {
  display: block;
  padding: 7px 20px 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  margin: 0 !important;
  min-height: 42px;
}

.audit-metric-card button {
  width: 100% !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 0 0 18px 18px;
  background: var(--lime) !important;
  color: var(--dark);
  padding: 15px 18px;
  font-size: 13px;
  font-weight: 900;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: default;
  box-shadow:
    0 16px 32px rgba(199,255,0,.16),
    0 8px 18px rgba(23,26,31,.05);
}

.audit-metric-card button::after {
  content: "›";
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
  transform: translateY(-1px);
}

.audit-metric-card:hover button {
  filter: brightness(1.02);
}

.audit-metric-card:hover::before {
  opacity: 1;
}

@media (max-width: 1180px) {
  .audit-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .audit-metrics-grid {
    grid-template-columns: 1fr;
  }
}


/* V34 - Auditoria com efeito real de dois blocos sobrepostos */

.audit-metric-card {
  position: relative;
  min-height: 154px;
  padding: 0 0 48px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible !important;
  isolation: isolate;
}

.audit-metric-card::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 58px;
  border-radius: 0 0 18px 18px;
  background: rgba(199,255,0,.22);
  filter: blur(14px);
  opacity: .7;
  z-index: -2;
}

.audit-metric-card strong,
.audit-metric-card span {
  background: rgba(255,255,255,.94) !important;
  position: relative;
  z-index: 2;
}

.audit-metric-card strong {
  padding: 22px 20px 0 !important;
  border-radius: 20px 20px 0 0 !important;
  box-shadow:
    0 18px 46px rgba(23,26,31,.06),
    0 1px 0 rgba(255,255,255,.95) inset;
}

.audit-metric-card span {
  padding: 7px 20px 24px !important;
  border-radius: 0 0 20px 20px !important;
  box-shadow:
    0 18px 46px rgba(23,26,31,.06);
}

/* bloco branco inteiro, visualmente por cima */
.audit-metric-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: calc(100% - 42px);
  border-radius: 20px;
  background: rgba(255,255,255,.94);
  box-shadow:
    0 16px 42px rgba(23,26,31,.07),
    0 1px 0 rgba(255,255,255,.95) inset;
  z-index: 1;
}

/* faixa verde como segundo bloco encaixado embaixo */
.audit-metric-card button {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100% !important;
  margin: 0 !important;
  z-index: 0;
  border-radius: 0 0 20px 20px !important;
  padding: 17px 18px 14px !important;
  background: var(--lime) !important;
  box-shadow:
    0 16px 32px rgba(199,255,0,.20),
    0 12px 24px rgba(23,26,31,.06);
}

.audit-metric-card button::after {
  content: "›";
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
}

.audit-metric-card:hover::after {
  box-shadow:
    0 20px 50px rgba(23,26,31,.09),
    0 1px 0 rgba(255,255,255,.95) inset;
}

.audit-metric-card:hover button {
  filter: brightness(1.02);
}


/* V35 - Remove linha/borda cinza entre bloco branco e faixa verde */

.audit-metric-card strong,
.audit-metric-card span,
.audit-metric-card::after,
.audit-metric-card button {
  border: none !important;
}

.audit-metric-card span {
  box-shadow: none !important;
}

.audit-metric-card::after {
  box-shadow:
    0 16px 42px rgba(23,26,31,.055),
    0 1px 0 rgba(255,255,255,.95) inset !important;
}

.audit-metric-card button {
  border-top: none !important;
  outline: none !important;
}

.audit-metric-card:hover::after {
  box-shadow:
    0 20px 50px rgba(23,26,31,.075),
    0 1px 0 rgba(255,255,255,.95) inset !important;
}


/* V36 - Ajuste mínimo: bloco branco da auditoria um pouco menor */

.audit-metric-card {
  min-height: 138px !important;
  padding-bottom: 46px !important;
}

.audit-metric-card::after {
  height: calc(100% - 46px) !important;
}

.audit-metric-card strong {
  padding-top: 18px !important;
}

.audit-metric-card span {
  padding-bottom: 17px !important;
  min-height: 34px !important;
}


/* V37 - Menu interno do evento com gradiente e barra mais arredondada */

.event-top-menu {
  border-radius: 34px !important;
  padding: 10px 12px !important;
  background: rgba(255,255,255,.88) !important;
  overflow: hidden;
}

.event-top-tabs {
  align-items: center;
}

.event-top-menu .admin-menu {
  border-radius: 999px !important;
  padding: 12px 18px !important;
}

.event-top-menu .admin-menu.active {
  background: linear-gradient(90deg, #d9f3ff 0%, #d6ffc6 100%) !important;
  color: var(--dark) !important;
  box-shadow:
    inset -34px 0 42px rgba(199,255,0,.24),
    0 10px 24px rgba(167,230,239,.16);
}

.event-top-menu .admin-menu:hover {
  background: rgba(217,243,255,.55) !important;
  color: var(--dark) !important;
}

.event-open-link-btn {
  border-radius: 999px !important;
}


/* V38 - Dashboard com gráfico e cards analíticos */

.dashboard-chart-card {
  width: 100%;
  min-height: 250px;
  padding: 22px 24px 18px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(167,230,239,.28), transparent 34%),
    radial-gradient(circle at top right, rgba(199,255,0,.18), transparent 34%),
    rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 24px 70px rgba(23,26,31,.07);
  margin-bottom: 18px;
  overflow: hidden;
}

.dashboard-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.dashboard-chart-head span,
.dashboard-card-top span {
  display: block;
  color: #747d89;
  font-size: 12px;
  font-weight: 900;
}

.dashboard-chart-head strong {
  display: block;
  margin-top: 6px;
  color: var(--dark);
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.dashboard-card-icon {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: var(--lime);
  color: var(--dark);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  flex: 0 0 auto;
}

.dashboard-bars {
  height: 150px;
  display: grid;
  grid-template-columns: repeat(6, minmax(44px, 1fr));
  align-items: end;
  gap: 22px;
  padding: 12px 8px 0;
  position: relative;
}

.dashboard-bars::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 44%;
  border-top: 1px dashed rgba(143, 200, 165, .42);
}

.dashboard-bars::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 62%;
  height: 48px;
  background:
    linear-gradient(100deg, transparent 0%, rgba(167,230,239,.15) 32%, rgba(199,255,0,.18) 100%);
  clip-path: polygon(0 68%, 18% 44%, 36% 62%, 54% 28%, 72% 38%, 100% 18%, 100% 100%, 0 100%);
  opacity: .95;
  pointer-events: none;
}

.dashboard-bar-item {
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: end;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.dashboard-bar-track {
  width: 12px;
  height: 112px;
  border-radius: 999px;
  background: rgba(228, 234, 224, .82);
  justify-self: center;
  display: flex;
  align-items: end;
  overflow: hidden;
}

.dashboard-bar-track span {
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(167,230,239,.85), rgba(199,255,0,.82));
  display: block;
  min-height: 8px;
}

.dashboard-bar-item small {
  color: #8c949f;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}

.dashboard-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
}

.dashboard-info-card {
  min-height: 146px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 24px 70px rgba(23,26,31,.07);
  position: relative;
  overflow: hidden;
}

.dashboard-info-card::before {
  content: "";
  position: absolute;
  inset: auto -30px -45px auto;
  width: 160px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(199,255,0,.22), transparent 70%);
}

.dashboard-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.dashboard-info-card strong {
  display: block;
  color: var(--dark);
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}

.dashboard-info-card p {
  color: #7d8490;
  font-size: 13px;
  line-height: 1.35;
  margin: 0;
  max-width: 260px;
}

@media (max-width: 980px) {
  .dashboard-cards-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-bars {
    gap: 12px;
  }
}

@media (max-width: 720px) {
  .dashboard-chart-card {
    padding: 18px;
  }

  .dashboard-chart-head strong {
    font-size: 27px;
  }

  .dashboard-bars {
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
  }
}


/* V39 - Dashboard hover nos meses e ajustes dos cards */

.dashboard-bar-item {
  cursor: default;
}

.dashboard-bar-item::before {
  content: attr(data-total) " participantes";
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%) translateY(6px);
  opacity: 0;
  pointer-events: none;
  background: #111318;
  color: #fff;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 12px 26px rgba(23,26,31,.16);
  transition: .18s ease;
  z-index: 6;
}

.dashboard-bar-item:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.dashboard-bar-item:hover .dashboard-bar-track {
  background: rgba(217,243,255,.68);
  box-shadow:
    0 0 0 8px rgba(199,255,0,.08),
    0 0 26px rgba(199,255,0,.22),
    0 0 16px rgba(167,230,239,.20);
}

.dashboard-bar-item:hover .dashboard-bar-track span {
  filter: brightness(1.12);
  box-shadow:
    0 0 20px rgba(199,255,0,.55),
    0 0 14px rgba(167,230,239,.36);
}

.dashboard-bar-item:hover small {
  color: var(--dark);
}

.admin-actions-top .secondary-btn,
#adminLogoutBtn {
  transition: .18s ease;
}

.admin-actions-top .secondary-btn:hover,
.admin-actions-top .secondary-btn:active,
#adminLogoutBtn:hover,
#adminLogoutBtn:active {
  background: var(--lime) !important;
  color: var(--dark) !important;
  transform: translateY(-1px);
}

.dashboard-info-card .dashboard-card-top {
  min-height: 34px;
}

.dashboard-info-card .dashboard-card-top:not(:has(.dashboard-card-icon)) {
  align-items: center;
}


/* V40 - Ajustes finos de tipografia do Dashboard */

.admin-hero h1 {
  font-size: 28px !important;
  line-height: 1.08 !important;
  letter-spacing: -0.035em;
}

.active-event-card h2,
.admin-hero .active-event-card h2 {
  font-size: 22px !important;
  line-height: 1.12 !important;
  letter-spacing: -0.03em;
}

.dashboard-info-card strong,
.dashboard-chart-head strong,
.metric-card strong {
  font-weight: 950 !important;
}

.dashboard-info-card strong {
  font-size: 30px !important;
}

.dashboard-chart-head strong {
  font-size: 30px !important;
}

@media (max-width: 720px) {
  .admin-hero h1 {
    font-size: 24px !important;
  }

  .active-event-card h2,
  .admin-hero .active-event-card h2 {
    font-size: 19px !important;
  }
}


/* V41 - Dashboard ainda mais minimalista */

.admin-hero h1 {
  font-size: 24px !important;
  line-height: 1.08 !important;
  letter-spacing: -0.035em;
  font-weight: 850 !important;
}

.active-event-card h2,
.admin-hero .active-event-card h2 {
  font-size: 19px !important;
  line-height: 1.15 !important;
  letter-spacing: -0.025em;
  font-weight: 850 !important;
}

.dashboard-info-card strong,
.metric-card strong {
  font-size: 24px !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em;
}

.dashboard-chart-head strong {
  font-size: 25px !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em;
}

.dashboard-info-card {
  min-height: 132px;
}

.dashboard-info-card p {
  font-size: 12.5px;
}

@media (max-width: 720px) {
  .admin-hero h1 {
    font-size: 22px !important;
  }

  .active-event-card h2,
  .admin-hero .active-event-card h2 {
    font-size: 17px !important;
  }

  .dashboard-info-card strong,
  .metric-card strong,
  .dashboard-chart-head strong {
    font-size: 22px !important;
  }
}


/* V44 - Login do participante customizável */

.participant-entry-logo-wrap {
  min-height: 112px !important;
  margin-bottom: 22px !important;
}

.participant-entry-logo-wrap img {
  width: 320px !important;
  max-width: 86% !important;
  max-height: 128px !important;
  object-fit: contain !important;
}

.compact-helper {
  margin-top: 6px !important;
  margin-bottom: 14px !important;
  font-size: 12px !important;
}

#participantEntryScreen.has-custom-bg {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

#participantEntryScreen.has-custom-bg::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(232,247,247,.76), rgba(246,255,215,.72)),
    rgba(255,255,255,.12);
  pointer-events: none;
  z-index: 0;
}

#participantEntryScreen.has-custom-bg .entry-card {
  position: relative;
  z-index: 1;
}

#participantEntryScreen.entry-theme-dark .entry-card {
  background: #1f252b !important;
  color: #f7faf7;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 28px 80px rgba(12,16,20,.25);
}

#participantEntryScreen.entry-theme-dark .entry-card h1,
#participantEntryScreen.entry-theme-dark .entry-card label {
  color: #f7faf7;
}

#participantEntryScreen.entry-theme-dark .entry-card p {
  color: rgba(247,250,247,.72);
}

#participantEntryScreen.entry-theme-dark .entry-card input {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
  color: #fff;
}

#participantEntryScreen.entry-theme-dark .entry-card input::placeholder {
  color: rgba(255,255,255,.50);
}

#participantEntryScreen.entry-theme-dark .participant-entry-logo-wrap img {
  filter: none;
}

@media (max-width: 720px) {
  .participant-entry-logo-wrap img {
    width: 230px !important;
    max-height: 96px !important;
  }
}


/* V45 - Correções do login do participante: fundo, tema e nomes dos arquivos */

.uploaded-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0 14px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(241,244,234,.72);
  border: 1px solid var(--line);
}

.uploaded-file-row span {
  min-width: 0;
  color: #68707c;
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.uploaded-file-row button {
  flex: 0 0 auto;
  border: none;
  border-radius: 999px;
  padding: 8px 11px;
  background: #eef2e8;
  color: #303640;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.uploaded-file-row button:hover {
  background: var(--lime);
  color: var(--dark);
}

#participantLoginScreen.entry-screen {
  min-height: 100vh !important;
  width: 100vw !important;
  padding: 0 !important;
  margin: 0 !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
}

#participantLoginScreen.has-custom-bg {
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-color: #10151a !important;
}

#participantLoginScreen.has-custom-bg::before {
  background:
    linear-gradient(90deg, rgba(232,247,247,.20), rgba(246,255,215,.16)),
    rgba(0,0,0,.18) !important;
}

#participantLoginScreen .entry-card {
  background: rgba(255,255,255,.92) !important;
}

#participantLoginScreen.entry-theme-light .entry-card {
  background: rgba(255,255,255,.94) !important;
  color: var(--dark) !important;
}

#participantLoginScreen.entry-theme-light .entry-card h1,
#participantLoginScreen.entry-theme-light .entry-card label {
  color: var(--dark) !important;
}

#participantLoginScreen.entry-theme-light .entry-card p {
  color: var(--muted) !important;
}

#participantLoginScreen.entry-theme-light .entry-card input {
  background: #fbfcf7 !important;
  border-color: var(--line) !important;
  color: var(--dark) !important;
}

#participantLoginScreen.entry-theme-dark .entry-card {
  background: #20262c !important;
  color: #f7faf7 !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  box-shadow: 0 28px 90px rgba(0,0,0,.34) !important;
}

#participantLoginScreen.entry-theme-dark .entry-card h1,
#participantLoginScreen.entry-theme-dark .entry-card label {
  color: #f7faf7 !important;
}

#participantLoginScreen.entry-theme-dark .entry-card p {
  color: rgba(247,250,247,.72) !important;
}

#participantLoginScreen.entry-theme-dark .entry-card input {
  background: rgba(255,255,255,.08) !important;
  border-color: rgba(255,255,255,.16) !important;
  color: #fff !important;
}

#participantLoginScreen.entry-theme-dark .entry-card input::placeholder {
  color: rgba(255,255,255,.52) !important;
}

#participantLoginScreen.entry-theme-dark .participant-entry-logo-wrap img {
  filter: none !important;
}


/* V46 - Garantia de troca de telas */
.screen.hidden {
  display: none !important;
}


/* V47 - Corrige login do participante aparecendo sobre o painel admin */

#participantLoginScreen.hidden,
#participantLoginScreen.entry-screen.hidden,
#adminLoginScreen.hidden,
#adminPanelScreen.hidden,
#liveRoomScreen.hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#participantLoginScreen:not(.hidden) {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Mantém o fundo customizado apenas quando a tela do participante estiver aberta */
#participantLoginScreen.hidden.has-custom-bg {
  background-image: none !important;
}


/* V48 - Correções finais do login do participante */

html,
body {
  max-width: 100%;
}

body:has(#participantLoginScreen:not(.hidden)) {
  overflow: hidden !important;
}

#participantLoginScreen.hidden,
#participantLoginScreen.entry-screen.hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#participantLoginScreen:not(.hidden) {
  min-height: 100vh !important;
  width: 100vw !important;
  padding: 0 !important;
  margin: 0 !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

#participantLoginScreen.has-custom-bg:not(.hidden) {
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-color: #10151a !important;
}

#participantLoginScreen.has-custom-bg:not(.hidden)::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.16), rgba(0,0,0,.12)),
    rgba(0,0,0,.08) !important;
  pointer-events: none;
  z-index: 0;
}

#participantLoginScreen:not(.hidden) .entry-card {
  position: relative;
  z-index: 1;
}

.participant-entry-logo-wrap {
  min-height: 150px !important;
  margin-bottom: 18px !important;
}

.participant-entry-logo-wrap img {
  width: 420px !important;
  max-width: 92% !important;
  max-height: 160px !important;
  object-fit: contain !important;
}

#participantLoginScreen.entry-theme-light .entry-card {
  background: rgba(255,255,255,.94) !important;
  color: var(--dark) !important;
}

#participantLoginScreen.entry-theme-dark .entry-card {
  background: #20262c !important;
  color: #f7faf7 !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  box-shadow: 0 28px 90px rgba(0,0,0,.34) !important;
}

#participantLoginScreen.entry-theme-dark .entry-card h1,
#participantLoginScreen.entry-theme-dark .entry-card label {
  color: #f7faf7 !important;
}

#participantLoginScreen.entry-theme-dark .entry-card p {
  color: rgba(247,250,247,.72) !important;
}

#participantLoginScreen.entry-theme-dark .entry-card input {
  background: rgba(255,255,255,.08) !important;
  border-color: rgba(255,255,255,.16) !important;
  color: #fff !important;
}

.uploaded-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0 14px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(241,244,234,.72);
  border: 1px solid var(--line);
}

.uploaded-file-row span {
  min-width: 0;
  color: #68707c;
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.uploaded-file-row button {
  flex: 0 0 auto;
  border: none;
  border-radius: 999px;
  padding: 8px 11px;
  background: #eef2e8;
  color: #303640;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.uploaded-file-row button:hover {
  background: var(--lime);
  color: var(--dark);
}

.compact-helper {
  margin-top: 6px !important;
  margin-bottom: 14px !important;
  font-size: 12px !important;
}

@media (max-width: 720px) {
  .participant-entry-logo-wrap img {
    width: 280px !important;
    max-height: 110px !important;
  }
}


/* V49 - Remove bordas da tela de login do participante e reforça fundo full-screen */

html,
body {
  margin: 0 !important;
  padding: 0 !important;
}

#participantLoginScreen:not(.hidden) {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: none !important;
  border-radius: 0 !important;
  z-index: 999 !important;
}

#participantLoginScreen:not(.hidden).has-custom-bg {
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

#participantLoginScreen:not(.hidden)::before {
  inset: 0 !important;
}

body.participant-login-open {
  overflow: hidden !important;
}


/* V50 - Observação visual para fundo otimizado */
.compact-helper::after {
  content: " A imagem será otimizada automaticamente para salvar no protótipo.";
}


/* V55 - Audiência simulada com gráfico e ajuste manual */

.audience-duration-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.audience-duration-row input {
  max-width: 160px;
}

.audience-duration-row span {
  color: #6f7783;
  font-size: 13px;
  font-weight: 900;
}

.audience-curve-card {
  margin-top: 18px;
  padding: 20px;
  border-radius: 26px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(255,255,255,.92);
  box-shadow: 0 24px 70px rgba(23,26,31,.07);
}

.audience-curve-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.audience-curve-header h3 {
  margin: 4px 0 4px;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.audience-curve-header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

#audienceCurveTimeLabel {
  color: #747d89;
}

#resetAudienceCurveBtn {
  border: none;
  border-radius: 999px;
  background: #eef2e8;
  color: var(--dark);
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

#resetAudienceCurveBtn:hover {
  background: var(--lime);
}

.audience-curve-chart {
  height: 260px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(226,232,223,.62) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226,232,223,.62) 1px, transparent 1px),
    rgba(251,252,247,.78);
  background-size: 100% 25%, 12.5% 100%;
  overflow: hidden;
  position: relative;
}

.audience-curve-chart svg {
  width: 100%;
  height: 100%;
  display: block;
}

.audience-point-label {
  position: absolute;
  transform: translate(-50%, -50%);
  background: #111318;
  color: #fff;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  pointer-events: none;
}

.audience-manual-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.audience-manual-grid label {
  color: #5f6773;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.audience-manual-grid input[type="range"] {
  width: 100%;
  padding: 0;
  accent-color: var(--lime);
  margin-top: 8px;
}

@media (max-width: 900px) {
  .audience-manual-grid {
    grid-template-columns: 1fr;
  }

  .audience-curve-header {
    flex-direction: column;
  }
}


/* V56 - Gráfico de audiência simulada mais moderno, sem barras verticais */

.audience-curve-card {
  background:
    radial-gradient(circle at top left, rgba(167,230,239,.22), transparent 36%),
    radial-gradient(circle at top right, rgba(184,232,106,.22), transparent 34%),
    rgba(255,255,255,.86) !important;
}

.audience-curve-chart {
  height: 260px;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.9) !important;
  background:
    linear-gradient(90deg, rgba(167,230,239,.12), rgba(184,232,106,.12)),
    rgba(251,252,247,.72) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.82),
    0 20px 50px rgba(23,26,31,.05);
}

.audience-curve-chart::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 50%;
  border-top: 1px dashed rgba(117,125,137,.22);
  z-index: 1;
}

.audience-curve-chart::after {
  content: "";
  position: absolute;
  inset: 28px 26px 38px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 58%, rgba(167,230,239,.16), transparent 32%),
    radial-gradient(circle at 82% 42%, rgba(184,232,106,.20), transparent 34%);
  filter: blur(8px);
  opacity: .95;
  z-index: 0;
  pointer-events: none;
}

.audience-curve-chart svg {
  position: relative;
  z-index: 2;
}

.audience-curve-chart svg circle {
  filter: drop-shadow(0 0 7px rgba(184,232,106,.55));
}

.audience-manual-grid {
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(255,255,255,.78);
  padding: 14px;
  border-radius: 20px;
}


/* V57 - Textos do gráfico de audiência mais leves e nítidos */

.audience-curve-chart svg text {
  font-family: inherit;
  paint-order: normal;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

.audience-curve-chart svg .audience-axis-label {
  fill: #737b86;
  font-size: 2.45px;
  font-weight: 650;
  letter-spacing: .01em;
}

.audience-curve-chart svg .audience-time-label {
  fill: #747d89;
  font-size: 2.65px;
  font-weight: 650;
  letter-spacing: .01em;
}


/* V58 - Números do gráfico fora do SVG para não achatar/distorcer */

.audience-curve-chart {
  overflow: visible !important;
  margin-left: 44px;
  width: calc(100% - 44px);
}

.audience-curve-chart .audience-y-label {
  position: absolute;
  left: -38px;
  color: #737b86;
  font-size: 13px;
  line-height: 1;
  font-weight: 750;
  letter-spacing: -0.01em;
  font-family: inherit;
  z-index: 5;
  white-space: nowrap;
  transform: none !important;
  filter: none !important;
}

.audience-curve-chart .audience-y-label.max {
  top: 42px;
}

.audience-curve-chart .audience-y-label.min {
  bottom: 31px;
}

.audience-curve-chart svg .audience-axis-label {
  display: none !important;
}

.audience-curve-chart svg .audience-time-label {
  font-family: inherit;
  font-size: 2.55px;
  font-weight: 650;
  fill: #747d89;
}


/* V59 - Horários fora do SVG e gradiente apenas dentro da curva */

.audience-curve-chart {
  background: rgba(251,252,247,.72) !important;
}

.audience-curve-chart::after {
  display: none !important;
}

.audience-curve-chart .audience-time-html-label {
  position: absolute;
  bottom: -24px;
  transform: translateX(-50%);
  color: #737b86;
  font-size: 13px;
  line-height: 1;
  font-weight: 750;
  letter-spacing: -0.01em;
  font-family: inherit;
  z-index: 5;
  white-space: nowrap;
  filter: none !important;
}

.audience-curve-chart svg .audience-time-label {
  display: none !important;
}

.audience-manual-grid {
  margin-top: 42px !important;
}

.audience-curve-card {
  background: rgba(255,255,255,.86) !important;
}

.audience-curve-chart {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.82),
    0 20px 50px rgba(23,26,31,.045) !important;
}


/* V60 - Bolinhas do gráfico arrastáveis */

.audience-curve-chart {
  touch-action: none;
  user-select: none;
}

.audience-curve-chart .curve-drag-point {
  cursor: grab;
  pointer-events: all;
}

.audience-curve-chart .curve-drag-point:hover {
  filter:
    drop-shadow(0 0 8px rgba(184,232,106,.95))
    drop-shadow(0 0 14px rgba(167,230,239,.55));
}

.audience-curve-chart .curve-drag-point.is-dragging {
  cursor: grabbing;
  filter:
    drop-shadow(0 0 10px rgba(184,232,106,1))
    drop-shadow(0 0 18px rgba(167,230,239,.75));
}

.audience-curve-card.dragging-curve {
  cursor: grabbing;
}


/* V64 - Mensagem automática de entrada como aviso fino em gradiente */

.chat-message.system-join,
.message.system-join,
.chat-bubble.system-join {
  background: linear-gradient(90deg, rgba(167,230,239,.45), rgba(184,232,106,.48)) !important;
  color: #1b2229 !important;
  border: 1px solid rgba(255,255,255,.72) !important;
  border-radius: 999px !important;
  padding: 10px 15px !important;
  box-shadow: 0 10px 24px rgba(23,26,31,.05) !important;
}

.chat-message.system-join strong,
.message.system-join strong,
.chat-bubble.system-join strong,
.chat-message.system-join .message-author,
.message.system-join .message-author,
.chat-bubble.system-join .message-author {
  display: none !important;
}

.chat-message.system-join p,
.message.system-join p,
.chat-bubble.system-join p,
.chat-message.system-join .message-text,
.message.system-join .message-text,
.chat-bubble.system-join .message-text {
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
  color: #1b2229 !important;
}


/* V65 - Mensagem de entrada compacta, fundo só até o final da frase */

.chat-message.system-join,
.message.system-join,
.chat-bubble.system-join {
  width: fit-content !important;
  max-width: calc(100% - 24px) !important;
  display: inline-flex !important;
  align-items: center !important;
  align-self: flex-start !important;
  padding: 9px 14px !important;
  border-radius: 999px !important;
}

.chat-message.system-join p,
.message.system-join p,
.chat-bubble.system-join p,
.chat-message.system-join .message-text,
.message.system-join .message-text,
.chat-bubble.system-join .message-text {
  display: inline !important;
  width: auto !important;
  white-space: normal !important;
}

/* Garante que o item não seja esticado pelo container */
.chat-list .system-join,
.messages-list .system-join,
.chat-messages .system-join {
  flex: 0 0 auto !important;
}


/* V67 - Simulação de Participantes no Chat/Suporte */

.participant-simulation-panel {
  margin-top: 28px;
  padding: 22px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(18,21,27,.96), rgba(18,21,27,.92)),
    #111318;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 28px 80px rgba(23,26,31,.14);
}

.simulation-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.simulation-header h3 {
  margin: 4px 0 6px;
  color: #fff;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.simulation-header p {
  margin: 0;
  color: rgba(255,255,255,.58);
  font-size: 13px;
  font-weight: 700;
}

.participant-simulation-panel .eyebrow {
  color: var(--lime);
}

.simulation-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.simulation-card {
  min-height: 210px;
  padding: 16px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(184,232,106,.10), transparent 42%),
    rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.simulation-card label {
  display: block;
  color: rgba(255,255,255,.78);
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 8px;
}

.simulation-card input,
.simulation-card textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.11);
  background: rgba(255,255,255,.07);
  color: #fff;
  border-radius: 15px;
  padding: 11px 12px;
  font-size: 13px;
  outline: none;
}

.simulation-card textarea {
  margin-top: 10px;
  resize: vertical;
  min-height: 74px;
}

.simulation-card input::placeholder,
.simulation-card textarea::placeholder {
  color: rgba(255,255,255,.45);
}

.simulation-card input:focus,
.simulation-card textarea:focus {
  border-color: rgba(184,232,106,.78);
  box-shadow: 0 0 0 4px rgba(184,232,106,.09);
}

.sim-send {
  margin-top: 12px;
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 11px 14px;
  background: var(--lime);
  color: var(--dark);
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
}

.sim-send:hover {
  filter: brightness(.98);
  transform: translateY(-1px);
}

@media (max-width: 1200px) {
  .simulation-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .simulation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .participant-simulation-panel {
    padding: 16px;
  }

  .simulation-grid {
    grid-template-columns: 1fr;
  }
}


/* V74 - Menu principal horizontal corrigido */

/* Esconde apenas o menu lateral antigo, sem reposicionar elementos internos */
.admin-sidebar,
.sidebar-menu,
.side-nav,
.app-sidebar {
  display: none !important;
}

/* Header/topo */
.admin-header,
.topbar,
.admin-topbar {
  display: flex !important;
  align-items: center !important;
  gap: 26px !important;
  padding: 20px 28px 12px !important;
}

/* Remove texto antigo do painel */
.admin-header h1:empty,
.admin-header h2:empty,
.brand-title:empty,
.admin-title:empty {
  display: none !important;
}

/* Novo menu horizontal */
.top-main-nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 22px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(255,255,255,.78);
  box-shadow: 0 18px 50px rgba(23,26,31,.06);
}

.top-nav-btn {
  height: 42px;
  border: none;
  border-radius: 999px;
  padding: 0 18px;
  background: transparent;
  color: #6f7783;
  font-size: 12px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.top-nav-btn.active {
  background: linear-gradient(90deg, rgba(167,230,239,.92), rgba(184,232,106,.92));
  color: #12161d;
}

.top-nav-icon {
  font-size: 15px;
  line-height: 1;
}

/* Conteúdo volta a ocupar espaço sem a sidebar */
.admin-content,
.dashboard-content,
.events-content,
.main-content,
.page-content {
  margin-left: 0 !important;
}

/* Se o layout tinha padding para compensar a sidebar, reduzimos sem quebrar os blocos */
.admin-layout,
.admin-main,
.panel-layout {
  grid-template-columns: 1fr !important;
}

/* Evita o conteúdo começar atrás do menu lateral antigo */
body #adminPanelScreen:not(.hidden) {
  overflow-x: hidden;
}

@media (max-width: 760px) {
  .admin-header,
  .topbar,
  .admin-topbar {
    flex-wrap: wrap !important;
    gap: 12px !important;
  }

  .top-main-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
    justify-content: flex-start;
  }
}


/* V75 - Menu superior funcional, mais fino + fundo mais leve + sombras */

body,
.app-bg,
.admin-screen,
#adminPanelScreen {
  background:
    radial-gradient(circle at 0% 0%, rgba(167,230,239,.18), transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(184,232,106,.20), transparent 34%),
    linear-gradient(180deg, #f8faf4 0%, #f5f7f0 48%, #f4f5ef 100%) !important;
}

/* Reduz faixas/cinzões fortes entre blocos */
.dashboard-hero,
.hero-card,
.dashboard-chart-card,
.dashboard-card,
.stats-card,
.metric-card,
.event-card,
.white-card,
.panel-card {
  box-shadow:
    0 18px 55px rgba(23,26,31,.055),
    inset 0 1px 0 rgba(255,255,255,.76) !important;
}

.dashboard-hero,
.hero-card {
  background:
    radial-gradient(circle at 0% 20%, rgba(167,230,239,.20), transparent 42%),
    radial-gradient(circle at 100% 20%, rgba(184,232,106,.18), transparent 40%),
    rgba(255,255,255,.64) !important;
  border-color: rgba(255,255,255,.82) !important;
}

.dashboard-chart-card,
.chart-card {
  background:
    linear-gradient(90deg, rgba(167,230,239,.07), rgba(184,232,106,.07)),
    rgba(255,255,255,.70) !important;
  border-color: rgba(255,255,255,.84) !important;
}

.dashboard-card,
.stats-card,
.metric-card {
  background:
    radial-gradient(circle at 100% 100%, rgba(184,232,106,.10), transparent 44%),
    rgba(255,255,255,.74) !important;
  border: 1px solid rgba(255,255,255,.84) !important;
}

/* Menu superior menor e mais minimalista */
.top-main-nav {
  padding: 4px !important;
  gap: 4px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.54) !important;
  border: 1px solid rgba(255,255,255,.84) !important;
  box-shadow: 0 12px 32px rgba(23,26,31,.045) !important;
}

.top-nav-btn {
  height: 34px !important;
  min-width: auto !important;
  padding: 0 13px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  letter-spacing: -0.01em !important;
}

.top-nav-icon {
  font-size: 12px !important;
  opacity: .78;
}

.top-nav-btn.active {
  background: linear-gradient(90deg, rgba(167,230,239,.72), rgba(184,232,106,.76)) !important;
  box-shadow: none !important;
}

/* Deixa o topo mais limpo */
.admin-header,
.topbar,
.admin-topbar {
  padding-top: 16px !important;
  padding-bottom: 8px !important;
}

/* Sombra elegante nos blocos principais do Dashboard */
#dashboardView .dashboard-card,
#dashboardView .stats-card,
#dashboardView .metric-card,
#dashboardView .dashboard-chart-card,
#dashboardView .chart-card,
#dashboardView .dashboard-hero,
#dashboardScreen .dashboard-card,
#dashboardScreen .stats-card,
#dashboardScreen .metric-card,
#dashboardScreen .dashboard-chart-card,
#dashboardScreen .chart-card,
#dashboardScreen .dashboard-hero {
  box-shadow:
    0 22px 70px rgba(23,26,31,.06),
    inset 0 1px 0 rgba(255,255,255,.80) !important;
}


/* V76 - Correção do menu horizontal: estado ativo limpo */

.top-main-nav {
  position: relative !important;
  z-index: 100 !important;
}

.top-nav-btn {
  cursor: pointer !important;
  pointer-events: auto !important;
}

.top-nav-btn:not(.active) {
  background: transparent !important;
  color: #68717d !important;
}

.top-nav-btn.active {
  background: linear-gradient(90deg, rgba(167,230,239,.78), rgba(184,232,106,.82)) !important;
  color: #12161d !important;
}

.admin-sidebar,
.sidebar-menu,
.side-nav,
.app-sidebar {
  display: none !important;
}


/* V77 - Estado inicial correto do menu superior */
.top-main-nav .top-nav-btn.active[data-main-view="dashboard"] {
  background: linear-gradient(90deg, rgba(167,230,239,.78), rgba(184,232,106,.82)) !important;
  color: #12161d !important;
}


/* V81 - Cards flutuantes corrigidos, sem bug no Evento Ativo */

/* Fundo mais uniforme. Evita faixas cinzas horizontais entre blocos. */
html,
body,
.app-bg,
#adminPanelScreen {
  background:
    radial-gradient(circle at 0% 0%, rgba(167,230,239,.10), transparent 26%),
    radial-gradient(circle at 100% 0%, rgba(184,232,106,.11), transparent 26%),
    #f7f8f3 !important;
}

/* Remove sombras gigantes dos blocos grandes que criavam "linhas" no fundo */
.dashboard-hero,
.dashboard-chart-card,
.config-card,
.wide-card,
.audit-table-card,
.participant-simulation-panel,
.room-grid,
.event-editor-view,
#eventEditorView {
  filter: none !important;
}

/* Cards claros: sombra mais localizada, sem borrar uma faixa inteira */
.dashboard-chart-card,
.dashboard-card,
.dashboard-info-card,
.event-card,
.config-card,
.wide-card,
.audit-metric-card,
.audit-table-card,
.admin-audience-card,
.admin-status-card,
.entry-card,
.audience-curve-card,
.simulation-card,
.side-panel,
.video-card {
  border: 1px solid rgba(255,255,255,.88) !important;
  box-shadow:
    0 12px 26px rgba(19, 23, 29, .070),
    0 3px 10px rgba(19, 23, 29, .040) !important;
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    border-color .22s ease !important;
  will-change: transform;
}

/* Hover real em todos os cards */
.dashboard-chart-card:hover,
.dashboard-card:hover,
.dashboard-info-card:hover,
.event-card:hover,
.config-card:hover,
.wide-card:hover,
.audit-metric-card:hover,
.audit-table-card:hover,
.admin-audience-card:hover,
.admin-status-card:hover,
.entry-card:hover,
.audience-curve-card:hover,
.simulation-card:hover,
.side-panel:hover,
.video-card:hover {
  transform: translateY(-4px) !important;
  box-shadow:
    0 18px 34px rgba(19, 23, 29, .100),
    0 6px 14px rgba(19, 23, 29, .055) !important;
  border-color: rgba(255,255,255,.96) !important;
}

/* Cards do dashboard com branco limpo, sem gradiente que vaza visualmente */
.dashboard-chart-card,
.dashboard-card,
.event-card,
.config-card,
.wide-card,
.audit-metric-card,
.audit-table-card,
.admin-audience-card,
.admin-status-card,
.entry-card,
.audience-curve-card,
.side-panel,
.video-card {
  background:
    radial-gradient(circle at 96% 92%, rgba(184,232,106,.06), transparent 32%),
    rgba(255,255,255,.82) !important;
  background-clip: padding-box !important;
}

/* Mantém especificamente o Evento Ativo escuro */
#overviewActiveEvent,
.overview-active-event,
.active-event-card,
.dashboard-info-card#overviewActiveEvent {
  background: #101319 !important;
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  box-shadow:
    0 16px 32px rgba(16, 19, 25, .18),
    0 5px 14px rgba(16, 19, 25, .12) !important;
}

#overviewActiveEvent:hover,
.overview-active-event:hover,
.active-event-card:hover,
.dashboard-info-card#overviewActiveEvent:hover {
  transform: translateY(-4px) !important;
  box-shadow:
    0 24px 46px rgba(16, 19, 25, .24),
    0 8px 18px rgba(16, 19, 25, .16) !important;
}

#overviewActiveEvent *,
.overview-active-event *,
.active-event-card * {
  color: inherit;
}

#overviewActiveEvent .eyebrow,
.overview-active-event .eyebrow,
.active-event-card .eyebrow {
  color: var(--lime) !important;
}

/* Remove qualquer camada/pseudo-elemento grande que gere faixa horizontal */
.dashboard-hero::before,
.dashboard-hero::after,
.dashboard-chart-card::before,
.dashboard-chart-card::after,
.dashboard-card::before,
.dashboard-card::after,
.dashboard-info-card::before,
.dashboard-info-card::after,
.audit-table-card::before,
.audit-table-card::after,
.audit-metric-card::before,
.audit-metric-card::after,
.event-card::before,
.event-card::after,
.config-card::before,
.config-card::after,
.wide-card::before,
.wide-card::after {
  box-shadow: none !important;
  filter: none !important;
}

/* Seções/wrappers não recebem sombra própria */
.dashboard-cards-grid,
.event-cards-grid,
.audit-metrics-grid,
.audit-wrap,
.room-grid,
.participant-top-grid,
.config-grid,
.main-overview,
#mainOverview,
#mainEvents,
#eventEditorView,
#eventTabAudit {
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
}

/* Evita a sombra do gráfico criar aquela faixa abaixo */
.dashboard-chart-card {
  overflow: hidden !important;
}

.dashboard-bars,
.dashboard-bar-item,
.dashboard-bar-track {
  filter: none !important;
}

/* Respiro extra entre blocos para parecerem separados */
.dashboard-chart-card,
.dashboard-cards-grid,
.audit-metrics-grid,
.audit-table-card,
.event-cards-grid {
  margin-top: 18px !important;
}

/* Botões não devem subir junto como se fossem card */
button:hover {
  transform: none;
}


/* V82 - Evento ativo preto/clicável e sombras sem linha reta */

/* Corrige o card inteiro do Evento Ativo, não apenas o texto */
.admin-status-card {
  background: #101319 !important;
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  box-shadow:
    0 28px 48px -24px rgba(10, 13, 18, .45),
    0 10px 22px -18px rgba(10, 13, 18, .35) !important;
  cursor: pointer !important;
  overflow: hidden !important;
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    border-color .22s ease !important;
}

.admin-status-card:hover {
  transform: translateY(-4px) !important;
  box-shadow:
    0 36px 62px -26px rgba(10, 13, 18, .55),
    0 14px 28px -20px rgba(10, 13, 18, .40) !important;
  border-color: rgba(255,255,255,.16) !important;
}

.admin-status-card span {
  color: var(--lime) !important;
}

.admin-status-card strong,
#overviewActiveEvent {
  display: block !important;
  background: transparent !important;
  color: #ffffff !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  cursor: pointer !important;
}

/* Remove o efeito de linha reta: sombras com spread negativo */
.dashboard-hero,
.dashboard-chart-card,
.dashboard-info-card,
.dashboard-card,
.event-card,
.config-card,
.wide-card,
.audit-metric-card,
.audit-table-card,
.admin-audience-card,
.admin-status-card,
.entry-card,
.audience-curve-card,
.side-panel,
.video-card,
.panel-card,
.white-card,
.form-card,
.editor-card {
  box-shadow:
    0 28px 48px -28px rgba(18,22,29,.28),
    0 10px 22px -20px rgba(18,22,29,.20) !important;
}

/* Hover sem criar faixa horizontal grudada */
.dashboard-hero:hover,
.dashboard-chart-card:hover,
.dashboard-info-card:hover,
.dashboard-card:hover,
.event-card:hover,
.config-card:hover,
.wide-card:hover,
.audit-metric-card:hover,
.audit-table-card:hover,
.admin-audience-card:hover,
.admin-status-card:hover,
.entry-card:hover,
.audience-curve-card:hover,
.side-panel:hover,
.video-card:hover,
.panel-card:hover,
.white-card:hover,
.form-card:hover,
.editor-card:hover {
  transform: translateY(-4px) !important;
  box-shadow:
    0 36px 62px -30px rgba(18,22,29,.34),
    0 14px 28px -22px rgba(18,22,29,.24) !important;
}

/* Retira bordas inferiores/pseudo faixas que podem parecer linhas */
.dashboard-hero,
.dashboard-chart-card,
.dashboard-info-card,
.dashboard-card,
.event-card,
.config-card,
.wide-card,
.audit-metric-card,
.audit-table-card,
.admin-audience-card,
.entry-card,
.audience-curve-card,
.side-panel,
.video-card {
  border-bottom-color: rgba(255,255,255,.72) !important;
  background-clip: padding-box !important;
}

/* Neutraliza pseudo-elementos dos cards que poderiam formar linhas */
.dashboard-hero::before,
.dashboard-hero::after,
.dashboard-chart-card::before,
.dashboard-chart-card::after,
.dashboard-info-card::before,
.dashboard-info-card::after,
.admin-status-card::before,
.admin-status-card::after,
.event-card::before,
.event-card::after,
.audit-metric-card::before,
.audit-metric-card::after,
.audit-table-card::before,
.audit-table-card::after {
  box-shadow: none !important;
  filter: none !important;
}

/* Fundo geral mais uniforme para não criar divisão entre áreas */
html,
body,
.app-bg,
#adminPanelScreen {
  background:
    radial-gradient(circle at top left, rgba(167,230,239,.08), transparent 27%),
    radial-gradient(circle at top right, rgba(184,232,106,.09), transparent 27%),
    #f8f9f4 !important;
}

/* Mantém as áreas grandes sem sombra própria; só os cards flutuam */
.dashboard-cards-grid,
.event-cards-grid,
.audit-metrics-grid,
.audit-wrap,
.room-grid,
.participant-top-grid,
#mainOverview,
#mainEvents,
#eventEditorView,
#eventTabAudit,
#eventTabChatSupport {
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
}

/* No gráfico principal, remove qualquer sombra interna que pareça linha cinza */
.dashboard-chart-card {
  overflow: hidden !important;
}

.dashboard-chart-card::after,
.dashboard-bars::after,
.dashboard-bars::before {
  display: none !important;
  content: none !important;
}


/* V84 - Card Evento Ativo correto */
.admin-status-card {
  background: #101319 !important;
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  cursor: pointer !important;
  position: relative !important;
}

.admin-status-card span {
  color: var(--lime) !important;
}

.admin-status-card strong,
#overviewActiveEvent {
  background: transparent !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: none !important;
}

.admin-status-card.no-active-event {
  opacity: .72;
  cursor: default !important;
}

.admin-status-card .active-event-counter {
  position: absolute;
  right: 18px;
  top: 16px;
  min-width: 32px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.78) !important;
  font-size: 11px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-status-card .active-event-counter.hidden {
  display: none !important;
}


/* V85 - Garante visibilidade correta da aba Eventos */
#mainOverview.hidden,
#mainEvents.hidden,
#eventEditorView.hidden {
  display: none !important;
}

#mainOverview:not(.hidden),
#mainEvents:not(.hidden),
#eventEditorView:not(.hidden) {
  display: block !important;
}

#mainEvents:not(.hidden) #eventsListView,
#mainEvents:not(.hidden) #eventCardsGrid {
  display: grid;
}

#mainEvents:not(.hidden) {
  min-height: 420px;
}

/* Se o menu estiver em Eventos, não deixar área em branco */
.event-card {
  visibility: visible !important;
  opacity: 1 !important;
}


/* V86 - Evento Ativo apenas visual */
.admin-status-card {
  cursor: default !important;
}

.admin-status-card:hover {
  transform: none !important;
}

.admin-status-card strong,
#overviewActiveEvent {
  cursor: default !important;
}

/* Garante que a flecha verde dos Eventos criados pareça clicável */
[data-shortcut-events] {
  cursor: pointer !important;
}


/* V87 - Volta o layout anterior do bloco "Participantes geral dos eventos" */

.dashboard-chart-card,
.chart-card {
  min-height: 260px !important;
  padding: 28px 28px 22px !important;
  border-radius: 28px !important;
  background:
    radial-gradient(circle at 7% 18%, rgba(167,230,239,.13), transparent 34%),
    radial-gradient(circle at 88% 24%, rgba(184,232,106,.10), transparent 36%),
    rgba(255,255,255,.74) !important;
  border: 1px solid rgba(255,255,255,.86) !important;
  box-shadow:
    0 24px 54px rgba(20, 24, 30, .075),
    0 8px 20px rgba(20, 24, 30, .045),
    inset 0 1px 0 rgba(255,255,255,.88) !important;
  overflow: hidden !important;
}

.dashboard-chart-card:hover,
.chart-card:hover {
  transform: translateY(-3px) !important;
  box-shadow:
    0 30px 64px rgba(20, 24, 30, .095),
    0 10px 24px rgba(20, 24, 30, .055),
    inset 0 1px 0 rgba(255,255,255,.92) !important;
}

.dashboard-chart-card h3,
.chart-card h3,
.dashboard-chart-card .chart-title,
.chart-card .chart-title {
  margin-bottom: 2px !important;
}

.dashboard-bars,
#dashboardBars {
  position: relative !important;
  height: 150px !important;
  margin-top: 18px !important;
  padding: 0 6px !important;
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  align-items: end !important;
  gap: 42px !important;
}

.dashboard-bars::before,
#dashboardBars::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 56% !important;
  height: 1px !important;
  border-top: 1px dashed rgba(104, 207, 198, .28) !important;
  display: block !important;
}

.dashboard-bars::after,
#dashboardBars::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 24px !important;
  height: 44px !important;
  background: linear-gradient(90deg, rgba(167,230,239,.11), rgba(184,232,106,.20)) !important;
  clip-path: polygon(0 66%, 18% 58%, 37% 64%, 55% 30%, 72% 42%, 100% 18%, 100% 100%, 0 100%) !important;
  z-index: 0 !important;
  display: block !important;
}

.dashboard-bar-item,
.dashboard-bar {
  position: relative !important;
  z-index: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-end !important;
  height: 132px !important;
}

.dashboard-bar-track,
.bar-track {
  width: 12px !important;
  height: 118px !important;
  border-radius: 999px !important;
  background: rgba(219, 225, 218, .72) !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: flex-end !important;
}

.dashboard-bar-fill,
.bar-fill {
  width: 100% !important;
  min-height: 7px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, rgba(167,230,239,.95), rgba(184,232,106,.98)) !important;
}

.dashboard-bar-label,
.bar-label,
.dashboard-bar-item span {
  margin-top: 12px !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  color: #7e8792 !important;
  letter-spacing: .02em !important;
}

/* Remove apenas os ajustes recentes que achatavam o bloco */
.dashboard-chart-card {
  margin-top: 18px !important;
  margin-bottom: 18px !important;
}


/* V89 - Eventos estáveis e botões clicáveis */
#mainOverview.hidden,
#mainEvents.hidden,
#eventEditorView.hidden,
#eventsListView.hidden {
  display: none !important;
}

#mainEvents:not(.hidden),
#eventsListView:not(.hidden),
#eventEditorView:not(.hidden) {
  display: block !important;
}

.event-card,
.event-card * {
  pointer-events: auto !important;
}

.event-card {
  cursor: pointer !important;
}

.event-card button {
  cursor: pointer !important;
  position: relative !important;
  z-index: 5 !important;
}

.admin-status-card {
  cursor: default !important;
}

.admin-status-card:hover {
  transform: none !important;
}


/* V90 - Apenas uma seção principal visível por vez */
.main-tab {
  display: none !important;
}

.main-tab.active:not(.hidden) {
  display: block !important;
}

#mainOverview.hidden,
#mainEvents.hidden {
  display: none !important;
}

#mainOverview.active:not(.hidden) {
  display: block !important;
}

#mainEvents.active:not(.hidden) {
  display: block !important;
}

#mainEvents.hidden #eventsListView,
#mainEvents.hidden #eventEditorView {
  display: none !important;
}

#mainOverview.active + #mainEvents {
  display: none !important;
}


/* V94 - Remove hover apenas da sala dos participantes */
#participantScreen .video-card:hover,
#participantScreen .side-panel:hover,
#participantScreen .offer-strip:hover,
#participantScreen .chat-panel:hover,
#participantScreen .participant-card:hover,
#participantScreen .room-video-card:hover,
#participantScreen .white-card:hover,
#participantScreen .panel-card:hover,
#participantScreen .live-card:hover,
#participantRoom .video-card:hover,
#participantRoom .side-panel:hover,
#participantRoom .offer-strip:hover,
#participantRoom .chat-panel:hover,
#participantRoom .participant-card:hover,
#participantRoom .room-video-card:hover,
#participantRoom .white-card:hover,
#participantRoom .panel-card:hover,
#participantRoom .live-card:hover,
.participant-screen .video-card:hover,
.participant-screen .side-panel:hover,
.participant-screen .offer-strip:hover,
.participant-screen .chat-panel:hover,
.participant-screen .participant-card:hover,
.participant-screen .room-video-card:hover,
.participant-screen .white-card:hover,
.participant-screen .panel-card:hover,
.participant-screen .live-card:hover,
.participant-room .video-card:hover,
.participant-room .side-panel:hover,
.participant-room .offer-strip:hover,
.participant-room .chat-panel:hover,
.participant-room .participant-card:hover,
.participant-room .room-video-card:hover,
.participant-room .white-card:hover,
.participant-room .panel-card:hover,
.participant-room .live-card:hover {
  transform: none !important;
}

/* Remove também hover dos botões/áreas da sala do participante, sem afetar admin */
#participantScreen button:hover,
#participantRoom button:hover,
.participant-screen button:hover,
.participant-room button:hover {
  transform: none !important;
}


/* V95 - Remove hover da sala de participantes de forma ampla */

/* A sala pública/participante não deve ter movimento nem aumento de sombra ao passar o mouse */
body:has(.participant-room:not(.hidden)) .video-card:hover,
body:has(.participant-room:not(.hidden)) .side-panel:hover,
body:has(.participant-room:not(.hidden)) .chat-panel:hover,
body:has(.participant-room:not(.hidden)) .offer-strip:hover,
body:has(.participant-room:not(.hidden)) .room-video-card:hover,
body:has(.participant-room:not(.hidden)) .white-card:hover,
body:has(.participant-room:not(.hidden)) .panel-card:hover,
body:has(.participant-room:not(.hidden)) .live-card:hover,
body:has(.participant-room:not(.hidden)) .public-room-card:hover,
body:has(.participant-room:not(.hidden)) .room-card:hover,

body:has(#publicRoomScreen:not(.hidden)) .video-card:hover,
body:has(#publicRoomScreen:not(.hidden)) .side-panel:hover,
body:has(#publicRoomScreen:not(.hidden)) .chat-panel:hover,
body:has(#publicRoomScreen:not(.hidden)) .offer-strip:hover,
body:has(#publicRoomScreen:not(.hidden)) .room-video-card:hover,
body:has(#publicRoomScreen:not(.hidden)) .white-card:hover,
body:has(#publicRoomScreen:not(.hidden)) .panel-card:hover,
body:has(#publicRoomScreen:not(.hidden)) .live-card:hover,

body:has(#participantRoomScreen:not(.hidden)) .video-card:hover,
body:has(#participantRoomScreen:not(.hidden)) .side-panel:hover,
body:has(#participantRoomScreen:not(.hidden)) .chat-panel:hover,
body:has(#participantRoomScreen:not(.hidden)) .offer-strip:hover,
body:has(#participantRoomScreen:not(.hidden)) .room-video-card:hover,
body:has(#participantRoomScreen:not(.hidden)) .white-card:hover,
body:has(#participantRoomScreen:not(.hidden)) .panel-card:hover,
body:has(#participantRoomScreen:not(.hidden)) .live-card:hover,

body:has(#participantScreen:not(.hidden)) .video-card:hover,
body:has(#participantScreen:not(.hidden)) .side-panel:hover,
body:has(#participantScreen:not(.hidden)) .chat-panel:hover,
body:has(#participantScreen:not(.hidden)) .offer-strip:hover,
body:has(#participantScreen:not(.hidden)) .room-video-card:hover,
body:has(#participantScreen:not(.hidden)) .white-card:hover,
body:has(#participantScreen:not(.hidden)) .panel-card:hover,
body:has(#participantScreen:not(.hidden)) .live-card:hover {
  transform: none !important;
}

/* Mantém a sombra normal, sem alterar no hover, apenas na sala pública */
body:has(.participant-room:not(.hidden)) .video-card:hover,
body:has(.participant-room:not(.hidden)) .side-panel:hover,
body:has(.participant-room:not(.hidden)) .chat-panel:hover,
body:has(.participant-room:not(.hidden)) .offer-strip:hover,
body:has(.participant-room:not(.hidden)) .room-video-card:hover,
body:has(.participant-room:not(.hidden)) .white-card:hover,
body:has(.participant-room:not(.hidden)) .panel-card:hover,
body:has(#publicRoomScreen:not(.hidden)) .video-card:hover,
body:has(#publicRoomScreen:not(.hidden)) .side-panel:hover,
body:has(#publicRoomScreen:not(.hidden)) .chat-panel:hover,
body:has(#publicRoomScreen:not(.hidden)) .offer-strip:hover,
body:has(#participantRoomScreen:not(.hidden)) .video-card:hover,
body:has(#participantRoomScreen:not(.hidden)) .side-panel:hover,
body:has(#participantRoomScreen:not(.hidden)) .chat-panel:hover,
body:has(#participantRoomScreen:not(.hidden)) .offer-strip:hover,
body:has(#participantScreen:not(.hidden)) .video-card:hover,
body:has(#participantScreen:not(.hidden)) .side-panel:hover,
body:has(#participantScreen:not(.hidden)) .chat-panel:hover,
body:has(#participantScreen:not(.hidden)) .offer-strip:hover {
  box-shadow: inherit !important;
}

/* Fallback direto: qualquer tela pública de sala remove hover dos cards principais */
.public-room .video-card:hover,
.public-room .side-panel:hover,
.public-room .chat-panel:hover,
.public-room .offer-strip:hover,
.public-room .room-video-card:hover,
.public-room .white-card:hover,
.public-room .panel-card:hover,
.room-public .video-card:hover,
.room-public .side-panel:hover,
.room-public .chat-panel:hover,
.room-public .offer-strip:hover,
.room-public .room-video-card:hover,
.room-public .white-card:hover,
.room-public .panel-card:hover,
.room-screen .video-card:hover,
.room-screen .side-panel:hover,
.room-screen .chat-panel:hover,
.room-screen .offer-strip:hover,
.room-screen .room-video-card:hover,
.room-screen .white-card:hover,
.room-screen .panel-card:hover {
  transform: none !important;
  box-shadow: inherit !important;
}

/* Remove hover dos botões somente na sala pública */
body:has(.participant-room:not(.hidden)) button:hover,
body:has(#publicRoomScreen:not(.hidden)) button:hover,
body:has(#participantRoomScreen:not(.hidden)) button:hover,
body:has(#participantScreen:not(.hidden)) button:hover,
.public-room button:hover,
.room-public button:hover,
.room-screen button:hover {
  transform: none !important;
}

/* Se o hover estiver vindo de uma classe genérica aplicada ao bloco do chat/vídeo */
body:has(.participant-room:not(.hidden)) [class*="card"]:hover,
body:has(.participant-room:not(.hidden)) [class*="panel"]:hover,
body:has(#publicRoomScreen:not(.hidden)) [class*="card"]:hover,
body:has(#publicRoomScreen:not(.hidden)) [class*="panel"]:hover,
body:has(#participantRoomScreen:not(.hidden)) [class*="card"]:hover,
body:has(#participantRoomScreen:not(.hidden)) [class*="panel"]:hover,
body:has(#participantScreen:not(.hidden)) [class*="card"]:hover,
body:has(#participantScreen:not(.hidden)) [class*="panel"]:hover {
  transform: none !important;
}


/* V96 - Remove hover REAL da sala dos participantes (#liveRoomScreen) */

/*
  A sala dos participantes usa o ID real #liveRoomScreen.
  Aqui zeramos qualquer efeito :hover dentro dela, inclusive cards genéricos.
*/

#liveRoomScreen .dashboard-hero:hover,
#liveRoomScreen .hero-card:hover,
#liveRoomScreen .dashboard-chart-card:hover,
#liveRoomScreen .chart-card:hover,
#liveRoomScreen .dashboard-card:hover,
#liveRoomScreen .stats-card:hover,
#liveRoomScreen .metric-card:hover,
#liveRoomScreen .event-card:hover,
#liveRoomScreen .audit-card:hover,
#liveRoomScreen .admin-card:hover,
#liveRoomScreen .editor-card:hover,
#liveRoomScreen .form-card:hover,
#liveRoomScreen .white-card:hover,
#liveRoomScreen .panel-card:hover,
#liveRoomScreen .video-card:hover,
#liveRoomScreen .side-panel:hover,
#liveRoomScreen .chat-panel:hover,
#liveRoomScreen .offer-strip:hover,
#liveRoomScreen .room-grid:hover,
#liveRoomScreen .video-area:hover,
#liveRoomScreen .participant-top-grid:hover,
#liveRoomScreen .participant-video-header:hover,
#liveRoomScreen .participant-video-placeholder:hover,
#liveRoomScreen .video-placeholder:hover,
#liveRoomScreen .live-room:hover,
#liveRoomScreen [class*="card"]:hover,
#liveRoomScreen [class*="panel"]:hover,
#liveRoomScreen [class*="grid"]:hover,
#liveRoomScreen [class*="room"]:hover,
#liveRoomScreen [class*="video"]:hover,
#liveRoomScreen [class*="chat"]:hover,
#liveRoomScreen [class*="offer"]:hover {
  transform: none !important;
}

/* Mantém a mesma sombra do estado normal, sem aumentar no hover */
#liveRoomScreen .video-card:hover,
#liveRoomScreen .side-panel:hover,
#liveRoomScreen .chat-panel:hover,
#liveRoomScreen .offer-strip:hover,
#liveRoomScreen .white-card:hover,
#liveRoomScreen .panel-card:hover,
#liveRoomScreen [class*="card"]:hover,
#liveRoomScreen [class*="panel"]:hover {
  box-shadow:
    0 22px 55px rgba(23,26,31,.055),
    inset 0 1px 0 rgba(255,255,255,.76) !important;
  border-color: inherit !important;
}

/* Remove hover dos botões só dentro da sala dos participantes */
#liveRoomScreen button:hover,
#liveRoomScreen a:hover,
#liveRoomScreen input:hover,
#liveRoomScreen textarea:hover {
  transform: none !important;
}

/* Se algum hover estiver vindo de transition, desliga transição só na sala */
#liveRoomScreen .video-card,
#liveRoomScreen .side-panel,
#liveRoomScreen .chat-panel,
#liveRoomScreen .offer-strip,
#liveRoomScreen .white-card,
#liveRoomScreen .panel-card,
#liveRoomScreen [class*="card"],
#liveRoomScreen [class*="panel"],
#liveRoomScreen [class*="grid"],
#liveRoomScreen [class*="room"],
#liveRoomScreen [class*="video"],
#liveRoomScreen [class*="chat"],
#liveRoomScreen [class*="offer"] {
  transition: none !important;
}

/* Caso o hover esteja no body quando a sala está visível */
body:has(#liveRoomScreen:not(.hidden)) .video-card:hover,
body:has(#liveRoomScreen:not(.hidden)) .side-panel:hover,
body:has(#liveRoomScreen:not(.hidden)) .chat-panel:hover,
body:has(#liveRoomScreen:not(.hidden)) .offer-strip:hover,
body:has(#liveRoomScreen:not(.hidden)) .white-card:hover,
body:has(#liveRoomScreen:not(.hidden)) .panel-card:hover,
body:has(#liveRoomScreen:not(.hidden)) [class*="card"]:hover,
body:has(#liveRoomScreen:not(.hidden)) [class*="panel"]:hover,
body:has(#liveRoomScreen:not(.hidden)) [class*="grid"]:hover,
body:has(#liveRoomScreen:not(.hidden)) [class*="room"]:hover,
body:has(#liveRoomScreen:not(.hidden)) [class*="video"]:hover,
body:has(#liveRoomScreen:not(.hidden)) [class*="chat"]:hover,
body:has(#liveRoomScreen:not(.hidden)) [class*="offer"]:hover {
  transform: none !important;
}

/* Regra final de segurança: nenhuma animação/movimento em hover dentro da sala */
#liveRoomScreen *:hover {
  transform: none !important;
}


/* V97 - Remove contorno/borda/outline no hover da sala dos participantes */

/* Nenhum bloco da sala do participante deve mudar visualmente ao passar o mouse */
#liveRoomScreen .video-card:hover,
#liveRoomScreen .side-panel:hover,
#liveRoomScreen .chat-panel:hover,
#liveRoomScreen .offer-strip:hover,
#liveRoomScreen .room-grid:hover,
#liveRoomScreen .video-area:hover,
#liveRoomScreen .white-card:hover,
#liveRoomScreen .panel-card:hover,
#liveRoomScreen [class*="card"]:hover,
#liveRoomScreen [class*="panel"]:hover,
#liveRoomScreen [class*="grid"]:hover,
#liveRoomScreen [class*="video"]:hover,
#liveRoomScreen [class*="chat"]:hover,
#liveRoomScreen [class*="offer"]:hover {
  transform: none !important;
  outline: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

/* Mantém especificamente o contorno interno original do vídeo removido no hover */
#liveRoomScreen .video-card,
#liveRoomScreen .side-panel,
#liveRoomScreen .chat-panel,
#liveRoomScreen .offer-strip,
#liveRoomScreen .white-card,
#liveRoomScreen .panel-card {
  outline: none !important;
}

/* Remove foco/active também, para não aparecer borda ao clicar */
#liveRoomScreen .video-card:focus,
#liveRoomScreen .video-card:focus-visible,
#liveRoomScreen .video-card:active,
#liveRoomScreen .side-panel:focus,
#liveRoomScreen .side-panel:focus-visible,
#liveRoomScreen .side-panel:active,
#liveRoomScreen .chat-panel:focus,
#liveRoomScreen .chat-panel:focus-visible,
#liveRoomScreen .chat-panel:active,
#liveRoomScreen .offer-strip:focus,
#liveRoomScreen .offer-strip:focus-visible,
#liveRoomScreen .offer-strip:active,
#liveRoomScreen [class*="card"]:focus,
#liveRoomScreen [class*="card"]:focus-visible,
#liveRoomScreen [class*="card"]:active,
#liveRoomScreen [class*="panel"]:focus,
#liveRoomScreen [class*="panel"]:focus-visible,
#liveRoomScreen [class*="panel"]:active {
  transform: none !important;
  outline: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

/* Se alguma regra estiver aplicando border preto no hover, neutraliza no wrapper inteiro */
#liveRoomScreen *:hover,
#liveRoomScreen *:focus,
#liveRoomScreen *:focus-visible,
#liveRoomScreen *:active {
  outline: none !important;
}

/* Recoloca somente as sombras normais nos elementos que precisam parecer cards,
   mas sem mudança no hover. */
#liveRoomScreen .video-card,
#liveRoomScreen .side-panel,
#liveRoomScreen .chat-panel,
#liveRoomScreen .offer-strip {
  transition: none !important;
}

/* Remove qualquer borda preta herdada no hover */
body:has(#liveRoomScreen:not(.hidden)) .video-card:hover,
body:has(#liveRoomScreen:not(.hidden)) .side-panel:hover,
body:has(#liveRoomScreen:not(.hidden)) .chat-panel:hover,
body:has(#liveRoomScreen:not(.hidden)) .offer-strip:hover,
body:has(#liveRoomScreen:not(.hidden)) [class*="card"]:hover,
body:has(#liveRoomScreen:not(.hidden)) [class*="panel"]:hover {
  outline: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}


/* V98 - Hover ZERO na sala dos participantes: mantém exatamente o estado normal */

/*
  O ajuste anterior removia a sombra no hover.
  Agora o hover fica idêntico ao estado normal: sem movimento, sem borda nova,
  sem remover sombra e sem transição.
*/

#liveRoomScreen .video-card,
#liveRoomScreen .side-panel,
#liveRoomScreen .chat-panel,
#liveRoomScreen .offer-strip {
  transform: none !important;
  outline: none !important;
  transition: none !important;
  border-color: rgba(255,255,255,.86) !important;
  box-shadow:
    0 22px 55px rgba(23,26,31,.055),
    inset 0 1px 0 rgba(255,255,255,.76) !important;
}

#liveRoomScreen .video-card:hover,
#liveRoomScreen .side-panel:hover,
#liveRoomScreen .chat-panel:hover,
#liveRoomScreen .offer-strip:hover,
#liveRoomScreen .video-card:focus,
#liveRoomScreen .side-panel:focus,
#liveRoomScreen .chat-panel:focus,
#liveRoomScreen .offer-strip:focus,
#liveRoomScreen .video-card:active,
#liveRoomScreen .side-panel:active,
#liveRoomScreen .chat-panel:active,
#liveRoomScreen .offer-strip:active {
  transform: none !important;
  outline: none !important;
  border-color: rgba(255,255,255,.86) !important;
  box-shadow:
    0 22px 55px rgba(23,26,31,.055),
    inset 0 1px 0 rgba(255,255,255,.76) !important;
}

/* Mantém os elementos internos sem qualquer reação visual no hover */
#liveRoomScreen .video-card *,
#liveRoomScreen .side-panel *,
#liveRoomScreen .chat-panel *,
#liveRoomScreen .offer-strip * {
  transition: none !important;
}

#liveRoomScreen .video-card *:hover,
#liveRoomScreen .side-panel *:hover,
#liveRoomScreen .chat-panel *:hover,
#liveRoomScreen .offer-strip *:hover {
  transform: none !important;
  outline: none !important;
}

/* Remove qualquer regra global de hover que esteja pegando na sala pública */
body:has(#liveRoomScreen:not(.hidden)) .video-card:hover,
body:has(#liveRoomScreen:not(.hidden)) .side-panel:hover,
body:has(#liveRoomScreen:not(.hidden)) .chat-panel:hover,
body:has(#liveRoomScreen:not(.hidden)) .offer-strip:hover {
  transform: none !important;
  outline: none !important;
  border-color: rgba(255,255,255,.86) !important;
  box-shadow:
    0 22px 55px rgba(23,26,31,.055),
    inset 0 1px 0 rgba(255,255,255,.76) !important;
}

/* Botões e campos também não sobem nem mudam ao passar o mouse na sala */
#liveRoomScreen button:hover,
#liveRoomScreen a:hover,
#liveRoomScreen input:hover,
#liveRoomScreen textarea:hover {
  transform: none !important;
  outline: none !important;
}

/* Regra final: nenhuma mudança de posição em absolutamente nada dentro da sala */
#liveRoomScreen *:hover {
  transform: none !important;
}


/* V100 - Logo clicável para Dashboard */
.admin-logo,
.brand-logo,
.top-logo,
.app-logo,
.logo,
.admin-brand img,
.topbar img {
  cursor: pointer;
}


/* V101 - Ajustes tela de login ADM */
.admin-login-subtitle {
  margin: 18px 0 26px;
  text-align: center;
  color: #6f7783;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.login-hint,
.admin-login-hint,
.test-credentials,
.credentials-hint {
  display: none !important;
}


/* V103 - Remove somente o bloco de credenciais de teste, sem ocultar o login */
.login-test,
.test-login,
.test-credentials,
.demo-credentials,
.credentials-hint {
  display: none !important;
}


/* V107 - Configurações / Usuários */
#mainSettings.hidden {
  display: none !important;
}

#mainSettings.active:not(.hidden),
#mainSettings:not(.hidden) {
  display: block !important;
}

.settings-page {
  width: 100%;
}

.settings-title-row {
  margin-bottom: 18px;
}

.settings-title-row h1 {
  margin-bottom: 8px;
}

.settings-page-description {
  margin: 0;
  color: #69727f;
  font-size: 14px;
  font-weight: 650;
}

.settings-card {
  background:
    radial-gradient(circle at 96% 92%, rgba(184,232,106,.07), transparent 36%),
    rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.90);
  border-radius: 26px;
  padding: 24px;
  margin-bottom: 22px;
  box-shadow:
    0 24px 54px rgba(20, 24, 30, .075),
    0 8px 20px rgba(20, 24, 30, .045),
    inset 0 1px 0 rgba(255,255,255,.88);
}

.settings-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.settings-card-header h3 {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #171b22;
}

.settings-card-header p {
  margin: 0;
  color: #69727f;
  font-size: 14px;
  font-weight: 650;
}

.settings-user-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.settings-user-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.settings-user-form span {
  font-size: 12px;
  font-weight: 900;
  color: #454c57;
}

.settings-user-form input,
.settings-user-form select,
.settings-user-search {
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(18,22,29,.10);
  background: rgba(255,255,255,.72);
  color: #171b22;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 650;
  outline: none;
}

.settings-user-form input:focus,
.settings-user-form select:focus,
.settings-user-search:focus {
  border-color: rgba(184,232,106,.80);
  box-shadow: 0 0 0 4px rgba(184,232,106,.16);
}

.settings-add-user-btn {
  min-width: 176px;
}

.settings-users-header {
  align-items: center;
}

.settings-user-search {
  width: min(360px, 100%);
}

.settings-users-list {
  display: grid;
  gap: 12px;
}

.settings-user-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(18,22,29,.08);
  border-radius: 18px;
  background: rgba(255,255,255,.62);
}

.settings-user-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.settings-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #11151b;
  font-size: 14px;
  font-weight: 900;
  background: linear-gradient(90deg, rgba(167,230,239,.80), rgba(184,232,106,.86));
  flex: 0 0 auto;
}

.settings-user-info strong {
  display: block;
  color: #171b22;
  font-size: 14px;
  line-height: 1.2;
}

.settings-user-info span {
  display: block;
  color: #69727f;
  font-size: 13px;
  line-height: 1.45;
  margin-top: 2px;
}

.settings-user-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.settings-user-actions button {
  height: 36px;
  border: none;
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(238,241,231,.82);
  color: #171b22;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.settings-user-actions button.danger {
  background: rgba(255,226,229,.72);
  color: #a12835;
}

.settings-user-protected {
  color: #69727f;
  font-size: 12px;
  font-weight: 900;
}

.top-nav-btn[data-main-view="settings"] {
  white-space: nowrap;
}

@media (max-width: 860px) {
  .settings-user-form {
    grid-template-columns: 1fr;
  }

  .settings-card-header,
  .settings-user-item {
    flex-direction: column;
    align-items: stretch;
  }

  .settings-user-actions {
    flex-wrap: wrap;
  }
}


/* V108 - Minha Conta, Modais e ajustes de usuários */
.account-card {
  margin-top: 0;
}

.account-profile-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.account-avatar {
  width: 58px;
  height: 58px;
  font-size: 17px;
}

.settings-user-avatar.has-photo,
.account-avatar.has-photo {
  overflow: hidden;
  padding: 0;
}

.settings-user-avatar.has-photo img,
.account-avatar.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-profile-info strong {
  display: block;
  color: #171b22;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
}

.account-profile-info span {
  display: block;
  color: #69727f;
  font-size: 14px;
  font-weight: 700;
  margin-top: 4px;
}

.account-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-inline-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.soft-btn {
  height: 44px;
  border: none;
  border-radius: 999px;
  padding: 0 18px;
  background: rgba(238,241,231,.82);
  color: #171b22;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.stage-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 21, 27, .28);
  backdrop-filter: blur(10px);
}

.stage-modal-backdrop.hidden,
.stage-modal.hidden {
  display: none !important;
}

.stage-modal {
  width: min(860px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 28px;
  background:
    radial-gradient(circle at 96% 92%, rgba(184,232,106,.09), transparent 36%),
    rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.92);
  box-shadow:
    0 34px 80px rgba(20, 24, 30, .18),
    0 12px 32px rgba(20, 24, 30, .10);
}

.stage-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 26px 18px;
  border-bottom: 1px solid rgba(18,22,29,.07);
}

.stage-modal-header h2 {
  margin: 0;
  color: #171b22;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.stage-modal-close {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: rgba(238,241,231,.82);
  color: #171b22;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.stage-modal-body {
  padding: 22px 26px;
  display: grid;
  gap: 16px;
}

.stage-modal-body label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stage-modal-body label span {
  font-size: 12px;
  font-weight: 900;
  color: #454c57;
}

.stage-modal-body input,
.stage-modal-body select {
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(18,22,29,.10);
  background: rgba(255,255,255,.74);
  color: #171b22;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 650;
  outline: none;
}

.stage-modal-body input:focus,
.stage-modal-body select:focus {
  border-color: rgba(184,232,106,.80);
  box-shadow: 0 0 0 4px rgba(184,232,106,.16);
}

.stage-modal-body textarea {
  min-height: 86px;
  border-radius: 14px;
  border: 1px solid rgba(18,22,29,.10);
  background: rgba(255,255,255,.74);
  color: #171b22;
  padding: 13px 14px;
  font-size: 14px;
  font-weight: 650;
  outline: none;
  resize: vertical;
}

.stage-modal-body textarea:focus {
  border-color: rgba(184,232,106,.80);
  box-shadow: 0 0 0 4px rgba(184,232,106,.16);
}

.stage-poll-modal {
  width: min(620px, 100%);
}

.poll-modal-body {
  gap: 18px;
}

.poll-options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.poll-switch-row {
  width: fit-content;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 10px !important;
  cursor: pointer;
}

.poll-switch-row input[type="checkbox"] {
  appearance: none;
  width: 46px;
  height: 20px;
  flex: 0 0 46px;
  border-radius: 999px;
  border: 1px solid rgba(18,22,29,.14);
  background: rgba(255,255,255,.78);
  padding: 0;
  position: relative;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.poll-switch-row input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(29,36,34,.42);
  transform: translateY(-50%);
  transition: transform .18s ease, background .18s ease;
}

.poll-switch-row input[type="checkbox"]:checked {
  border-color: transparent;
  background: linear-gradient(90deg, #A7E6EF 0%, #B6EEC8 50%, #B8E86A 100%);
}

.poll-switch-row input[type="checkbox"]:checked::after {
  background: #ffffff;
  transform: translate(25px, -50%);
}

.poll-switch-row input[type="checkbox"]:focus-visible {
  box-shadow: 0 0 0 4px rgba(184,232,106,.16);
}

@media (max-width: 640px) {
  .poll-options-grid {
    grid-template-columns: 1fr;
  }
}

.modal-helper,
.modal-text {
  margin: 0;
  color: #69727f;
  font-size: 14px;
  font-weight: 650;
}

.modal-text.strong {
  color: #171b22;
  font-weight: 800;
}

.stage-modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 26px 26px;
}

.stage-delete-confirm-modal,
.stage-safety-confirm-modal {
  width: min(460px, 100%);
}

.stage-delete-confirm-btn {
  border: 1px solid rgba(238, 96, 96, .24);
  border-radius: 999px;
  padding: 12px 18px;
  background: rgba(255, 244, 244, .92);
  color: #9f2424;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.stage-delete-confirm-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(238, 96, 96, .42);
  background: rgba(255, 235, 235, .98);
  box-shadow: 0 12px 28px rgba(166, 44, 44, .12);
}

#addUserSettingsCard.hidden {
  display: none !important;
}

@media (max-width: 760px) {
  .account-form {
    grid-template-columns: 1fr;
  }

  .stage-modal-actions {
    flex-direction: column;
    align-items: stretch;
  }
}


/* V109 - Permissões de membro */
#addUserSettingsCard.hidden,
#settingsUsersCard.hidden {
  display: none !important;
}


/* V119 - Borda gradiente na foto de perfil da Minha conta */
.account-avatar {
  position: relative;
  border: 3px solid transparent;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(90deg, #A7E6EF 0%, #B6EEC8 50%, #B8E86A 100%) border-box;
  box-shadow: 0 10px 26px rgba(20, 24, 30, .10);
}

.account-avatar.has-photo {
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(90deg, #A7E6EF 0%, #B6EEC8 50%, #B8E86A 100%) border-box;
}

.account-avatar.has-photo img {
  border-radius: 999px;
}


/* V120 - Hover verde nos botões solicitados */
#removeMyAccountPhotoBtn:hover,
.settings-user-actions button:hover,
.settings-user-actions button.danger:hover {
  background: #B8E86A !important;
  color: #11151b !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(184, 232, 106, .28);
}

/* V31 - Ajuste solicitado: sobe a sala do participante e evita corte no chat/oferta */
body:has(#liveRoomScreen:not(.hidden)) .app {
  padding-top: 8px;
  padding-bottom: 12px;
}

body:has(#liveRoomScreen:not(.hidden)) .screen {
  min-height: calc(100vh - 20px);
}

body:has(#liveRoomScreen:not(.hidden)) .live-room {
  margin-top: 0;
}

body:has(#liveRoomScreen:not(.hidden)) .participant-top-grid {
  margin-bottom: 10px;
}

body:has(#liveRoomScreen:not(.hidden)) .participant-video-header {
  min-height: 78px;
  max-height: 78px;
}

body:has(#liveRoomScreen:not(.hidden)) .participant-room-brand {
  min-height: 78px;
}

body:has(#liveRoomScreen:not(.hidden)) .room-logo-free {
  width: 138px;
  height: 78px;
  flex-basis: 138px;
}

@media (min-width: 1121px) {
  body:has(#liveRoomScreen:not(.hidden)) .live-room .side-panel {
    height: min(
      clamp(
        620px,
        calc((min(calc(100vw - 56px), 1440px) - 432px) * 0.5625 + 126px),
        790px
      ),
      calc(100vh - 108px)
    ) !important;
    max-height: calc(100vh - 108px) !important;
  }
}

@media (max-width: 1120px) {
  body:has(#liveRoomScreen:not(.hidden)) .app {
    padding-top: 12px;
  }

  body:has(#liveRoomScreen:not(.hidden)) .participant-video-header,
  body:has(#liveRoomScreen:not(.hidden)) .participant-room-brand {
    min-height: 0;
    max-height: none;
  }
}

/* V132 - Ajuste pontual: reduzir título "Responder Ana" no suporte admin */
.support-thread-header h4,
#supportActiveTitle {
  font-size: 16px !important;
  line-height: 1.25 !important;
}

/* V176 - Pendências e presença no Suporte admin */
.tab-btn.support-tab-unread {
  border-color: rgba(182, 238, 200, .95);
  box-shadow: 0 0 0 2px rgba(167, 230, 239, .32), 0 10px 24px rgba(184, 232, 106, .2);
}

.tab-btn.support-tab-unread:not(.active) {
  background:
    linear-gradient(#fbfcf7, #fbfcf7) padding-box,
    linear-gradient(90deg, #A7E6EF 0%, #B6EEC8 50%, #B8E86A 100%) border-box;
  border: 1px solid transparent;
}

.support-user.support-user-unread {
  background:
    linear-gradient(#fbfcf7, #fbfcf7) padding-box,
    linear-gradient(90deg, #A7E6EF 0%, #B6EEC8 50%, #B8E86A 100%) border-box;
  border: 1px solid transparent;
  box-shadow: 0 0 0 2px rgba(167, 230, 239, .24), 0 10px 22px rgba(184, 232, 106, .18);
}

.support-user.support-user-unread.active {
  box-shadow: 0 0 0 2px rgba(167, 230, 239, .34), 0 12px 26px rgba(184, 232, 106, .22);
}

.support-presence {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.support-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .12);
}

.support-presence.online .support-status-dot {
  background: #8ee85f;
  box-shadow: 0 0 0 3px rgba(142, 232, 95, .18);
}

/* V139 - seletor de data com estilo Stage */
.stage-datetime-display {
  cursor: pointer;
  background: #fbfcf7;
}

.stage-date-picker {
  position: absolute;
  z-index: 9999;
  width: min(560px, calc(100vw - 32px));
  background: rgba(255, 255, 255, .98);
  border: 1px solid rgba(66, 71, 81, .10);
  border-radius: 28px;
  padding: 18px;
  box-shadow: 0 28px 70px rgba(18, 20, 28, .16);
  color: var(--text);
}

.stage-date-picker.hidden {
  display: none;
}

.stage-date-picker-head,
.stage-picker-actions,
.stage-time-selects {
  display: flex;
  align-items: center;
}

.stage-date-picker-head {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.stage-date-picker-head strong {
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-weight: 900;
  text-transform: capitalize;
}

.stage-picker-nav,
.stage-picker-actions button {
  border: none;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 900;
}

.stage-picker-nav {
  width: 42px;
  height: 42px;
  background: #f1f4ea;
  color: var(--text);
  font-size: 24px;
  line-height: 1;
}

.stage-picker-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 18px;
}

.stage-weekdays,
.stage-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
}

.stage-weekdays {
  margin-bottom: 8px;
}

.stage-weekdays span {
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  color: var(--muted);
}

.stage-day-btn {
  border: none;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  background: #f7f9f2;
  color: var(--text);
  cursor: pointer;
  font-weight: 900;
}

.stage-day-btn:hover,
.stage-picker-nav:hover,
.stage-picker-actions button:hover {
  background: rgba(199, 255, 0, .25);
}

.stage-day-btn.muted {
  color: #a0a6ae;
  background: transparent;
}

.stage-day-btn.selected {
  background: var(--lime);
  color: var(--dark);
  box-shadow: 0 10px 28px rgba(199, 255, 0, .30);
}

.stage-time-wrap {
  background: #f7f9f2;
  border-radius: 22px;
  padding: 16px;
}

.stage-time-wrap label {
  margin-bottom: 12px;
}

.stage-time-selects {
  gap: 8px;
}

.stage-time-selects select {
  margin: 0;
  padding: 12px 10px;
  border-radius: 14px;
  text-align: center;
  font-weight: 900;
  background: #fff;
}

.stage-time-selects span {
  font-weight: 900;
  color: var(--muted);
}

.stage-picker-actions {
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.stage-picker-actions button {
  padding: 12px 16px;
  background: #f1f4ea;
  color: var(--text);
}

.stage-picker-actions .stage-picker-apply {
  background: var(--lime);
  color: var(--dark);
}

@media (max-width: 640px) {
  .stage-date-picker {
    width: calc(100vw - 24px);
    left: 12px !important;
  }

  .stage-picker-body {
    grid-template-columns: 1fr;
  }
}

/* V140 - Estilo Stage para botões nativos de upload */
input[type="file"] {
  width: 100%;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(17, 20, 29, 0.08);
  border-radius: 22px;
  background: rgba(251, 252, 247, 0.92);
  color: #6f7580;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

input[type="file"]::file-selector-button {
  margin-right: 14px;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--lime);
  color: #11141d;
  font-weight: 900;
  cursor: pointer;
  transition: opacity .18s ease, box-shadow .18s ease;
}

input[type="file"]::-webkit-file-upload-button {
  margin-right: 14px;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--lime);
  color: #11141d;
  font-weight: 900;
  cursor: pointer;
  transition: opacity .18s ease, box-shadow .18s ease;
}

input[type="file"]:hover::file-selector-button,
input[type="file"]:hover::-webkit-file-upload-button {
  opacity: .9;
  box-shadow: 0 10px 24px rgba(199, 255, 0, .24);
}

input[type="file"]:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 4px rgba(199, 255, 0, .18);
}

/* V141 - Aviso interno Stage para confirmações de sucesso */
.stage-notice {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 19, 24, .22);
}

.stage-notice.hidden {
  display: none !important;
}

.stage-notice-card {
  width: min(420px, 100%);
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, .84);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow);
  text-align: center;
}

.stage-notice-card p {
  margin: 0 0 18px;
  color: var(--text);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
}

.stage-notice-card button {
  border: 0;
  border-radius: 999px;
  padding: 12px 24px;
  background: var(--lime);
  color: var(--dark);
  font-weight: 900;
  cursor: pointer;
}

/* V142 - Logo admin maior e ícones refinados no menu superior */
#adminPanelScreen .admin-logo-img {
  width: 104px !important;
  height: 54px !important;
  object-fit: contain;
}

#adminPanelScreen .top-main-nav {
  margin-left: auto;
}

#adminPanelScreen .top-nav-icon {
  width: 18px !important;
  height: 18px !important;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  opacity: .84;
}

#adminPanelScreen .top-nav-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#adminPanelScreen .top-nav-btn[data-main-view="dashboard"] .top-nav-icon svg {
  fill: currentColor;
  stroke: none;
}

#adminPanelScreen .top-nav-btn.active .top-nav-icon {
  opacity: 1;
}

@media (max-width: 720px) {
  #adminPanelScreen .admin-logo-img {
    width: 90px !important;
    height: 48px !important;
  }
}

/* V145 - Controle da sala com abertura automática */
#eventTabEvent #openRoomBtn,
#eventTabEvent .two-buttons + .helper-text {
  display: none !important;
}

#eventTabEvent #closeRoomBtn.room-close-state {
  min-width: 140px;
}

#eventTabEvent #closeRoomBtn.room-close-state:not(.is-closed):hover {
  background: rgba(184, 232, 106, .18);
  border-color: rgba(130, 190, 40, .32);
  color: #171b22;
  box-shadow: 0 12px 28px rgba(120, 170, 45, .12);
  transform: translateY(-1px);
  cursor: pointer;
}

#eventTabEvent #closeRoomBtn.room-close-state.is-closed {
  color: #8a1717;
  background: #fff1f1;
  border: 1px solid #ffc7c7;
  cursor: default;
  opacity: 1;
}

#eventTabEvent #closeRoomBtn.room-close-state.is-closed:hover {
  color: #ffffff;
  background: #c73737;
  box-shadow: 0 12px 30px rgba(199, 55, 55, .22);
  transform: none;
}

/* V152 - Estados dos botões operacionais em Chat/Suporte */
.admin-chat-controls .stage-btn-positive {
  background: var(--lime);
  color: var(--dark);
  border: 1px solid rgba(30, 38, 32, .08);
}

.admin-chat-controls .stage-btn-positive:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(199, 255, 0, .28);
}

.admin-chat-controls #openPollPanelBtn {
  background: rgba(238, 241, 231, .96);
  border: 1px solid rgba(167, 230, 239, .45);
  box-shadow: 0 8px 18px rgba(18, 22, 29, .05);
  transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}

.admin-chat-controls #openPollPanelBtn:hover {
  background: rgba(199, 255, 0, .2);
  border-color: rgba(199, 255, 0, .7);
  color: var(--dark);
  box-shadow: 0 14px 32px rgba(167, 230, 239, .28);
  transform: translateY(-2px);
}

.admin-chat-controls #openPollPanelBtn.stage-btn-positive {
  background: var(--lime);
  color: var(--dark);
  border-color: rgba(30, 38, 32, .08);
  box-shadow: 0 10px 24px rgba(199, 255, 0, .24);
}

.admin-chat-controls #openPollPanelBtn.stage-btn-positive:hover {
  background: var(--lime);
  border-color: rgba(30, 38, 32, .08);
  box-shadow: 0 16px 36px rgba(199, 255, 0, .4);
}

.admin-chat-controls .stage-btn-attention {
  background: #fff7f7;
  color: #8a1717;
  border: 1px solid #ffc7c7;
}

.admin-chat-controls .stage-btn-attention:hover {
  background: #c73737;
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(199, 55, 55, .20);
  transform: translateY(-1px);
}

.admin-chat-controls .stage-btn-active,
.admin-chat-controls .stage-btn-active:disabled {
  background: var(--lime);
  color: var(--dark);
  border: 1px solid rgba(30, 38, 32, .08);
  opacity: 1;
  cursor: default;
}

/* V153 - Switches da aba Entrada e logo no estilo Stage */
#eventTabEntry .check,
#eventTabEvent .check:has(#toggleLogo) {
  gap: 10px;
  margin: 4px 0;
  cursor: pointer;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.15;
  min-height: 22px;
}

#eventTabEntry .check input[type="checkbox"],
#eventTabEvent #toggleLogo {
  appearance: none;
  -webkit-appearance: none;
  width: 46px;
  height: 18px;
  margin: 0;
  padding: 0 !important;
  min-height: 0 !important;
  max-height: 18px;
  line-height: 0;
  border-radius: 999px;
  border: 1px solid rgba(29, 36, 34, .18);
  background: #ffffff;
  box-sizing: border-box;
  position: relative;
  flex: 0 0 auto;
  display: block;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

#eventTabEntry .check input[type="checkbox"]::after,
#eventTabEvent #toggleLogo::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(29, 36, 34, .54);
  position: absolute;
  top: 50%;
  left: 3px;
  transform: translateY(-50%);
  opacity: 1;
  transition: background .16s ease, transform .16s ease;
}

#eventTabEntry .check input[type="checkbox"]:checked,
#eventTabEvent #toggleLogo:checked {
  background: linear-gradient(135deg, #c7ff00 0%, #9eeaff 100%);
  border-color: rgba(29, 36, 34, .08);
  box-shadow: 0 4px 12px rgba(199, 255, 0, .16);
}

#eventTabEntry .check input[type="checkbox"]:checked::after,
#eventTabEvent #toggleLogo:checked::after {
  background: #ffffff;
  transform: translate(28px, -50%);
}

#eventTabEntry .check input[type="checkbox"]:hover,
#eventTabEvent #toggleLogo:hover {
  border-color: rgba(29, 36, 34, .34);
}

#eventTabEntry .check input[type="checkbox"]:focus-visible,
#eventTabEvent #toggleLogo:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(199, 255, 0, .24);
}

/* V158 - Funil da oferta na Auditoria */
.audit-offer-funnel {
  width: calc((100% - 64px) / 5);
  margin: 24px 0 28px;
  padding: 19px 14px 21px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(255, 255, 255, .92);
  box-shadow: 0 18px 42px rgba(23, 26, 31, .07);
}

.audit-offer-funnel > h3 {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.08;
  color: var(--dark);
}

.audit-funnel-gauges {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.audit-funnel-gauge {
  --gauge-value: 0;
  position: relative;
  width: 190px;
  min-height: 112px;
  display: grid;
  place-items: center;
  padding: 0;
  border: none;
  background: transparent;
}

.audit-gauge-svg {
  position: absolute;
  top: 0;
  left: 50%;
  width: 176px;
  height: 106px;
  overflow: visible;
  transform: translateX(-50%);
}

.audit-gauge-base,
.audit-gauge-progress {
  fill: none;
  stroke-width: 12;
  stroke-linecap: round;
}

.audit-gauge-base {
  stroke: rgba(29, 36, 34, .08);
}

.audit-gauge-progress {
  stroke-dasharray: var(--gauge-value) 100;
  transition: stroke-dasharray .28s ease, filter .18s ease;
  filter: drop-shadow(0 6px 10px rgba(165, 230, 219, .16));
}

.audit-gauge-progress:hover {
  filter: drop-shadow(0 9px 15px rgba(134, 220, 207, .26)) brightness(1.04);
}

.audit-gauge-content {
  position: absolute;
  top: 31px;
  left: 50%;
  width: 154px;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 5px;
  text-align: center;
  pointer-events: none;
}

.audit-gauge-content strong {
  color: rgba(29, 36, 34, .58);
  font-size: 13px;
  line-height: 1;
  font-weight: 500;
  order: 1;
}

.audit-gauge-content span {
  color: var(--dark);
  font-size: 25px;
  line-height: 1;
  font-weight: 520;
  order: 2;
}

.audit-gauge-content p {
  margin: 2px 0 0;
  color: rgba(29, 36, 34, .56);
  font-size: 12px;
  line-height: 1.18;
  font-weight: 520;
  order: 3;
}

@media (max-width: 640px) {
  .audit-offer-funnel {
    width: 100%;
  }

  .audit-funnel-gauge {
    width: 190px;
    min-height: 110px;
  }

  .audit-gauge-svg {
    width: 170px;
    height: 102px;
  }

  .audit-gauge-content {
    top: 30px;
  }
}



/* V161 - Aba Enquete na sala do participante */
.participant-poll-content {
  display: grid;
  gap: 16px;
  align-content: start;
  align-items: start;
  min-height: min(70vh, 660px);
  max-height: min(78vh, 760px);
  overflow-y: auto;
  padding: 18px;
  padding-bottom: 22px;
  border-radius: 20px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(18,22,29,.08);
}

#pollTab #participantPollContent.participant-poll-content {
  min-height: min(74vh, 700px);
}

.participant-poll-preview {
  padding: 16px;
  border: 1px solid rgba(18,22,29,.08);
  border-radius: 18px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 14px 34px rgba(18,22,29,.06);
}

.participant-poll-empty {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.participant-poll-preview h3 {
  margin: 0 0 12px;
  color: var(--dark);
  font-size: 15px;
  line-height: 1.28;
  font-weight: 760;
}

.pinned-poll-box {
  margin: 0 0 12px;
}

.pinned-poll-box.hidden {
  display: none !important;
}

.pinned-poll-box .participant-poll-preview {
  position: relative;
  padding: 13px;
  border: 1px solid transparent;
  border-radius: 16px;
  background:
    linear-gradient(rgba(255,255,255,.94), rgba(255,255,255,.94)) padding-box,
    linear-gradient(90deg, #A7E6EF 0%, #B6EEC8 50%, #B8E86A 100%) border-box;
  box-shadow: 0 12px 28px rgba(167,230,239,.18), 0 0 0 4px rgba(199,255,0,.08);
}

.pinned-poll-box .participant-poll-preview h3 {
  margin-bottom: 10px;
  font-size: 16px;
}

.pinned-poll-box .participant-poll-options {
  gap: 8px;
}

.pinned-poll-admin-result {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.pinned-poll-votes {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.participant-poll-preview-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.participant-poll-preview-list li {
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(238,241,231,.66);
  color: var(--text);
  font-size: 14px;
  font-weight: 750;
}


/* V164 - Ajuste visual das abas com Enquete */
#participantTabs,
.admin-preview-tabs {
  position: relative;
  border-bottom: 1px solid var(--line);
  gap: 6px;
  padding: 8px;
}

#participantTabs.has-poll,
.admin-preview-tabs.has-poll {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#participantTabs.has-poll.has-offer,
.admin-preview-tabs.has-poll.has-offer {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#participantTabs.has-poll .tab-btn,
.admin-preview-tabs.has-poll .tab-btn {
  padding: 10px 8px;
  white-space: nowrap;
  line-height: 1;
}

#participantTabs::after,
.admin-preview-tabs::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -1px;
  height: 1px;
  background: var(--line);
  pointer-events: none;
  z-index: 0;
}

#participantTabs .tab-btn,
.admin-preview-tabs .tab-btn {
  position: relative;
  z-index: 1;
}

#participantPollTabBtn,
#adminPreviewPollTabBtn {
  transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

#participantPollTabBtn:hover,
#adminPreviewPollTabBtn:hover {
  background: rgba(199,255,0,.18);
  color: var(--dark);
  box-shadow: 0 8px 20px rgba(167,230,239,.22);
  transform: translateY(-1px);
}

#participantPollTabBtn.active,
#adminPreviewPollTabBtn.active {
  background: var(--lime);
  color: var(--dark);
}

#pollSettingsModal .stage-modal-actions .primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(199,255,0,.35);
  filter: brightness(1.02);
}

#pollSettingsModal .stage-modal-actions .secondary-btn:hover,
#pollSettingsModal .stage-modal-actions .soft-btn:hover {
  background: rgba(199,255,0,.14);
  box-shadow: 0 10px 24px rgba(167,230,239,.2);
  transform: translateY(-1px);
}

/* V178 - Recurso/arquivo liberado */
#participantTabs.has-resource,
.admin-preview-tabs.has-resource {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#participantTabs.has-resource.has-offer,
.admin-preview-tabs.has-resource.has-offer,
#participantTabs.has-poll.has-resource,
.admin-preview-tabs.has-poll.has-resource {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#participantTabs.has-poll.has-resource.has-offer,
.admin-preview-tabs.has-poll.has-resource.has-offer {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

#participantTabs.has-resource .tab-btn,
.admin-preview-tabs.has-resource .tab-btn {
  padding: 10px 6px;
  white-space: nowrap;
}

.resource-tab-btn {
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.resource-tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  pointer-events: none;
}

.resource-tab-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: rgba(91,128,58,.78);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .18s ease, filter .18s ease;
}

.resource-tab-btn:hover {
  background: rgba(199,255,0,.18);
  color: var(--dark);
  box-shadow: 0 8px 20px rgba(167,230,239,.22);
  transform: translateY(-1px);
}

.resource-tab-btn:hover .resource-tab-icon svg {
  stroke: #7fb300;
  filter: drop-shadow(0 0 5px rgba(184,232,106,.42));
}

.resource-tab-btn.active {
  background: var(--lime);
  color: var(--dark);
}

.resource-tab-btn.active .resource-tab-icon svg {
  stroke: #1f2a16;
  filter: drop-shadow(0 0 4px rgba(255,255,255,.5));
}

#openResourcePanelBtn {
  transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

#openResourcePanelBtn:hover {
  background: rgba(199,255,0,.14);
  box-shadow: 0 10px 24px rgba(167,230,239,.2);
  transform: translateY(-1px);
}

#openResourcePanelBtn.resource-control-active {
  background: var(--lime);
  color: var(--dark);
  border-color: transparent;
  box-shadow: 0 12px 30px rgba(199,255,0,.24);
}

#resourceSettingsModal .stage-modal-actions .secondary-btn,
#resourceSettingsModal .stage-modal-actions .soft-btn {
  cursor: pointer;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}

#resourceSettingsModal .stage-modal-actions .secondary-btn:hover,
#resourceSettingsModal .stage-modal-actions .soft-btn:hover {
  background: rgba(199,255,0,.14);
  color: var(--dark);
  border-color: rgba(184,232,106,.38);
  box-shadow: 0 10px 24px rgba(167,230,239,.2);
  transform: translateY(-1px);
}

.resource-content {
  min-height: min(70vh, 660px);
  max-height: min(72vh, 700px);
  display: grid;
  gap: 14px;
  align-content: start;
  overflow-y: auto;
  padding: 18px;
  padding-bottom: 22px;
  border-radius: 20px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(18,22,29,.08);
}

.resource-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(18,22,29,.08);
  box-shadow: 0 14px 34px rgba(18,22,29,.06);
  opacity: 1;
  visibility: visible;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}

.resource-card:hover {
  opacity: 1;
  visibility: visible;
  border-color: rgba(184,232,106,.38);
  box-shadow: 0 18px 40px rgba(167,230,239,.14);
  transform: translateY(-1px);
}

#liveRoomScreen .resource-card:hover,
#participantRoomScreen .resource-card:hover,
#publicRoomScreen .resource-card:hover,
body:has(#liveRoomScreen:not(.hidden)) .resource-card:hover,
body:has(#participantRoomScreen:not(.hidden)) .resource-card:hover,
body:has(#publicRoomScreen:not(.hidden)) .resource-card:hover {
  background: rgba(255,255,255,.96) !important;
  border-color: rgba(18,22,29,.10) !important;
  box-shadow: 0 18px 40px rgba(18,22,29,.08) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.resource-kicker {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.resource-card h3 {
  margin: 0;
  color: var(--dark);
  font-size: 15px;
  line-height: 1.28;
  font-weight: 760;
}

.resource-file-name {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  word-break: break-word;
}

.resource-download-btn {
  justify-self: start;
}

/* V164.1 - Voto e resultado visual da Enquete */
.participant-poll-options {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.participant-poll-option {
  position: relative;
  overflow: hidden;
  min-height: 46px;
  border: 1px solid rgba(18,22,29,.09);
  border-radius: 16px;
  background: rgba(255,255,255,.72);
}

.participant-poll-option-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--poll-percent, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, #A7E6EF 0%, #B6EEC8 50%, #B8E86A 100%);
  opacity: .72;
  transition: width .24s ease, filter .18s ease;
}

.participant-poll-option-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.participant-poll-option-percent {
  flex: 0 0 auto;
  color: var(--dark);
  font-weight: 900;
}

.participant-poll-option.is-voted {
  border-color: rgba(184,232,106,.72);
  box-shadow: 0 0 0 3px rgba(184,232,106,.14);
}

.participant-poll-option-action {
  width: 100%;
  border: 1px solid rgba(18,22,29,.09);
  border-radius: 16px;
  background: rgba(255,255,255,.78);
  color: var(--text);
  padding: 13px 14px;
  text-align: left;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.participant-poll-option-action:hover {
  border-color: rgba(184,232,106,.70);
  box-shadow: 0 10px 22px rgba(166,231,220,.18);
  transform: translateY(-1px);
}

.participant-poll-helper {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

/* V199 - Mobile participant room polish */
@media (max-width: 480px) {
  .app {
    padding: 10px;
  }

  #participantLoginScreen.entry-screen {
    place-items: start center;
    padding: 12px 0;
    overflow-y: auto !important;
  }

  #participantLoginScreen:not(.hidden) .entry-card {
    padding: 20px;
    border-radius: 22px;
  }

  #participantLoginScreen .participant-entry-logo-wrap {
    margin-bottom: 12px;
  }

  #participantLoginScreen .participant-entry-logo-wrap img {
    max-height: 96px;
  }

  .live-room {
    width: 100%;
    max-width: 100%;
  }

  .participant-top-grid,
  .live-room .room-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .participant-video-header {
    align-items: flex-start !important;
    gap: 10px !important;
  }

  .participant-room-brand {
    gap: 10px !important;
    min-width: 0;
  }

  .participant-room-brand h2 {
    font-size: 18px !important;
    line-height: 1.18 !important;
  }

  .participant-video-placeholder,
  .live-room .video-placeholder {
    min-height: 210px !important;
  }

  .live-room .side-panel {
    width: 100% !important;
    height: min(62vh, 540px) !important;
    min-height: 420px !important;
    max-height: none !important;
    overflow: hidden !important;
  }

  #participantTabs {
    grid-template-columns: repeat(auto-fit, minmax(62px, 1fr)) !important;
    gap: 5px !important;
    padding: 7px !important;
  }

  #participantTabs.has-poll,
  #participantTabs.has-resource,
  #participantTabs.has-offer,
  #participantTabs.has-poll.has-offer,
  #participantTabs.has-resource.has-offer,
  #participantTabs.has-poll.has-resource,
  #participantTabs.has-poll.has-resource.has-offer {
    grid-template-columns: repeat(auto-fit, minmax(62px, 1fr)) !important;
  }

  #participantTabs .tab-btn {
    min-width: 0;
    padding: 9px 5px !important;
    font-size: 12px;
    line-height: 1.05;
  }

  #participantTabs .resource-tab-icon,
  #participantTabs .resource-tab-icon svg {
    width: 20px;
    height: 20px;
  }

  .live-room .tab-content {
    padding: 12px !important;
  }

  .live-room .tab-content.active {
    min-height: 0 !important;
    overflow: hidden !important;
  }

  .live-room #chatMessages,
  .live-room .support-messages,
  .live-room #privateSupportAnswers {
    min-height: 0 !important;
    overflow-y: auto !important;
    padding-right: 2px;
  }

  .live-room .chat-composer,
  .live-room .support-composer {
    gap: 6px !important;
    margin-top: 10px !important;
  }

  .live-room .chat-composer input,
  .live-room .support-composer input {
    min-width: 0;
    padding: 12px 12px;
    font-size: 14px;
  }

  .live-room .chat-composer button,
  .live-room .support-composer button {
    flex: 0 0 auto;
    padding: 0 12px;
    font-size: 13px;
  }

  .participant-poll-content,
  .resource-content {
    min-height: 360px !important;
    max-height: 52vh !important;
    overflow-y: auto !important;
    padding: 14px !important;
    gap: 12px;
  }

  .participant-poll-preview,
  .resource-card {
    padding: 14px;
  }

  #offerTab.active {
    overflow-y: auto !important;
  }

  #offerTab .offer-content {
    padding-bottom: 10px;
  }

  .live-room #offerTab .offer-image,
  #offerImagePreview {
    min-height: 128px;
    max-height: 180px;
    font-size: 28px;
  }

  .live-room .offer-inline {
    min-height: auto !important;
    padding: 14px !important;
    gap: 10px !important;
  }

  .live-room .offer-inline a,
  #offerButton {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .live-room .side-panel {
    height: min(66vh, 620px) !important;
    min-height: 500px !important;
    max-height: none !important;
  }

  #participantTabs {
    grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)) !important;
  }

  .participant-poll-content,
  .resource-content {
    min-height: 440px !important;
    max-height: 58vh !important;
    overflow-y: auto !important;
  }
}

/* V200 - Mobile participant room compact */
@media (max-width: 480px) {
  #liveRoomScreen.live-room {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 100svh;
    margin: 0;
  }

  #liveRoomScreen .participant-top-grid {
    display: block !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  #liveRoomScreen .participant-video-header {
    display: block !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  #liveRoomScreen .participant-room-brand,
  #liveRoomScreen .participant-chat-header-spacer {
    display: none !important;
  }

  #liveRoomScreen #audienceBadge {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 8;
    padding: 7px 10px;
    gap: 6px;
    font-size: 12px;
    line-height: 1;
    box-shadow: 0 12px 28px rgba(17,19,24,.16);
  }

  #liveRoomScreen #audienceBadge.hidden {
    display: none !important;
  }

  #liveRoomScreen #audienceBadge .live-dot {
    width: 7px;
    height: 7px;
    box-shadow: 0 0 0 4px rgba(255,59,59,.12);
  }

  #liveRoomScreen .room-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin: 0 !important;
  }

  #liveRoomScreen .video-area,
  #liveRoomScreen .video-card {
    width: 100% !important;
    min-width: 0 !important;
  }

  #liveRoomScreen .video-card {
    padding: 6px !important;
    border-radius: 20px !important;
  }

  #liveRoomScreen .participant-video-placeholder,
  #liveRoomScreen .video-placeholder {
    width: 100% !important;
    min-height: 218px !important;
    border-radius: 18px !important;
  }

  #liveRoomScreen .play-icon {
    width: 56px;
    height: 56px;
    font-size: 22px;
    margin-bottom: 10px;
  }

  #liveRoomScreen .participant-video-placeholder p {
    margin: 0;
    font-size: 13px;
  }

  #liveRoomScreen .side-panel {
    height: calc(100svh - 246px - env(safe-area-inset-bottom)) !important;
    min-height: 390px !important;
    max-height: none !important;
    border-radius: 20px !important;
    overflow: hidden !important;
  }

  #participantTabs {
    grid-template-columns: repeat(auto-fit, minmax(58px, 1fr)) !important;
    gap: 4px !important;
    padding: 6px !important;
  }

  #participantTabs.has-poll,
  #participantTabs.has-resource,
  #participantTabs.has-offer,
  #participantTabs.has-poll.has-offer,
  #participantTabs.has-resource.has-offer,
  #participantTabs.has-poll.has-resource,
  #participantTabs.has-poll.has-resource.has-offer {
    grid-template-columns: repeat(auto-fit, minmax(58px, 1fr)) !important;
  }

  #participantTabs .tab-btn {
    padding: 8px 4px !important;
    font-size: 11px;
    line-height: 1;
  }

  #participantTabs .resource-tab-icon,
  #participantTabs .resource-tab-icon svg {
    width: 18px;
    height: 18px;
  }

  #liveRoomScreen .tab-content {
    padding: 10px !important;
    min-height: 0 !important;
  }

  #liveRoomScreen .tab-content.active {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    overflow: hidden !important;
  }

  #liveRoomScreen #chatMessages,
  #liveRoomScreen .support-messages,
  #liveRoomScreen #privateSupportAnswers {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
  }

  #liveRoomScreen .chat-composer,
  #liveRoomScreen .support-composer {
    flex: 0 0 auto !important;
    margin-top: 8px !important;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
  }

  #liveRoomScreen .chat-composer input,
  #liveRoomScreen .support-composer input {
    min-width: 0;
    padding: 11px 11px;
    font-size: 14px;
  }

  #liveRoomScreen .chat-composer button,
  #liveRoomScreen .support-composer button {
    min-width: 64px;
    padding: 0 10px;
    font-size: 12px;
  }

  #liveRoomScreen .participant-poll-content,
  #liveRoomScreen .resource-content {
    min-height: 0 !important;
    height: 100% !important;
    max-height: none !important;
    overflow-y: auto !important;
  }

  #liveRoomScreen #offerTab.active {
    overflow-y: auto !important;
    padding-bottom: calc(10px + env(safe-area-inset-bottom)) !important;
  }

  #liveRoomScreen .offer-content h3 {
    font-size: 22px;
  }

  #liveRoomScreen .offer-content p {
    font-size: 14px;
  }

  #liveRoomScreen .price {
    font-size: 20px;
  }
}

/* V201 - Mobile live room full width and compact chat */
.live-room .messages,
.live-room .support-messages,
.admin-messages,
.support-thread-messages {
  gap: 8px;
}

.live-room .message,
.admin-messages .message,
.support-thread-messages .message {
  padding: 9px 11px;
  border-radius: 14px;
}

.live-room .message strong,
.admin-messages .message strong,
.support-thread-messages .message strong {
  margin-bottom: 3px;
  line-height: 1.18;
}

.live-room .message p,
.admin-messages .message p,
.support-thread-messages .message p {
  line-height: 1.32;
}

.chat-message.system-join,
.message.system-join,
.chat-bubble.system-join {
  padding: 6px 11px !important;
  max-width: calc(100% - 18px) !important;
}

.chat-message.system-join p,
.message.system-join p,
.chat-bubble.system-join p,
.chat-message.system-join .message-text,
.message.system-join .message-text,
.chat-bubble.system-join .message-text {
  font-size: 12px !important;
  line-height: 1.18 !important;
}

@media (max-width: 480px) {
  #participantLoginScreen:not(.hidden) {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  #participantLoginScreen:not(.hidden) .entry-card {
    width: 100% !important;
    max-width: calc(100vw - 28px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  #liveRoomScreen.live-room {
    padding: 8px 0 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  #liveRoomScreen .room-grid,
  #liveRoomScreen .video-area,
  #liveRoomScreen .side-panel,
  #participantTabs,
  #liveRoomScreen .tab-content {
    width: 100% !important;
    max-width: 100% !important;
  }

  #liveRoomScreen .room-grid {
    gap: 8px !important;
  }

  #liveRoomScreen .video-card {
    width: 100% !important;
    max-width: 100% !important;
    padding: 4px !important;
    border-radius: 14px !important;
    box-shadow: 0 12px 32px rgba(17,19,24,.08) !important;
  }

  #liveRoomScreen .participant-video-placeholder,
  #liveRoomScreen .video-placeholder {
    width: 100% !important;
    min-height: 214px !important;
    border-radius: 12px !important;
  }

  #liveRoomScreen #audienceBadge {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    z-index: 8;
    width: fit-content;
    margin: 0 8px 7px auto !important;
    padding: 6px 9px !important;
    font-size: 11px !important;
    line-height: 1 !important;
    box-shadow: 0 8px 22px rgba(17,19,24,.12) !important;
  }

  #liveRoomScreen .participant-top-grid,
  #liveRoomScreen .participant-video-header {
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  #liveRoomScreen .side-panel {
    border-radius: 14px !important;
    height: calc(100svh - 258px - env(safe-area-inset-bottom)) !important;
    min-height: 388px !important;
  }

  #participantTabs {
    padding: 5px !important;
    gap: 4px !important;
  }

  #participantTabs .tab-btn {
    padding: 8px 3px !important;
  }

  #liveRoomScreen .tab-content {
    padding: 9px !important;
  }

  #liveRoomScreen #chatMessages,
  #liveRoomScreen .support-messages,
  #liveRoomScreen #privateSupportAnswers {
    gap: 7px !important;
  }

  #liveRoomScreen .message {
    padding: 8px 10px !important;
    border-radius: 13px !important;
  }

  #liveRoomScreen .message strong {
    margin-bottom: 2px !important;
  }

  #liveRoomScreen .message p {
    line-height: 1.28 !important;
  }

  #liveRoomScreen .offer-inline {
    display: none !important;
  }
}

/* V202 - Mobile live room tighter layout */
@media (max-width: 480px) {
  #liveRoomScreen.live-room {
    width: calc(100% + 12px) !important;
    max-width: calc(100% + 12px) !important;
    margin-left: -6px !important;
    margin-right: -6px !important;
    padding: 26px 0 0 !important;
  }

  #liveRoomScreen #audienceBadge {
    position: absolute !important;
    top: 4px !important;
    right: 8px !important;
    left: auto !important;
    margin: 0 !important;
    padding: 5px 8px !important;
    font-size: 10.5px !important;
    gap: 5px !important;
    box-shadow: 0 8px 18px rgba(17,19,24,.11) !important;
  }

  #liveRoomScreen #audienceBadge .live-dot {
    width: 6px !important;
    height: 6px !important;
    box-shadow: 0 0 0 3px rgba(255,59,59,.12) !important;
  }

  #liveRoomScreen .room-grid {
    gap: 4px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  #liveRoomScreen .video-area,
  #liveRoomScreen .video-card,
  #liveRoomScreen .participant-video-placeholder,
  #liveRoomScreen .video-placeholder,
  #liveRoomScreen .side-panel,
  #participantTabs,
  #liveRoomScreen .tab-content {
    width: 100% !important;
    max-width: 100% !important;
  }

  #liveRoomScreen .video-card {
    padding: 3px !important;
    border-radius: 12px !important;
  }

  #liveRoomScreen .participant-video-placeholder,
  #liveRoomScreen .video-placeholder {
    min-height: 204px !important;
    border-radius: 10px !important;
  }

  #liveRoomScreen .play-icon {
    width: 50px !important;
    height: 50px !important;
    margin-bottom: 7px !important;
  }

  #liveRoomScreen .side-panel {
    height: calc(100svh - 224px - env(safe-area-inset-bottom)) !important;
    min-height: 398px !important;
    border-radius: 12px !important;
  }

  #participantTabs {
    padding: 4px !important;
    gap: 3px !important;
  }

  #participantTabs .tab-btn {
    padding: 7px 2px !important;
    font-size: 10.8px !important;
  }

  #liveRoomScreen .tab-content {
    padding: 7px !important;
  }

  #liveRoomScreen #chatMessages,
  #liveRoomScreen .support-messages,
  #liveRoomScreen #privateSupportAnswers {
    gap: 5px !important;
  }

  #liveRoomScreen .message {
    padding: 6px 8px !important;
    border-radius: 11px !important;
  }

  #liveRoomScreen .message strong {
    margin-bottom: 1px !important;
    font-size: 12px !important;
    line-height: 1.12 !important;
  }

  #liveRoomScreen .message p {
    font-size: 13px !important;
    line-height: 1.22 !important;
  }

  #liveRoomScreen .chat-message.system-join,
  #liveRoomScreen .message.system-join,
  #liveRoomScreen .chat-bubble.system-join {
    padding: 5px 9px !important;
    max-width: calc(100% - 12px) !important;
  }

  #liveRoomScreen .chat-message.system-join p,
  #liveRoomScreen .message.system-join p,
  #liveRoomScreen .chat-bubble.system-join p,
  #liveRoomScreen .chat-message.system-join .message-text,
  #liveRoomScreen .message.system-join .message-text,
  #liveRoomScreen .chat-bubble.system-join .message-text {
    font-size: 11.5px !important;
    line-height: 1.14 !important;
  }

  #liveRoomScreen .chat-composer,
  #liveRoomScreen .support-composer {
    gap: 6px !important;
    margin-top: 6px !important;
    padding-bottom: calc(12px + env(safe-area-inset-bottom)) !important;
  }

  #liveRoomScreen .chat-composer input,
  #liveRoomScreen .support-composer input {
    padding: 10px 10px !important;
    font-size: 13px !important;
  }

  #liveRoomScreen .chat-composer button,
  #liveRoomScreen .support-composer button {
    min-width: 58px !important;
    padding: 0 8px !important;
    font-size: 11.5px !important;
  }

  #liveRoomScreen .participant-poll-content,
  #liveRoomScreen .resource-content {
    padding: 8px !important;
    gap: 8px !important;
  }

  #liveRoomScreen .participant-poll-preview,
  #liveRoomScreen .resource-card {
    padding: 10px !important;
    border-radius: 13px !important;
    gap: 8px !important;
  }

  #liveRoomScreen .participant-poll-preview h3 {
    margin-bottom: 7px !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
  }

  #liveRoomScreen .participant-poll-options,
  #liveRoomScreen .participant-poll-preview-list {
    gap: 6px !important;
  }

  #liveRoomScreen .participant-poll-option,
  #liveRoomScreen .participant-poll-option-content {
    min-height: 36px !important;
  }

  #liveRoomScreen .participant-poll-option-content {
    padding: 7px 9px !important;
    font-size: 12.5px !important;
    gap: 8px !important;
  }

  #liveRoomScreen .participant-poll-option-action {
    padding: 9px 10px !important;
    border-radius: 12px !important;
    font-size: 12.5px !important;
  }

  #liveRoomScreen .participant-poll-helper {
    margin-top: 0 !important;
    font-size: 11px !important;
  }

  #liveRoomScreen .resource-card h3 {
    font-size: 14px !important;
    line-height: 1.18 !important;
  }

  #liveRoomScreen .resource-kicker {
    font-size: 10px !important;
  }

  #liveRoomScreen .resource-file-name {
    font-size: 12.5px !important;
  }

  #liveRoomScreen .resource-download-btn {
    padding: 10px 14px !important;
    font-size: 12px !important;
  }

  #liveRoomScreen #offerTab.active {
    padding: 7px !important;
    padding-bottom: calc(12px + env(safe-area-inset-bottom)) !important;
  }

  #liveRoomScreen .offer-content {
    display: grid !important;
    gap: 7px !important;
    align-content: start !important;
  }

  #liveRoomScreen .offer-label {
    display: none !important;
  }

  #liveRoomScreen .offer-content h3 {
    margin: 0 !important;
    font-size: 18px !important;
    line-height: 1.15 !important;
  }

  #liveRoomScreen .offer-content p {
    margin: 0 !important;
    font-size: 12.5px !important;
    line-height: 1.28 !important;
  }

  #liveRoomScreen .offer-image,
  #liveRoomScreen #offerImagePreview {
    min-height: 104px !important;
    max-height: 138px !important;
    margin: 2px 0 !important;
    border-radius: 14px !important;
    font-size: 24px !important;
  }

  #liveRoomScreen .price {
    margin: 0 !important;
    font-size: 17px !important;
    line-height: 1.15 !important;
  }

  #liveRoomScreen #offerButton {
    padding: 11px 12px !important;
    font-size: 12.5px !important;
    line-height: 1.12 !important;
  }
}

/* V203 - Mobile live room bottom fit and offer image */
@media (max-width: 480px) {
  #liveRoomScreen.live-room {
    min-height: 100svh !important;
    max-height: 100svh !important;
    overflow: hidden !important;
  }

  #liveRoomScreen .room-grid {
    min-height: 0 !important;
    max-height: calc(100svh - 26px - env(safe-area-inset-bottom)) !important;
    overflow: hidden !important;
  }

  #liveRoomScreen .side-panel {
    display: flex !important;
    flex-direction: column !important;
    height: calc(100svh - 252px - env(safe-area-inset-bottom)) !important;
    min-height: 0 !important;
    max-height: calc(100svh - 252px - env(safe-area-inset-bottom)) !important;
    overflow: hidden !important;
  }

  #liveRoomScreen .tab-content.active {
    flex: 1 1 auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
  }

  #liveRoomScreen #chatMessages,
  #liveRoomScreen .support-messages,
  #liveRoomScreen #privateSupportAnswers,
  #liveRoomScreen .participant-poll-content,
  #liveRoomScreen .resource-content,
  #liveRoomScreen #offerTab.active {
    min-height: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  #liveRoomScreen #chatMessages,
  #liveRoomScreen .support-messages,
  #liveRoomScreen #privateSupportAnswers {
    flex: 1 1 auto !important;
    max-height: none !important;
  }

  #liveRoomScreen .participant-poll-content,
  #liveRoomScreen .resource-content {
    height: 100% !important;
    max-height: none !important;
    padding-bottom: calc(10px + env(safe-area-inset-bottom)) !important;
  }

  #liveRoomScreen .chat-composer,
  #liveRoomScreen .support-composer {
    flex: 0 0 auto !important;
    padding-bottom: calc(18px + env(safe-area-inset-bottom)) !important;
  }

  #liveRoomScreen #offerTab.active {
    padding-bottom: calc(18px + env(safe-area-inset-bottom)) !important;
  }

  #liveRoomScreen .offer-content {
    min-height: 0 !important;
  }

  #liveRoomScreen .offer-image,
  #liveRoomScreen #offerImagePreview {
    min-height: 136px !important;
    max-height: none !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    overflow: hidden !important;
  }

  #liveRoomScreen .offer-image img,
  #liveRoomScreen #offerImagePreview img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }
}

/* V204 - Mobile poll stable size and lower bottom limit */
@media (max-width: 480px) {
  #liveRoomScreen .side-panel {
    height: calc(100svh - 238px - env(safe-area-inset-bottom)) !important;
    max-height: calc(100svh - 238px - env(safe-area-inset-bottom)) !important;
  }

  #liveRoomScreen .chat-composer,
  #liveRoomScreen .support-composer {
    padding-bottom: calc(8px + env(safe-area-inset-bottom)) !important;
  }

  #liveRoomScreen .participant-poll-content {
    gap: 6px !important;
    padding: 7px !important;
    padding-bottom: calc(8px + env(safe-area-inset-bottom)) !important;
  }

  #liveRoomScreen .participant-poll-preview,
  #liveRoomScreen .pinned-poll-box .participant-poll-preview {
    padding: 9px !important;
    gap: 6px !important;
    border-radius: 12px !important;
  }

  #liveRoomScreen .participant-poll-preview h3,
  #liveRoomScreen .pinned-poll-box .participant-poll-preview h3 {
    margin-bottom: 5px !important;
    font-size: 13.5px !important;
    line-height: 1.16 !important;
  }

  #liveRoomScreen .participant-poll-options,
  #liveRoomScreen .pinned-poll-box .participant-poll-options {
    gap: 5px !important;
  }

  #liveRoomScreen .participant-poll-option,
  #liveRoomScreen .participant-poll-option-content {
    min-height: 32px !important;
    border-radius: 11px !important;
  }

  #liveRoomScreen .participant-poll-option-content {
    padding: 5px 8px !important;
    font-size: 12px !important;
    line-height: 1.14 !important;
  }

  #liveRoomScreen .participant-poll-option-percent {
    font-size: 12px !important;
    font-weight: 850 !important;
  }

  #liveRoomScreen .participant-poll-option-action {
    padding: 8px 9px !important;
    border-radius: 11px !important;
    font-size: 12px !important;
    line-height: 1.14 !important;
  }

  #liveRoomScreen .participant-poll-helper {
    margin: -1px 0 0 !important;
    font-size: 10.5px !important;
    line-height: 1.15 !important;
  }
}

/* V205 - Support unread participant and final mobile bottom fit */
.live-room .messages,
.admin-messages,
.support-thread-messages {
  gap: 6px;
}

.live-room .message,
.admin-messages .message,
.support-thread-messages .message {
  padding: 7px 10px;
  border-radius: 12px;
}

.live-room .message strong,
.admin-messages .message strong,
.support-thread-messages .message strong {
  margin-bottom: 2px;
  line-height: 1.12;
}

.live-room .message p,
.admin-messages .message p,
.support-thread-messages .message p {
  line-height: 1.24;
}

.chat-message.system-join,
.message.system-join,
.chat-bubble.system-join {
  padding: 5px 10px !important;
}

@media (max-width: 480px) {
  #liveRoomScreen .side-panel {
    height: calc(100svh - 244px - env(safe-area-inset-bottom)) !important;
    max-height: calc(100svh - 244px - env(safe-area-inset-bottom)) !important;
  }

  #liveRoomScreen .chat-composer,
  #liveRoomScreen .support-composer {
    padding-bottom: calc(12px + env(safe-area-inset-bottom)) !important;
  }

  #liveRoomScreen .tab-content.active {
    padding-bottom: 6px !important;
  }

  .inner-event-layout {
    grid-template-columns: 1fr !important;
  }

  .admin-live-preview {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  .admin-live-preview .video-card {
    height: auto !important;
    min-height: 220px !important;
    max-height: none !important;
  }

  .admin-live-preview .video-placeholder {
    min-height: 210px !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
  }

  .side-panel.admin-side-preview,
  .admin-side-preview {
    width: 100% !important;
    min-height: 520px !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
  }

  .admin-preview-tabs {
    grid-template-columns: repeat(auto-fit, minmax(58px, 1fr)) !important;
    gap: 4px !important;
    padding: 5px !important;
  }

  .admin-preview-tabs .tab-btn {
    padding: 8px 4px !important;
    font-size: 11px !important;
    line-height: 1 !important;
  }

  .admin-preview-tab.active {
    min-height: 0 !important;
    overflow: hidden !important;
  }

  #adminPreviewChat.active {
    display: flex !important;
    flex-direction: column !important;
    min-height: 430px !important;
    max-height: 58vh !important;
  }

  #adminPreviewChat .admin-messages {
    flex: 1 1 auto !important;
    min-height: 220px !important;
    max-height: none !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .admin-chat-composer {
    flex: 0 0 auto !important;
    gap: 6px !important;
    padding-bottom: 8px !important;
  }

  .admin-chat-composer input {
    min-width: 0 !important;
  }

  #adminPreviewSupport.active {
    min-height: 520px !important;
    overflow: hidden !important;
  }

  .support-console {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    height: 100% !important;
    max-height: 62vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .support-people {
    max-height: 150px !important;
    overflow-y: auto !important;
  }

  .support-thread {
    min-height: 330px !important;
  }

  .support-thread-messages {
    min-height: 160px !important;
    max-height: 250px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .support-reply-bar {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
  }

  .support-reply-bar input {
    flex: 1 1 100% !important;
    min-width: 0 !important;
  }

  .support-reply-bar button {
    flex: 1 1 calc(50% - 3px) !important;
    min-width: 0 !important;
    padding: 10px 8px !important;
    font-size: 12px !important;
  }
}

/* V207 - Resource tab contained inside room panel */
#liveRoomScreen #resourceTab.active,
#adminPreviewResource.admin-preview-tab.active {
  min-height: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box;
}

#liveRoomScreen #resourceTab.active {
  display: flex !important;
  flex-direction: column !important;
}

#liveRoomScreen .resource-content,
#adminPreviewResource .resource-content {
  width: 100%;
  max-width: 100%;
  min-height: 0 !important;
  max-height: 100% !important;
  box-sizing: border-box;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
}

#liveRoomScreen #resourceTab.active .resource-content {
  flex: 1 1 auto !important;
  height: auto !important;
}

#liveRoomScreen .resource-card,
#adminPreviewResource .resource-card {
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 480px) {
  #liveRoomScreen #resourceTab.active {
    padding-bottom: calc(8px + env(safe-area-inset-bottom)) !important;
  }

  #liveRoomScreen #resourceTab.active .resource-content {
    height: auto !important;
    min-height: 0 !important;
    max-height: 100% !important;
    padding-bottom: calc(8px + env(safe-area-inset-bottom)) !important;
  }
}

/* V208 - Admin resource size restore and mobile bottom nudge */
#adminPreviewResource.admin-preview-tab.active {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: 0 !important;
}

#adminPreviewResource .resource-content {
  flex: 1 1 auto !important;
  height: 100% !important;
  min-height: 100% !important;
  max-height: 100% !important;
  width: 100% !important;
}

@media (max-width: 480px) {
  #liveRoomScreen .side-panel {
    height: calc(100svh - 248px - env(safe-area-inset-bottom)) !important;
    max-height: calc(100svh - 248px - env(safe-area-inset-bottom)) !important;
  }

  #liveRoomScreen .tab-content.active {
    padding-bottom: 8px !important;
  }

  #liveRoomScreen .chat-composer,
  #liveRoomScreen .support-composer {
    padding-bottom: calc(14px + env(safe-area-inset-bottom)) !important;
  }
}

/* V215 - Poll tab contained inside room panel */
#liveRoomScreen #pollTab.active,
#adminPreviewPoll.admin-preview-tab.active {
  min-height: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box;
}

#liveRoomScreen #pollTab.active {
  display: flex !important;
  flex-direction: column !important;
}

#liveRoomScreen #pollTab .participant-poll-content,
#adminPreviewPoll .participant-poll-content {
  width: 100%;
  max-width: 100%;
  min-height: 0 !important;
  max-height: 100% !important;
  box-sizing: border-box;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
}

#liveRoomScreen #pollTab.active .participant-poll-content {
  flex: 1 1 auto !important;
  height: auto !important;
}

#adminPreviewPoll.admin-preview-tab.active {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

#adminPreviewPoll .participant-poll-content {
  flex: 1 1 auto !important;
  height: 100% !important;
}

@media (max-width: 480px) {
  #liveRoomScreen #pollTab.active {
    padding-bottom: calc(8px + env(safe-area-inset-bottom)) !important;
  }

  #liveRoomScreen #pollTab.active .participant-poll-content {
    height: auto !important;
    min-height: 0 !important;
    max-height: 100% !important;
    padding-bottom: calc(8px + env(safe-area-inset-bottom)) !important;
  }
}

/* V216 - Mobile poll bottom breathing room */
@media (max-width: 480px) {
  #liveRoomScreen #pollTab.active {
    padding-bottom: calc(12px + env(safe-area-inset-bottom)) !important;
  }

  #liveRoomScreen #pollTab .participant-poll-content {
    max-height: calc(100% - 8px) !important;
    padding-bottom: calc(12px + env(safe-area-inset-bottom)) !important;
  }
}

/* V216.1 - Mobile poll extra bottom breathing room */
@media (max-width: 480px) {
  #liveRoomScreen #pollTab.active {
    padding-bottom: calc(18px + env(safe-area-inset-bottom)) !important;
  }

  #liveRoomScreen #pollTab .participant-poll-content {
    max-height: calc(100% - 22px) !important;
    padding-bottom: calc(18px + env(safe-area-inset-bottom)) !important;
  }
}

/* V218 - Admin chat links */
.stage-admin-chat-link {
  display: inline;
  font-weight: 800;
  text-decoration: none;
  color: #2f8a72;
  background: linear-gradient(90deg, #A7E6EF 0%, #34c7ab 45%, #8fcf1f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stage-admin-chat-link:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* V219 - Emoji picker e envio mobile no Chat */
.chat-composer,
.admin-chat-composer {
  position: relative;
}

.chat-composer .chat-emoji-btn,
.admin-chat-composer .chat-emoji-btn {
  flex: 0 0 42px;
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(18,22,29,.1);
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 22px rgba(18,22,29,.08);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

.chat-composer .chat-emoji-btn:hover,
.admin-chat-composer .chat-emoji-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(184,232,106,.5);
  background: rgba(247,255,232,.96);
  box-shadow: 0 14px 28px rgba(167,230,239,.22);
}

#liveRoomScreen .chat-composer .chat-emoji-btn:hover {
  width: 42px;
  min-width: 42px;
  height: 42px;
  border-radius: 999px;
  border-color: rgba(184,232,106,.5);
  background: rgba(247,255,232,.96);
  box-shadow: 0 14px 28px rgba(167,230,239,.22);
}

.chat-emoji-panel {
  position: absolute;
  right: 82px;
  bottom: calc(100% + 8px);
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(5, 34px);
  gap: 6px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(18,22,29,.09);
  background: rgba(255,255,255,.98);
  box-shadow: 0 18px 42px rgba(18,22,29,.16);
}

.chat-emoji-panel.hidden {
  display: none;
}

.chat-emoji-option {
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 11px;
  background: rgba(238,241,231,.72);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: transform .14s ease, background .14s ease, box-shadow .14s ease;
}

.chat-emoji-option:hover {
  transform: translateY(-1px);
  background: rgba(199,255,0,.2);
  box-shadow: 0 8px 18px rgba(167,230,239,.18);
}

@media (max-width: 480px) {
  #liveRoomScreen .chat-composer,
  .admin-chat-composer {
    gap: 6px !important;
  }

  #liveRoomScreen .chat-composer .chat-emoji-btn,
  .admin-chat-composer .chat-emoji-btn {
    flex-basis: 36px;
    width: 36px;
    min-width: 36px;
    height: 36px;
    font-size: 17px;
  }

  #liveRoomScreen .chat-composer .chat-emoji-btn:hover {
    width: 36px;
    min-width: 36px;
    height: 36px;
  }

  #liveRoomScreen .chat-composer .chat-send-btn,
  .admin-chat-composer .chat-send-btn {
    flex: 0 0 42px;
    width: 42px;
    min-width: 42px !important;
    height: 38px;
    padding: 0 !important;
    font-size: 0 !important;
  }

  #liveRoomScreen .chat-composer .chat-send-btn::before,
  .admin-chat-composer .chat-send-btn::before {
    content: "➤";
    display: inline-block;
    font-size: 18px;
    line-height: 1;
    transform: translateX(1px);
  }

  #liveRoomScreen .chat-emoji-panel,
  .admin-chat-composer .chat-emoji-panel {
    right: 46px;
    grid-template-columns: repeat(5, 31px);
    gap: 5px;
    padding: 8px;
  }

  #liveRoomScreen .chat-emoji-option,
  .admin-chat-composer .chat-emoji-option {
    width: 31px;
    height: 31px;
    font-size: 17px;
  }
}

/* V219.1 - Participant emoji hover and compact mobile size */
#liveRoomScreen .chat-composer button.chat-emoji-btn,
#liveRoomScreen .chat-composer .chat-emoji-btn {
  flex: 0 0 42px !important;
  width: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  height: 42px !important;
  padding: 0 !important;
  border: 1px solid rgba(18,22,29,.1) !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.92) !important;
  box-shadow: 0 10px 22px rgba(18,22,29,.08) !important;
}

#liveRoomScreen .chat-composer button.chat-emoji-btn:hover,
#liveRoomScreen .chat-composer .chat-emoji-btn:hover {
  flex: 0 0 42px !important;
  width: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  height: 42px !important;
  border: 1px solid rgba(184,232,106,.56) !important;
  border-radius: 999px !important;
  background: rgba(247,255,232,.96) !important;
  box-shadow: 0 0 0 4px rgba(184,232,106,.14), 0 14px 28px rgba(167,230,239,.22) !important;
  transform: none !important;
}

@media (max-width: 480px) {
  #liveRoomScreen .chat-composer button.chat-emoji-btn,
  #liveRoomScreen .chat-composer .chat-emoji-btn,
  #liveRoomScreen .chat-composer button.chat-emoji-btn:hover,
  #liveRoomScreen .chat-composer .chat-emoji-btn:hover {
    flex: 0 0 32px !important;
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    font-size: 15px !important;
  }
}

/* S623A - Mobile participant room fit */
@media (max-width: 768px) {
  #liveRoomScreen.live-room {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100svh !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 auto !important;
    overflow: visible !important;
  }

  #liveRoomScreen .room-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  #liveRoomScreen .video-area {
    width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  #liveRoomScreen .video-card {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  #liveRoomScreen .participant-video-placeholder,
  #liveRoomScreen .video-placeholder {
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    overflow: hidden !important;
  }

  #liveRoomScreen .participant-video-placeholder iframe,
  #liveRoomScreen .video-placeholder iframe {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    display: block;
  }

  #liveRoomScreen .stage-audio-hint-s617a {
    position: absolute !important;
    top: -24px !important;
    right: 8px !important;
    max-width: calc(100% - 16px) !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    white-space: normal !important;
  }

  #liveRoomScreen .side-panel {
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  #participantTabs {
    width: 100% !important;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)) !important;
  }

  #participantTabs.has-poll,
  #participantTabs.has-resource,
  #participantTabs.has-offer,
  #participantTabs.has-poll.has-offer,
  #participantTabs.has-resource.has-offer,
  #participantTabs.has-poll.has-resource,
  #participantTabs.has-poll.has-resource.has-offer {
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)) !important;
  }

  #participantTabs .tab-btn {
    min-width: 0 !important;
    min-height: 40px !important;
    white-space: normal !important;
  }

  #liveRoomScreen .tab-content.active {
    min-height: 360px !important;
    height: auto !important;
    max-height: min(62svh, 560px) !important;
    overflow: hidden !important;
  }

  #liveRoomScreen #chatMessages,
  #liveRoomScreen .support-messages,
  #liveRoomScreen #privateSupportAnswers,
  #liveRoomScreen .participant-poll-content,
  #liveRoomScreen .resource-content,
  #liveRoomScreen #offerTab.active {
    min-height: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  #liveRoomScreen .chat-composer,
  #liveRoomScreen .support-composer {
    flex: 0 0 auto !important;
    align-items: center !important;
    width: 100% !important;
  }

  #liveRoomScreen .chat-composer input,
  #liveRoomScreen .support-composer input {
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }

  #liveRoomScreen #offerTab .offer-content {
    min-height: 0 !important;
    padding-bottom: calc(14px + env(safe-area-inset-bottom)) !important;
  }

  #liveRoomScreen #offerButton {
    width: 100% !important;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }
}

@media (max-width: 480px) {
  #liveRoomScreen.live-room {
    width: 100% !important;
    max-width: 100% !important;
    padding: 28px 0 10px !important;
    margin: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  #liveRoomScreen .room-grid {
    gap: 8px !important;
    max-height: none !important;
  }

  #liveRoomScreen .video-card {
    padding: 4px !important;
    border-radius: 14px !important;
  }

  #liveRoomScreen .participant-video-placeholder,
  #liveRoomScreen .video-placeholder {
    border-radius: 12px !important;
  }

  #liveRoomScreen .stage-audio-hint-s617a {
    top: -22px !important;
    right: 6px !important;
    max-width: calc(100% - 12px) !important;
    font-size: 10.5px !important;
    gap: 4px !important;
  }

  #liveRoomScreen .stage-audio-hint-icon-s617a,
  #liveRoomScreen .stage-audio-hint-icon-s617a svg {
    width: 14px !important;
    height: 14px !important;
  }

  #liveRoomScreen .side-panel {
    border-radius: 14px !important;
  }

  #participantTabs,
  #participantTabs.has-poll,
  #participantTabs.has-resource,
  #participantTabs.has-offer,
  #participantTabs.has-poll.has-offer,
  #participantTabs.has-resource.has-offer,
  #participantTabs.has-poll.has-resource,
  #participantTabs.has-poll.has-resource.has-offer {
    grid-template-columns: repeat(auto-fit, minmax(58px, 1fr)) !important;
    gap: 4px !important;
  }

  #participantTabs .tab-btn {
    min-height: 36px !important;
    padding: 7px 3px !important;
    font-size: 10.8px !important;
    line-height: 1.05 !important;
  }

  #liveRoomScreen .tab-content.active {
    min-height: 350px !important;
    max-height: min(58svh, 520px) !important;
    padding: 8px !important;
  }

  #liveRoomScreen .chat-composer,
  #liveRoomScreen .support-composer {
    gap: 5px !important;
    padding-bottom: calc(8px + env(safe-area-inset-bottom)) !important;
  }

  #liveRoomScreen .chat-composer input,
  #liveRoomScreen .support-composer input {
    padding: 10px 9px !important;
    font-size: 13px !important;
  }

  #liveRoomScreen .chat-composer button,
  #liveRoomScreen .support-composer button {
    min-width: 48px !important;
  }

  #liveRoomScreen #offerTab.active {
    padding-bottom: calc(12px + env(safe-area-inset-bottom)) !important;
  }

  #liveRoomScreen .offer-image,
  #liveRoomScreen #offerImagePreview {
    min-height: 118px !important;
    max-height: none !important;
    aspect-ratio: 16 / 9;
  }
}

/* S623A.1 - Mobile participant room fine tuning */
@media (max-width: 768px) {
  #participantLoginScreen.entry-screen:not(.hidden) {
    min-height: 100svh !important;
    height: 100svh !important;
    padding: 14px !important;
    place-items: center !important;
    overflow: hidden !important;
  }

  #participantLoginScreen:not(.hidden) .entry-card {
    width: min(100%, 430px) !important;
    max-height: calc(100svh - 28px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  #liveRoomScreen .side-panel {
    margin-top: 0 !important;
  }

  #liveRoomScreen .tab-content.active {
    display: flex !important;
    flex-direction: column !important;
  }

  #liveRoomScreen #chatMessages,
  #liveRoomScreen .support-messages,
  #liveRoomScreen #privateSupportAnswers {
    flex: 1 1 auto !important;
  }

  #liveRoomScreen #offerTab.active,
  #liveRoomScreen #pollTab.active,
  #liveRoomScreen #resourceTab.active {
    overflow-y: auto !important;
  }

  #liveRoomScreen .participant-poll-content,
  #liveRoomScreen .resource-content,
  #liveRoomScreen #offerTab .offer-content {
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 480px) {
  #participantLoginScreen.entry-screen:not(.hidden) {
    padding: 12px !important;
  }

  #participantLoginScreen:not(.hidden) .entry-card {
    max-width: calc(100vw - 24px) !important;
    padding: 18px !important;
    border-radius: 20px !important;
  }

  #participantLoginScreen .participant-entry-logo-wrap {
    margin-bottom: 10px !important;
  }

  #participantLoginScreen .participant-entry-logo-wrap img {
    max-height: 86px !important;
  }

  #liveRoomScreen.live-room {
    width: calc(100vw - 8px) !important;
    max-width: calc(100vw - 8px) !important;
    margin-left: calc(50% - 50vw + 4px) !important;
    margin-right: calc(50% - 50vw + 4px) !important;
    padding-top: 26px !important;
  }

  #liveRoomScreen .room-grid {
    gap: 4px !important;
  }

  #liveRoomScreen .video-area {
    margin: 0 !important;
  }

  #liveRoomScreen .video-card {
    padding: 3px !important;
    margin: 0 !important;
  }

  #liveRoomScreen .stage-audio-hint-s617a {
    left: 6px !important;
    right: auto !important;
    top: -21px !important;
    justify-content: flex-start !important;
    text-align: left !important;
    max-width: calc(100% - 118px) !important;
  }

  #liveRoomScreen #audienceBadge {
    right: 6px !important;
    left: auto !important;
    top: 3px !important;
  }

  #liveRoomScreen .side-panel {
    margin-top: 2px !important;
    width: 100% !important;
  }

  #participantTabs {
    margin-top: 0 !important;
  }

  #liveRoomScreen .tab-content.active {
    min-height: calc(100svh - 320px) !important;
    max-height: calc(100svh - 292px - env(safe-area-inset-bottom)) !important;
  }

  #liveRoomScreen #chatMessages,
  #liveRoomScreen .support-messages,
  #liveRoomScreen #privateSupportAnswers {
    min-height: 0 !important;
    max-height: none !important;
  }

  #liveRoomScreen .chat-composer,
  #liveRoomScreen .support-composer {
    margin-top: 6px !important;
  }

  #liveRoomScreen #offerTab.active,
  #liveRoomScreen #pollTab.active,
  #liveRoomScreen #resourceTab.active {
    min-height: calc(100svh - 320px) !important;
    max-height: calc(100svh - 292px - env(safe-area-inset-bottom)) !important;
  }

  #liveRoomScreen .participant-poll-content,
  #liveRoomScreen .resource-content {
    padding: 8px !important;
  }

  #liveRoomScreen #offerTab .offer-content {
    gap: 8px !important;
  }

  #liveRoomScreen #offerButton,
  #liveRoomScreen .resource-download-btn,
  #liveRoomScreen .participant-poll-option-action {
    min-height: 42px !important;
  }
}

/* S623A.2 - Mobile chat composer and audio hint stability */
@media (max-width: 768px) {
  #liveRoomScreen input,
  #liveRoomScreen textarea,
  #liveRoomScreen select {
    font-size: 16px !important;
  }

  #liveRoomScreen .tab-content.active {
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  #liveRoomScreen #chatMessages,
  #liveRoomScreen .support-messages,
  #liveRoomScreen #privateSupportAnswers {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  #liveRoomScreen .chat-composer,
  #liveRoomScreen .support-composer {
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    align-items: center !important;
    overflow: visible !important;
    padding-bottom: max(10px, env(safe-area-inset-bottom)) !important;
  }

  #liveRoomScreen .chat-composer input,
  #liveRoomScreen .chat-composer textarea,
  #liveRoomScreen .support-composer input,
  #liveRoomScreen .support-composer textarea {
    min-width: 0 !important;
    min-height: 44px !important;
    height: 44px !important;
    box-sizing: border-box !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
  }

  #liveRoomScreen .chat-composer button,
  #liveRoomScreen .support-composer button {
    flex-shrink: 0 !important;
    min-height: 42px !important;
    box-sizing: border-box !important;
  }

  #liveRoomScreen .stage-audio-hint-s617a {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: clip !important;
  }
}

@media (max-width: 480px) {
  #liveRoomScreen .tab-content.active {
    height: calc(100svh - 286px - env(safe-area-inset-bottom)) !important;
    min-height: 330px !important;
    max-height: calc(100svh - 286px - env(safe-area-inset-bottom)) !important;
  }

  #liveRoomScreen #chatMessages,
  #liveRoomScreen .support-messages,
  #liveRoomScreen #privateSupportAnswers {
    padding-bottom: 2px !important;
  }

  #liveRoomScreen .chat-composer,
  #liveRoomScreen .support-composer {
    gap: 5px !important;
    margin-top: 5px !important;
    padding-bottom: max(12px, env(safe-area-inset-bottom)) !important;
  }

  #liveRoomScreen .chat-composer input,
  #liveRoomScreen .chat-composer textarea,
  #liveRoomScreen .support-composer input,
  #liveRoomScreen .support-composer textarea {
    min-height: 42px !important;
    height: 42px !important;
    padding: 9px 10px !important;
    font-size: 16px !important;
  }

  #liveRoomScreen .chat-composer button,
  #liveRoomScreen .support-composer button {
    min-width: 42px !important;
    min-height: 40px !important;
  }

  #liveRoomScreen .chat-composer .chat-send-btn,
  #liveRoomScreen .support-composer button {
    flex: 0 0 42px !important;
    width: 42px !important;
    max-width: 42px !important;
  }

  #liveRoomScreen .stage-audio-hint-s617a {
    max-width: calc(100% - 104px) !important;
    font-size: 9.4px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  #liveRoomScreen .stage-audio-hint-icon-s617a,
  #liveRoomScreen .stage-audio-hint-icon-s617a svg {
    width: 12px !important;
    height: 12px !important;
  }

  #liveRoomScreen #audienceBadge {
    max-width: 96px !important;
    white-space: nowrap !important;
  }
}

@media (min-width: 401px) and (max-width: 480px) {
  #liveRoomScreen .tab-content.active {
    height: calc(100svh - 278px - env(safe-area-inset-bottom)) !important;
    max-height: calc(100svh - 278px - env(safe-area-inset-bottom)) !important;
  }

  #liveRoomScreen .stage-audio-hint-s617a {
    max-width: calc(100% - 112px) !important;
    font-size: 10px !important;
  }
}

/* S623A.3 - Mobile room composer button fit */
@media (max-width: 768px) {
  #liveRoomScreen input,
  #liveRoomScreen textarea,
  #liveRoomScreen select {
    font-size: 16px !important;
  }

  #liveRoomScreen .tab-content.active {
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  #liveRoomScreen #chatMessages,
  #liveRoomScreen .support-messages,
  #liveRoomScreen #privateSupportAnswers {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  #liveRoomScreen .chat-composer,
  #liveRoomScreen .support-composer {
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    align-items: center !important;
    gap: 6px !important;
    margin-top: 6px !important;
    padding-bottom: max(10px, calc(env(safe-area-inset-bottom, 0px) + 6px)) !important;
    overflow: visible !important;
  }

  #liveRoomScreen .chat-composer input,
  #liveRoomScreen .chat-composer textarea,
  #liveRoomScreen .support-composer input,
  #liveRoomScreen .support-composer textarea {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    height: 44px !important;
    min-height: 44px !important;
    box-sizing: border-box !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
  }

  #liveRoomScreen .chat-composer button,
  #liveRoomScreen .chat-composer .chat-emoji-btn,
  #liveRoomScreen .chat-composer .chat-send-btn {
    flex: 0 0 42px !important;
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    aspect-ratio: 1 / 1 !important;
    box-sizing: border-box !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    line-height: 1 !important;
    text-align: center !important;
    transform: none !important;
  }

  #liveRoomScreen .chat-composer .chat-emoji-btn {
    font-size: 18px !important;
  }

  #liveRoomScreen .chat-composer .chat-send-btn {
    font-size: 0 !important;
  }

  #liveRoomScreen .chat-composer .chat-send-btn::before {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    font-size: 18px !important;
    line-height: 1 !important;
    transform: none !important;
  }

  #liveRoomScreen .support-composer button {
    flex: 0 0 72px !important;
    width: 72px !important;
    min-width: 72px !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    box-sizing: border-box !important;
    border: none !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 12px !important;
    background: linear-gradient(90deg, #A7E6EF 0%, #B6EEC8 50%, #B8E86A 100%) !important;
    color: #11151b !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-align: center !important;
    box-shadow: 0 10px 24px rgba(167,230,239,.22) !important;
    transform: none !important;
  }
}

@media (max-width: 480px) {
  #liveRoomScreen .tab-content.active {
    height: clamp(330px, calc(100svh - 304px - env(safe-area-inset-bottom, 0px)), 620px) !important;
    max-height: clamp(330px, calc(100svh - 304px - env(safe-area-inset-bottom, 0px)), 620px) !important;
    padding-bottom: 6px !important;
  }

  #liveRoomScreen .chat-composer,
  #liveRoomScreen .support-composer {
    padding-bottom: max(14px, calc(env(safe-area-inset-bottom, 0px) + 8px)) !important;
  }

  #liveRoomScreen .chat-composer button,
  #liveRoomScreen .chat-composer .chat-emoji-btn,
  #liveRoomScreen .chat-composer .chat-send-btn {
    flex-basis: 40px !important;
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
  }

  #liveRoomScreen .support-composer button {
    flex-basis: 68px !important;
    width: 68px !important;
    min-width: 68px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
  }
}

/* S623A.4 - Equal mobile chat composer buttons */
@media (max-width: 768px) {
  #liveRoomScreen .chat-composer button,
  #liveRoomScreen .chat-composer button.chat-emoji-btn,
  #liveRoomScreen .chat-composer .chat-emoji-btn,
  #liveRoomScreen .chat-composer button.chat-send-btn,
  #liveRoomScreen .chat-composer .chat-send-btn {
    flex: 0 0 42px !important;
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    aspect-ratio: 1 / 1 !important;
    box-sizing: border-box !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    line-height: 1 !important;
    text-align: center !important;
    transform: none !important;
  }

  #liveRoomScreen .chat-composer button.chat-emoji-btn,
  #liveRoomScreen .chat-composer .chat-emoji-btn {
    font-size: 18px !important;
  }

  #liveRoomScreen .chat-composer button.chat-send-btn,
  #liveRoomScreen .chat-composer .chat-send-btn {
    font-size: 0 !important;
  }

  #liveRoomScreen .chat-composer button.chat-send-btn::before,
  #liveRoomScreen .chat-composer .chat-send-btn::before {
    width: 42px !important;
    height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    font-size: 18px !important;
    line-height: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 480px) {
  #liveRoomScreen .chat-composer button,
  #liveRoomScreen .chat-composer button.chat-emoji-btn,
  #liveRoomScreen .chat-composer .chat-emoji-btn,
  #liveRoomScreen .chat-composer button.chat-send-btn,
  #liveRoomScreen .chat-composer .chat-send-btn {
    flex: 0 0 40px !important;
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
  }

  #liveRoomScreen .chat-composer button.chat-send-btn::before,
  #liveRoomScreen .chat-composer .chat-send-btn::before {
    width: 40px !important;
    height: 40px !important;
  }
}

/* S623A.5 - Restore mobile support composer button */
@media (max-width: 768px) {
  #liveRoomScreen .support-composer button {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 58px !important;
    max-width: none !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: none !important;
    box-sizing: border-box !important;
    border: none !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 12px !important;
    background: linear-gradient(90deg, #A7E6EF 0%, #B6EEC8 50%, #B8E86A 100%) !important;
    color: var(--dark) !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-align: center !important;
    box-shadow: none !important;
    transform: none !important;
  }
}

@media (max-width: 480px) {
  #liveRoomScreen .support-composer button {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 58px !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 10px !important;
    font-size: 11.5px !important;
  }
}

/* S647B - Mobile usability for the admin event editor */
@media (max-width: 768px) {
  #adminPanelScreen,
  #adminPanelScreen .admin-content,
  #adminPanelScreen #eventEditorView,
  #adminPanelScreen #eventEditorView .event-editor-content,
  #adminPanelScreen #eventEditorView .event-tab {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  #adminPanelScreen .admin-topbar {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding: 12px 0 !important;
  }

  #adminPanelScreen .admin-brand {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    align-items: center !important;
    gap: 10px !important;
  }

  #adminPanelScreen .admin-actions-top {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    align-items: center !important;
    gap: 8px !important;
  }

  #adminPanelScreen .top-main-nav {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  #adminPanelScreen .top-main-nav .top-nav-btn,
  #adminPanelScreen #adminLogoutBtn {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  #adminPanelScreen #eventEditorView .section-title-row,
  #adminPanelScreen #eventEditorView .section-title-row > * {
    width: 100%;
    min-width: 0;
  }

  #adminPanelScreen #eventEditorView .event-top-menu {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    gap: 10px !important;
    padding: 9px !important;
    overflow: visible !important;
  }

  #adminPanelScreen #eventEditorView .event-top-tabs {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding-bottom: 3px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  #adminPanelScreen #eventEditorView .event-top-tabs .admin-menu {
    flex: 0 0 auto !important;
    padding: 10px 14px !important;
    white-space: nowrap !important;
  }

  #adminPanelScreen #eventEditorView .event-open-link-btn {
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    text-align: center;
  }

  #adminPanelScreen #eventEditorView .config-card,
  #adminPanelScreen #eventEditorView .audit-table-card,
  #adminPanelScreen #eventEditorView .participant-simulation-panel,
  #adminPanelScreen #eventEditorView .audience-curve-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 16px;
  }

  #adminPanelScreen #eventEditorView input,
  #adminPanelScreen #eventEditorView textarea,
  #adminPanelScreen #eventEditorView select,
  #adminPanelScreen #eventEditorView button {
    max-width: 100%;
    box-sizing: border-box;
  }

  #adminPanelScreen #eventEditorView .audit-wrap,
  #adminPanelScreen #eventEditorView .audit-table-card {
    min-width: 0;
    overflow: hidden;
  }

  #adminPanelScreen #eventEditorView .audit-header-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  #adminPanelScreen #eventEditorView .audit-header-row .primary-btn {
    width: 100% !important;
    min-width: 0 !important;
  }

  #adminPanelScreen #eventEditorView .audit-metrics-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  #adminPanelScreen #eventEditorView .audit-offer-funnel {
    width: 100% !important;
    max-width: 100% !important;
  }

  #adminPanelScreen #eventEditorView .audit-table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
  }

  #adminPanelScreen #eventEditorView .admin-live-preview {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    gap: 12px !important;
  }

  #adminPanelScreen #eventEditorView .admin-preview-main,
  #adminPanelScreen #eventEditorView .admin-side-preview,
  #adminPanelScreen #eventEditorView .admin-preview-tab,
  #adminPanelScreen #eventEditorView .admin-messages,
  #adminPanelScreen #eventEditorView .support-console,
  #adminPanelScreen #eventEditorView .support-people,
  #adminPanelScreen #eventEditorView .support-thread,
  #adminPanelScreen #eventEditorView .support-thread-messages,
  #adminPanelScreen #eventEditorView .support-reply-bar {
    width: 100%;
    max-width: 100%;
    min-width: 0 !important;
    box-sizing: border-box;
  }

  #adminPanelScreen #eventEditorView .video-card,
  #adminPanelScreen #eventEditorView .video-placeholder,
  #adminPanelScreen #eventEditorView .video-placeholder.admin-video {
    width: 100% !important;
    max-width: 100% !important;
  }

  #adminPanelScreen #eventEditorView .admin-audience-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
  }

  #adminPanelScreen #eventEditorView .admin-audience-card {
    min-width: 0;
  }

  #adminPanelScreen #eventEditorView .admin-chat-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
  }

  #adminPanelScreen #eventEditorView .admin-chat-controls button {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }

  #adminPanelScreen #eventEditorView .admin-chat-composer,
  #adminPanelScreen #eventEditorView .support-reply-bar {
    max-width: 100%;
    min-width: 0;
  }

  #adminPanelScreen #eventEditorView .admin-chat-composer input,
  #adminPanelScreen #eventEditorView .support-reply-bar input {
    min-width: 0 !important;
  }
}

@media (max-width: 420px) {
  #adminPanelScreen #eventEditorView .admin-chat-controls {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* S647C - Fine mobile adjustments for the admin event experience */
@media (max-width: 768px) {
  #adminPanelScreen .dashboard-chart-card {
    min-width: 0 !important;
    padding-inline: 18px !important;
  }

  #adminPanelScreen .dashboard-bars,
  #adminPanelScreen #dashboardBars {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 12px !important;
    padding: 0 30px 0 10px !important;
  }

  #adminPanelScreen .dashboard-bar-item:last-child::before {
    right: 0 !important;
    left: auto !important;
    transform: translateY(6px) !important;
  }

  #adminPanelScreen .dashboard-bar-item:last-child:hover::before {
    transform: translateY(0) !important;
  }

  #adminPanelScreen #eventEditorView .audit-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  #adminPanelScreen #eventEditorView .audit-metric-card {
    min-width: 0;
  }

  #adminPanelScreen #eventEditorView .audit-metric-card strong {
    padding-inline: 14px !important;
    font-size: 24px !important;
  }

  #adminPanelScreen #eventEditorView .audit-metric-card span {
    padding-inline: 14px !important;
    font-size: 12px !important;
  }

  #adminPanelScreen #eventEditorView .audit-metric-card button {
    min-width: 0;
    padding: 12px 10px !important;
    font-size: 11.5px !important;
    gap: 6px;
  }

  #adminPanelScreen #eventEditorView .offer-inline,
  #adminPanelScreen #eventEditorView #adminOfferBannerInline {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px 10px !important;
    min-height: 0 !important;
    padding: 12px 14px !important;
  }

  #adminPanelScreen #eventEditorView .offer-inline > div,
  #adminPanelScreen #eventEditorView #adminOfferBannerInline > div {
    flex: 1 1 130px;
    min-width: 0;
  }

  #adminPanelScreen #eventEditorView .offer-inline span,
  #adminPanelScreen #eventEditorView #adminOfferBannerInline span {
    font-size: 11px;
  }

  #adminPanelScreen #eventEditorView .offer-inline strong,
  #adminPanelScreen #eventEditorView #adminOfferBannerInline strong {
    font-size: 16px;
    line-height: 1.15;
  }

  #adminPanelScreen #eventEditorView .offer-inline a,
  #adminPanelScreen #eventEditorView #adminOfferBannerInline a {
    flex: 0 0 auto;
    width: auto !important;
    min-width: 0;
    padding: 10px 12px !important;
    font-size: 12px;
    white-space: nowrap;
  }

  #adminPanelScreen #eventEditorView .admin-chat-controls {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    gap: 7px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  #adminPanelScreen #eventEditorView .admin-chat-controls button {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 112px !important;
    padding: 11px 13px !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 359px) {
  #adminPanelScreen #eventEditorView .audit-metrics-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* S647D - Fill the mobile admin Chat/Support panel height */
@media (max-width: 768px) {
  #adminPanelScreen #eventEditorView .side-panel.admin-side-preview {
    display: flex !important;
    flex-direction: column !important;
    height: clamp(520px, 70svh, 620px) !important;
    min-height: clamp(520px, 70svh, 620px) !important;
    max-height: clamp(520px, 70svh, 620px) !important;
    overflow: hidden !important;
  }

  #adminPanelScreen #eventEditorView .admin-preview-tabs {
    flex: 0 0 auto;
  }

  #adminPanelScreen #eventEditorView #adminPreviewChat.active,
  #adminPanelScreen #eventEditorView #adminPreviewSupport.active {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
  }

  #adminPanelScreen #eventEditorView #adminPreviewChat .admin-messages,
  #adminPanelScreen #eventEditorView #adminPreviewSupport .support-thread-messages {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }

  #adminPanelScreen #eventEditorView #adminPreviewChat .admin-chat-composer,
  #adminPanelScreen #eventEditorView #adminPreviewSupport .support-reply-bar {
    flex: 0 0 auto !important;
    margin-top: auto !important;
  }

  #adminPanelScreen #eventEditorView #adminPreviewSupport .support-console {
    flex: 1 1 auto !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  #adminPanelScreen #eventEditorView #adminPreviewSupport .support-thread {
    flex: 1 1 auto !important;
    min-height: 0 !important;
  }
}

/* S647E - Taller shared admin preview panel on mobile */
@media (max-width: 768px) {
  #adminPanelScreen #eventEditorView .side-panel.admin-side-preview {
    height: clamp(650px, 82svh, 760px) !important;
    min-height: clamp(650px, 82svh, 760px) !important;
    max-height: clamp(650px, 82svh, 760px) !important;
  }

  #adminPanelScreen #eventEditorView .admin-preview-tab.active {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  #adminPanelScreen #eventEditorView #adminPreviewResource .resource-content,
  #adminPanelScreen #eventEditorView #adminPreviewPoll .participant-poll-content {
    flex: 1 1 auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow-y: auto !important;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }

  #adminPanelScreen #eventEditorView #adminPreviewOffer.active {
    overflow-y: auto !important;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }

  #adminPanelScreen #eventEditorView #adminPreviewOffer .offer-content {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    box-sizing: border-box;
  }

  #adminPanelScreen #eventEditorView #adminPreviewSupport .support-people {
    flex: 0 0 auto !important;
    align-items: center;
    min-height: 0 !important;
    height: auto !important;
    max-height: 72px !important;
    gap: 6px !important;
    padding-bottom: 6px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
  }

  #adminPanelScreen #eventEditorView #adminPreviewSupport .support-user {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    width: auto !important;
    min-width: 96px;
    min-height: 56px;
    max-height: 64px;
    margin: 0 !important;
    padding: 8px 12px !important;
    white-space: nowrap;
  }

  #adminPanelScreen #eventEditorView #adminPreviewSupport .support-console {
    gap: 6px !important;
  }
}

/* S647F - Compact mobile support participants and thread header */
@media (max-width: 768px) {
  #adminPanelScreen #eventEditorView #adminPreviewSupport .support-console {
    grid-template-rows: auto minmax(0, 1fr) !important;
    gap: 2px !important;
  }

  #adminPanelScreen #eventEditorView #adminPreviewSupport .support-people {
    min-height: 0 !important;
    height: 52px !important;
    max-height: 52px !important;
    gap: 5px !important;
    padding-top: 0 !important;
    padding-bottom: 4px !important;
  }

  #adminPanelScreen #eventEditorView #adminPreviewSupport .support-user {
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    padding: 4px 10px !important;
    line-height: 1.2;
  }

  #adminPanelScreen #eventEditorView #adminPreviewSupport .support-thread {
    height: 100% !important;
    min-height: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  #adminPanelScreen #eventEditorView #adminPreviewSupport .support-thread-header {
    flex: 0 0 auto;
    gap: 6px !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 8px !important;
  }

  #adminPanelScreen #eventEditorView #adminPreviewSupport .support-thread-header h4 {
    margin: 2px 0 0 !important;
    line-height: 1.15;
  }

  #adminPanelScreen #eventEditorView #adminPreviewSupport .support-thread-messages {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    overflow-y: auto !important;
  }

  #adminPanelScreen #eventEditorView #adminPreviewSupport .support-reply-bar {
    flex: 0 0 auto !important;
    margin-top: auto !important;
  }
}

/* S649A - Mantem o card de oferta da sala estavel no hover desktop */
@media (min-width: 769px) {
  #liveRoomScreen .offer-inline:hover {
    transform: none !important;
    border-color: rgba(255,255,255,.84) !important;
    box-shadow: var(--shadow) !important;
    filter: none !important;
    opacity: 1 !important;
  }
}
