body {
  padding-top: var(--app-navbar-offset, 5rem);
}
.navbar.fixed-top {
  z-index: 1030;
}
@media (min-width: 992px) {
  .navbar-expand-lg .navbar-nav {
    flex-wrap: nowrap;
  }

  .navbar-expand-lg .navbar-nav .nav-link {
    white-space: nowrap;
  }
}
@media (min-width: 992px) {
  .navbar.fixed-top .dropdown-menu {
    max-height: calc(100vh - 4.75rem);
    max-height: calc(100dvh - 4.75rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
}
.app-brand {
  display: inline-flex;
  align-items: center;
  max-width: min(52vw, 280px);
  padding-block: 0.125rem;
}
.app-brand-logo {
  display: block;
  max-width: 100%;
  height: clamp(32px, 4vw, 46px);
  width: auto;
}
.page-header {
  margin-bottom: 1.5rem;
}
.page-header .page-subtitle {
  color: var(--bs-secondary-color);
  margin-bottom: 0;
}
.section-card .card-body {
  padding: 1.25rem;
}
.table thead th {
  font-size: 0.875rem;
  color: var(--bs-secondary-color);
  font-weight: 600;
  border-bottom-width: 1px;
}
.table td,
.table th {
  vertical-align: middle;
}
.badge-soft {
  background: rgba(var(--bs-secondary-rgb), 0.1);
  color: var(--bs-emphasis-color);
  border: 1px solid rgba(var(--bs-secondary-rgb), 0.15);
}
.user-award-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  object-fit: contain;
  vertical-align: -0.2em;
}
.filter-toolbar .form-label {
  font-size: 0.85rem;
  color: var(--bs-secondary-color);
}
.stat-card .stat-value {
  font-size: 1.25rem;
  font-weight: 700;
}
.stat-card .stat-label {
  font-size: 0.85rem;
  color: var(--bs-secondary-color);
}
.code-short {
  font-size: 0.85rem;
}
.card + .card {
  margin-top: 1.5rem;
}
.table-responsive {
  border-radius: 0.5rem;
}
.nav-pills .nav-link {
  border: 1px solid transparent;
}
.nav-pills .nav-link.active {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}
.global-search-modal-content {
  border-radius: 1rem;
}
.global-search-modal-body {
  max-height: min(72vh, 820px);
  overflow: auto;
  padding-bottom: 1rem;
}
.global-search-result.active,
.global-search-result:focus {
  background: rgba(var(--bs-primary-rgb), 0.18);
  border-color: rgba(var(--bs-primary-rgb), 0.45);
  color: var(--bs-emphasis-color);
  box-shadow: inset 0 0 0 1px rgba(var(--bs-primary-rgb), 0.18);
}
.global-search-result.active .text-muted,
.global-search-result:focus .text-muted {
  color: var(--bs-secondary-color) !important;
}
body.has-site-wallpaper .global-search-result.active,
body.has-site-wallpaper .global-search-result:focus {
  background: rgba(var(--bs-primary-rgb), 0.24);
  border-color: rgba(var(--bs-primary-rgb), 0.62);
  box-shadow:
    inset 0 0 0 1px rgba(var(--bs-primary-rgb), 0.28),
    0 0 0 1px rgba(var(--bs-primary-rgb), 0.12);
}
html[data-bs-theme="dark"] body.has-site-wallpaper .global-search-result.active,
html[data-bs-theme="dark"] body.has-site-wallpaper .global-search-result:focus {
  background: rgba(var(--bs-primary-rgb), 0.28);
  border-color: rgba(var(--bs-primary-rgb), 0.68);
  box-shadow:
    inset 0 0 0 1px rgba(var(--bs-primary-rgb), 0.34),
    0 0 0 1px rgba(var(--bs-primary-rgb), 0.16);
}
#globalSearchResults {
  overflow: visible;
}
.session-device-cell {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  min-width: 18rem;
}
.session-device-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--bs-primary-rgb), 0.08);
  border: 1px solid rgba(var(--bs-primary-rgb), 0.12);
  color: var(--bs-primary);
}
.session-device-icon i {
  font-size: 1.1rem;
}
.session-device-content {
  flex: 1;
  min-width: 0;
}
.session-device-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  align-items: center;
  margin-bottom: 0.15rem;
}
.session-device-title {
  font-weight: 600;
  color: var(--bs-emphasis-color);
}
.session-device-subtitle {
  font-size: 0.85rem;
  color: var(--bs-secondary-color);
  margin-bottom: 0.55rem;
}
.session-rename-form {
  max-width: 26rem;
}
.app-compact .card-body {
  padding: 1rem;
}
.app-compact .h5 {
  font-size: 1rem;
}
.app-compact .h6 {
  font-size: 0.9rem;
}
.app-compact .text-muted {
  font-size: 0.9rem;
}
.app-compact .small,
.app-compact .form-text {
  font-size: 0.8rem !important;
}
.app-compact .form-label,
.app-compact .form-check-label {
  font-size: 0.84rem;
}
.app-compact .form-control,
.app-compact .form-select {
  font-size: 0.88rem;
  padding: 0.45rem 0.7rem;
}
.app-compact .btn {
  font-size: 0.84rem;
}
.app-compact .btn.btn-sm {
  font-size: 0.78rem;
  padding: 0.32rem 0.56rem;
}
.app-compact .badge {
  font-size: 0.72rem;
}
.app-compact .table thead th {
  font-size: 0.8rem;
}
.app-compact .table td {
  font-size: 0.85rem;
}
.auth-login-layout .card {
  border-color: var(--bs-border-color);
}
.auth-login-layout .card-body {
  padding: 1rem;
}
.auth-login-layout .text-muted {
  font-size: 0.88rem;
}
.auth-login-layout .small,
.auth-login-layout .form-text {
  font-size: 0.78rem !important;
}
.auth-login-layout .form-label,
.auth-login-layout .form-check-label {
  font-size: 0.84rem;
}
.auth-login-layout .form-control,
.auth-login-layout .form-select {
  font-size: 0.88rem;
  padding: 0.45rem 0.7rem;
}
.auth-login-layout .btn {
  font-size: 0.82rem;
}
.auth-login-layout .btn.btn-sm {
  font-size: 0.76rem;
}
.auth-login-layout .badge {
  font-size: 0.68rem;
}
.auth-option-card {
  height: 100%;
}
.auth-option-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.auth-login-steps li + li {
  margin-top: 0.2rem;
}
.admin-layout .card-body {
  padding: 1rem;
}
.admin-layout .text-muted {
  font-size: 0.9rem;
}
.admin-dashboard {
  --bs-gutter-y: 0.7rem;
}
.admin-dashboard .card-body {
  padding: 0.8rem;
}
.admin-dashboard .card h2.h5 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem !important;
}
.admin-dashboard .card .text-muted {
  font-size: 0.82rem;
}
.admin-dashboard .admin-stat-card {
  padding: 0.65rem 0.75rem;
  border-radius: 0.6rem;
}
.admin-dashboard .admin-stat-label {
  font-size: 0.7rem;
  margin-bottom: 0.15rem;
}
.admin-dashboard .admin-stat-value {
  font-size: 0.88rem;
}
.admin-dashboard .btn.btn-sm {
  padding: 0.28rem 0.5rem;
  font-size: 0.76rem;
}
.admin-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
  margin-top: 0.25rem;
}
.admin-stat-card {
  height: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.75rem;
  background: var(--bs-tertiary-bg);
}
.admin-stat-label {
  font-size: 0.78rem;
  color: var(--bs-secondary-color);
  margin-bottom: 0.3rem;
}
.admin-stat-value {
  font-size: 0.96rem;
  font-weight: 600;
  word-break: break-word;
}
.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid var(--bs-border-color);
  background: var(--bs-tertiary-bg);
  color: var(--bs-body-color);
  font-weight: 600;
}
.admin-badge code {
  color: inherit;
}
.admin-badge-muted {
  border-color: var(--bs-border-color);
  background: var(--bs-tertiary-bg);
  color: var(--bs-body-color);
}
.admin-badge-info {
  border-color: rgba(var(--bs-info-rgb), 0.42);
  background: rgba(var(--bs-info-rgb), 0.12);
  color: var(--bs-info-text-emphasis);
}
.admin-badge-warning {
  border-color: rgba(var(--bs-warning-rgb), 0.46);
  background: rgba(var(--bs-warning-rgb), 0.14);
  color: var(--bs-warning-text-emphasis);
}
.admin-badge-primary {
  border-color: rgba(var(--bs-primary-rgb), 0.42);
  background: rgba(var(--bs-primary-rgb), 0.12);
  color: var(--bs-primary-text-emphasis);
}
.admin-sidebar {
  margin-bottom: 1.5rem;
}
.admin-sidebar-panel {
  border: 1px solid var(--bs-border-color);
  border-radius: 0.75rem;
  background: var(--bs-body-bg);
  box-shadow: 0 0.125rem 0.35rem rgba(0, 0, 0, 0.04);
  padding: 0.75rem;
}
.admin-sidebar-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
  padding: 0 0.25rem;
}
.admin-sidebar-eyebrow,
.admin-sidebar-group-label {
  color: var(--bs-secondary-color);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.admin-sidebar-title {
  color: var(--bs-emphasis-color);
  font-size: 0.9rem;
  font-weight: 700;
}
.admin-sidebar-nav {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
}
.admin-sidebar-group {
  flex: 0 0 auto;
  min-width: 12rem;
}
.admin-sidebar-group-label {
  margin: 0 0 0.35rem 0.25rem;
}
.admin-sidebar-links {
  display: grid;
  gap: 0.25rem;
}
.admin-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.15rem;
  border-radius: 0.5rem;
  color: var(--bs-body-color);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.45rem 0.55rem;
  text-decoration: none;
  white-space: nowrap;
}
.admin-sidebar-link i {
  color: var(--bs-secondary-color);
  font-size: 0.95rem;
  width: 1.15rem;
  text-align: center;
}
.admin-sidebar-link:hover,
.admin-sidebar-link:focus {
  background: var(--bs-tertiary-bg);
  color: var(--bs-emphasis-color);
}
.admin-sidebar-link.is-active {
  background: rgba(var(--bs-primary-rgb), 0.12);
  color: var(--bs-primary-text-emphasis);
}
.admin-sidebar-link.is-active i {
  color: var(--bs-primary);
}
@media (min-width: 992px) {
  body.is-admin-section main.container {
    display: grid;
    grid-template-columns: 14.5rem minmax(0, 1fr);
    column-gap: 1.5rem;
    align-items: start;
  }

  body.is-admin-section main.container > :not(.admin-sidebar) {
    grid-column: 2;
  }

  .admin-sidebar {
    grid-column: 1;
    grid-row: 1 / span 100;
    position: sticky;
    top: var(--app-navbar-offset, 5rem);
    z-index: 1020;
    width: 100%;
    margin-bottom: 0;
  }

  .admin-sidebar-panel {
    padding: 0.85rem;
  }

  .admin-sidebar-heading {
    display: block;
    margin-bottom: 0.9rem;
  }

  .admin-sidebar-title {
    font-size: 1rem;
    margin-top: 0.15rem;
  }

  .admin-sidebar-nav {
    display: grid;
    gap: 0.85rem;
    overflow: visible;
    padding-bottom: 0;
  }

  .admin-sidebar-group {
    min-width: 0;
  }

  .admin-sidebar-link {
    white-space: normal;
  }
}
.admin-user-edit-layout .card {
  border-color: var(--bs-border-color);
}
.admin-user-edit-layout .card-body {
  padding: 0.9rem;
}
.admin-user-edit-layout .h5 {
  font-size: 0.98rem;
}
.admin-user-edit-layout .h6 {
  font-size: 0.88rem;
}
.admin-user-edit-layout .text-muted {
  font-size: 0.86rem;
}
.admin-user-edit-layout .small,
.admin-user-edit-layout .form-text {
  font-size: 0.76rem !important;
}
.admin-user-edit-layout .form-label,
.admin-user-edit-layout .form-check-label {
  font-size: 0.82rem;
}
.admin-user-edit-layout .form-control,
.admin-user-edit-layout .form-select {
  font-size: 0.84rem;
  padding: 0.38rem 0.62rem;
}
.admin-user-edit-layout .btn {
  font-size: 0.8rem;
}
.admin-user-edit-layout .btn.btn-sm {
  font-size: 0.75rem;
  padding: 0.28rem 0.5rem;
}
.admin-user-edit-layout .badge {
  font-size: 0.68rem;
}
.admin-user-edit-layout .admin-user-summary-card .fw-semibold {
  font-size: 0.88rem;
  word-break: break-word;
}
.admin-user-edit-layout .admin-user-summary-card .fs-4 {
  font-size: 1.35rem !important;
}
.admin-user-edit-layout .border.rounded,
.admin-user-edit-layout .border-danger-subtle.rounded {
  padding: 0.8rem !important;
}
.admin-user-edit-layout .form-check {
  margin-bottom: 0.45rem !important;
}
.admin-user-edit-layout .alert {
  font-size: 0.82rem;
  padding: 0.65rem 0.75rem;
}
.admin-user-edit-layout > .row.g-3 > .col-12 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.admin-user-edit-layout > .row.g-3 > .col-12 > .card {
  margin-bottom: 0 !important;
}
.admin-user-edit-layout > .row.g-3 > .col-12 > .card.border-warning-subtle {
  grid-column: 1 / -1;
}
.dashboard-layout .card-body {
  padding: 1rem;
}
.dashboard-layout .h5 {
  font-size: 1rem;
}
.dashboard-layout .text-muted {
  font-size: 0.92rem;
}
.dashboard-layout dl.small,
.dashboard-layout ul.small,
.dashboard-layout .small {
  font-size: 0.82rem !important;
}
.dashboard-layout .btn {
  font-size: 0.84rem;
}
.dashboard-layout .btn.btn-sm {
  font-size: 0.78rem;
  padding: 0.3rem 0.55rem;
}
.dashboard-layout .badge {
  font-size: 0.72rem;
}
.dashboard-puzzle-preview {
  overflow: hidden;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.75rem;
  background: var(--bs-tertiary-bg);
}
.dashboard-puzzle-preview img {
  display: block;
  width: 100%;
  height: 13rem;
  object-fit: cover;
}
.dashboard-random-puzzle-card .alert {
  margin-top: auto;
}
.dashboard-compact-account {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.25rem 0.75rem;
}
.dashboard-compact-account dd {
  min-width: 0;
  margin-bottom: 0;
  overflow-wrap: anywhere;
}
.dashboard-security-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.teamspeak-viewer-card .alert {
  padding: 0.6rem 0.7rem;
}
.teamspeak-viewer-countline {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin-top: 0.15rem;
}
.teamspeak-viewer-count {
  color: var(--bs-emphasis-color);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}
.teamspeak-viewer-list {
  display: grid;
  gap: 0.75rem;
  max-height: 16rem;
  overflow: auto;
  padding-right: 0.15rem;
}
.teamspeak-viewer-channel {
  display: grid;
  gap: 0.4rem;
}
.teamspeak-viewer-channel-name {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  color: var(--bs-secondary-color);
  font-size: 0.78rem;
  font-weight: 700;
}
.teamspeak-viewer-client {
  min-height: 2rem;
  padding: 0.3rem 0.45rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
  background: var(--bs-tertiary-bg);
  font-size: 0.82rem;
}
.teamspeak-viewer-client-main {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}
.teamspeak-viewer-channel-name > a,
.teamspeak-viewer-client-main > a {
  min-width: 0;
}
.teamspeak-viewer-client .bi-person-fill {
  color: var(--bs-primary);
}
.stream-viewer-card .teamspeak-viewer-channel-name .bi-camera-video {
  color: var(--bs-info);
}
.stream-role-icon[data-stream-role="admin"] {
  color: var(--bs-info);
}
.stream-role-icon[data-stream-role="moderator"] {
  color: var(--bs-success);
}
.stream-role-icon[data-stream-role="user"] {
  color: var(--bs-warning);
}
.stream-role-icon[data-stream-role="guest"] {
  color: var(--bs-danger);
}
html[data-bs-theme="light"]
  .stream-viewer-card
  .stream-role-icon[data-stream-role="admin"],
.stream-lobby-presence
  .text-bg-light
  .stream-role-icon[data-stream-role="admin"] {
  color: #087ca7;
}
html[data-bs-theme="light"]
  .stream-viewer-card
  .stream-role-icon[data-stream-role="user"],
.stream-lobby-presence
  .text-bg-light
  .stream-role-icon[data-stream-role="user"] {
  color: #a87400;
}
.teamspeak-viewer-client-flags {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.2rem;
  margin-left: auto;
}
.teamspeak-viewer-group {
  width: 1.25rem;
  height: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.35rem;
  background: var(--bs-body-bg);
  color: var(--bs-secondary-color);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
}
.teamspeak-viewer-group img {
  display: block;
  max-width: 1rem;
  max-height: 1rem;
}
.security-layout .card-body {
  padding: 1rem;
}
.security-layout .h5 {
  font-size: 1rem;
}
.security-layout .h6 {
  font-size: 0.9rem;
}
.security-layout .text-muted {
  font-size: 0.9rem;
}
.security-layout .small,
.security-layout .form-text {
  font-size: 0.8rem !important;
}
.security-layout .form-label,
.security-layout .form-check-label {
  font-size: 0.84rem;
}
.security-layout .form-control {
  font-size: 0.88rem;
  padding: 0.45rem 0.7rem;
}
.security-layout .btn {
  font-size: 0.84rem;
}
.security-layout .btn.btn-sm {
  font-size: 0.78rem;
  padding: 0.32rem 0.56rem;
}
.security-layout .badge {
  font-size: 0.72rem;
}
.security-email-value {
  font-size: 1rem;
}
.user-display-message-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.25rem;
  color: var(--bs-secondary-color);
  line-height: 1;
  text-decoration: none;
  vertical-align: -0.08em;
}
.user-display-message-link:hover,
.user-display-message-link:focus {
  color: var(--bs-primary);
  text-decoration: none;
}
.message-layout .section-card .card-body {
  padding: 0.9rem;
}
.message-layout .card .h5 {
  font-size: 1rem;
}
.message-layout .form-label {
  font-size: 0.78rem;
  margin-bottom: 0.3rem;
}
.message-layout .form-text {
  font-size: 0.74rem;
}
.message-layout .form-control,
.message-layout .form-select {
  font-size: 0.85rem;
  padding: 0.42rem 0.62rem;
}
.message-layout textarea.form-control {
  font-size: 0.84rem;
  line-height: 1.35;
}
.message-layout .btn {
  font-size: 0.82rem;
  padding: 0.38rem 0.62rem;
}
.message-layout .btn.btn-sm {
  font-size: 0.78rem;
  padding: 0.32rem 0.55rem;
}
.message-layout .list-group-item {
  padding: 0.66rem 0.75rem;
}
.message-layout .badge {
  font-size: 0.68rem;
}
.message-layout .text-muted.small,
.message-layout .small {
  font-size: 0.73rem !important;
}
.message-thread {
  max-height: 60vh;
  overflow: auto;
  padding-right: 0.25rem;
}
.message-bubble-wrap {
  display: flex;
  justify-content: flex-start;
}
.message-bubble-wrap.is-own {
  justify-content: flex-end;
}
.message-bubble {
  max-width: min(100%, 42rem);
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: var(--bs-tertiary-bg);
  border: 1px solid var(--bs-border-color);
}
.message-bubble.is-own {
  background: var(--bs-primary);
  border-color: var(--bs-primary);
  color: #fff;
}
.message-bubble.is-unread {
  box-shadow: 0 0 0 0.22rem rgba(var(--bs-primary-rgb), 0.12);
}
.message-unread-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--bs-secondary-color);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.message-unread-divider::before,
.message-unread-divider::after {
  content: "";
  height: 1px;
  background: var(--bs-border-color);
  flex: 1;
}
.message-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.message-attachment-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.message-layout .col-xl-7 .section-card {
  height: calc(100vh - var(--app-navbar-offset) - 2rem);
  max-height: calc(100vh - var(--app-navbar-offset) - 2rem);
}
.message-layout .col-xl-7 .section-card .card-body {
  padding: 0.8rem 0.9rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.message-layout .message-thread {
  flex: 1 1 auto;
  max-height: none;
  min-height: 0;
  gap: 0.55rem !important;
  margin-bottom: 0.65rem !important;
}
.message-layout .message-bubble {
  max-width: min(100%, 37rem);
  padding: 0.64rem 0.78rem;
  border-radius: 0.8rem;
  font-size: 0.84rem;
  line-height: 1.34;
}
.message-layout .message-bubble .fw-semibold {
  font-size: 0.84rem;
}
.message-layout .message-unread-divider {
  font-size: 0.71rem;
  gap: 0.5rem;
  margin-block: 0.1rem;
}
.message-layout .message-attachments {
  gap: 0.35rem;
}
.message-layout .message-attachment-item .btn {
  padding: 0.22rem 0.45rem;
  font-size: 0.74rem;
}
.message-layout #messageReplyForm {
  margin-top: auto;
}
.message-layout #messageReplyForm textarea.form-control {
  font-size: 0.82rem;
  min-height: 5.8rem;
}
.message-compose-attachment-list .list-group-item {
  padding: 0.6rem 0.75rem;
}
.message-compose-modal .modal-content {
  border-radius: 1rem;
}
.message-compose-modal .modal-header,
.message-compose-modal .modal-footer {
  padding-inline: 1.25rem;
}
.message-compose-modal .modal-body {
  padding: 1.25rem;
}
.stream-app {
  max-width: 1680px;
  margin-inline: auto;
}
.stream-lobby {
  max-width: 1180px;
  margin-inline: auto;
}
.stream-lobby-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.stream-room-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  align-items: stretch;
  gap: 0.85rem;
}
.stream-room-entry {
  min-width: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 0.9rem;
  justify-content: space-between;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.6rem;
  background: var(--bs-body-bg);
  padding: 1rem;
  box-shadow: 0 0.35rem 1.15rem rgba(0, 0, 0, 0.06);
}
.stream-room-entry.is-restricted {
  background: var(--bs-tertiary-bg);
}
.stream-room-entry-main {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 0.7rem;
}
.stream-room-entry-head {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.7rem;
}
.stream-room-icon {
  width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
  background: var(--bs-tertiary-bg);
  color: var(--bs-secondary-color);
}
.stream-room-icon.is-active {
  border-color: rgba(var(--bs-success-rgb), 0.35);
  background: rgba(var(--bs-success-rgb), 0.12);
  color: var(--bs-success);
}
.stream-room-description {
  min-height: 2.25rem;
  margin: 0;
  color: var(--bs-secondary-color);
  font-size: 0.86rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.stream-room-meta,
.stream-room-entry-action,
.stream-room-restriction {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.stream-room-entry-action {
  justify-content: flex-end;
}
.stream-room-restriction {
  color: var(--bs-warning-text-emphasis);
  font-size: 0.82rem;
}
.stream-room-empty {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px dashed var(--bs-border-color);
  border-radius: 0.6rem;
  background: var(--bs-tertiary-bg);
  padding: 1rem;
}
.stream-room-empty > i {
  color: var(--bs-secondary-color);
  font-size: 1.4rem;
}
.stream-toast-container {
  position: fixed;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 1095;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: min(24rem, calc(100vw - 1.5rem));
}
.stream-toast {
  width: 100%;
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.28);
}
.admin-stream-room-fields {
  min-width: 20rem;
  display: grid;
  grid-template-columns: minmax(9rem, 1fr) minmax(7rem, 0.7fr);
  gap: 0.35rem 0.5rem;
}
.admin-stream-room-fields label {
  min-width: 0;
  display: grid;
  gap: 0.15rem;
  margin: 0;
}
.admin-stream-room-fields label > span {
  color: var(--bs-secondary-color);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
}
.admin-stream-room-description {
  grid-column: 1 / -1;
}
.admin-stream-owner-cell {
  min-width: 16rem;
  display: grid;
  gap: 0.35rem;
}
.admin-stream-owner-current {
  font-weight: 600;
}
.admin-stream-owner-control {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) auto auto;
  align-items: center;
  gap: 0.35rem;
}
.admin-stream-owner-control .btn {
  white-space: nowrap;
}
.admin-stream-room-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.admin-stream-room-actions form {
  margin: 0;
  flex: 0 0 auto;
}
.admin-stream-room-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-height: 2rem;
  white-space: nowrap;
}
.stream-lobby-presence {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  max-height: 4.8rem;
  overflow: auto;
}
.stream-lobby-presence-user {
  border: 1px solid var(--bs-border-color);
  background-color: var(--bs-tertiary-bg) !important;
  color: var(--bs-emphasis-color) !important;
  text-decoration: none;
}
.stream-lobby-presence-user:hover,
.stream-lobby-presence-user:focus {
  border-color: var(--bs-primary);
  color: var(--bs-primary) !important;
}
.stream-room-body {
  width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  padding-top: 0;
  background: var(--bs-body-bg);
}
.stream-guest-entry {
  width: min(100% - 2rem, 26rem);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.stream-room-app {
  box-sizing: border-box;
  width: 100vw;
  max-width: none;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0.35rem;
  transition:
    padding-left 0.18s ease,
    padding-right 0.18s ease;
}
.stream-room-app:fullscreen {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bs-body-bg);
}
.stream-room-toolbar {
  position: relative;
  z-index: 1040;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.stream-room-toolbar-left {
  display: flex;
  justify-content: center;
  min-width: 0;
  text-align: center;
}
.stream-room-toolbar-center {
  display: grid;
  justify-items: center;
  min-width: 0;
  max-width: 100%;
  gap: 0.05rem;
  text-align: center;
}
.stream-room-toolbar-title {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  color: var(--bs-emphasis-color);
  font-weight: 600;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stream-room-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.stream-room-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: min(8rem, 100%);
}
.stream-room-logo img {
  display: block;
  max-width: 100%;
  height: clamp(2rem, 3vw, 2.75rem);
  width: auto;
}
.stream-room-sidebar {
  position: fixed;
  z-index: 1030;
  top: var(--stream-side-panel-top, 3rem);
  bottom: 0.35rem;
  left: 0.35rem;
  pointer-events: none;
}
.stream-room-app:fullscreen .stream-room-sidebar {
  position: absolute;
}
.stream-room-sidebar-panel {
  display: flex;
  flex-direction: column;
  width: 18rem;
  max-width: calc(100vw - 0.7rem);
  height: 100%;
  min-height: 0;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
  background: var(--bs-body-bg);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.16);
  opacity: 0;
  transform: translateX(-0.75rem);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
  pointer-events: none;
  overflow: hidden;
}
.stream-room-sidebar.is-open .stream-room-sidebar-panel {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.stream-room-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.7rem;
  border-bottom: 1px solid var(--bs-border-color);
}
.stream-room-sidebar-head .btn {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
[data-stream-room-sidebar-content] {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.stream-room-compact-list {
  display: grid;
  align-content: start;
  grid-auto-rows: max-content;
  gap: 0.45rem;
  height: 100%;
  max-height: none;
  padding: 0.55rem;
  overflow: auto;
}
.stream-room-compact-summary {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--bs-secondary-color);
  font-size: 0.76rem;
}
.stream-room-compact-item {
  display: grid;
  gap: 0.35rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.45rem;
  background: var(--bs-tertiary-bg);
  padding: 0.55rem;
}
.stream-room-compact-channel.is-current {
  border-color: rgba(var(--bs-primary-rgb), 0.55);
  background: rgba(var(--bs-primary-rgb), 0.08);
}
.stream-room-compact-channel {
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
  background: var(--bs-body-bg);
  padding: 0.5rem;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}
.stream-room-compact-channel.is-stream-move-drop-target {
  border-color: rgba(var(--bs-info-rgb), 0.8);
  background: rgba(var(--bs-info-rgb), 0.08);
  box-shadow: 0 0 0 0.16rem rgba(var(--bs-info-rgb), 0.2);
}
.stream-room-compact-item.is-current {
  border-color: rgba(var(--bs-primary-rgb), 0.55);
  background: rgba(var(--bs-primary-rgb), 0.08);
}
.stream-room-compact-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.4rem;
}
.stream-room-compact-name {
  min-width: 0;
  overflow: hidden;
  color: var(--bs-emphasis-color);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stream-room-compact-name:hover,
.stream-room-compact-name:focus {
  color: var(--bs-primary);
  text-decoration: underline;
}
.stream-room-compact-muted {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--bs-secondary-color);
  font-size: 0.76rem;
}
.stream-room-compact-participants {
  display: grid;
  gap: 0.18rem;
}
.stream-room-compact-participant {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  color: var(--bs-secondary-color);
  font-size: 0.78rem;
}
.stream-room-compact-participant a,
.stream-room-compact-participant span:first-of-type {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stream-room-compact-participant a:hover,
.stream-room-compact-participant a:focus {
  color: var(--bs-primary);
  text-decoration: underline;
}
.stream-room-draggable-participant {
  cursor: grab;
}
.stream-room-draggable-participant:active,
.stream-room-draggable-participant.is-stream-move-dragging {
  cursor: grabbing;
  opacity: 0.68;
}
.stream-room-toolbar-actions {
  width: auto;
  min-width: 0;
  flex-wrap: nowrap !important;
  justify-content: flex-end;
  overflow-x: auto;
  scrollbar-width: thin;
}
.stream-room-toolbar .btn {
  white-space: nowrap;
}
.stream-viewer-status-icons {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  margin-left: auto;
  color: var(--bs-secondary-color);
  font-size: 0.82rem;
}
.stream-viewer-status-icons > .is-active {
  color: var(--bs-success);
}
.stream-viewer-status-icons > .is-muted {
  color: var(--bs-secondary-color);
  opacity: 0.72;
}
/* .stream-room-toolbar .btn,
.stream-room-toolbar .form-select {
  line-height: 1.15;
}
.stream-room-toolbar .btn {
  padding-block: 0.18rem;
}
.stream-room-toolbar .form-select-sm {
  padding-top: 0.18rem;
  padding-bottom: 0.18rem;
} */
.stream-toolbar-status {
  min-height: 1rem;
  max-width: min(32rem, 48vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.74rem;
  line-height: 1.1;
}
.stream-files-policy-form {
  padding: 0.75rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
  background: var(--bs-tertiary-bg);
}
.stream-file-policy-form,
.stream-file-user-permission-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: end;
}
.stream-file-user-permission-form {
  grid-template-columns: minmax(8rem, 1.4fr) minmax(7rem, 1fr) minmax(7rem, 1fr) auto;
  margin-top: 0.75rem;
}
.stream-file-user-permission-row .stream-admin-row-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.stream-files-dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 5rem;
  margin-bottom: 0.85rem;
  padding: 0.85rem;
  border: 1px dashed var(--bs-border-color);
  border-radius: 0.5rem;
  color: var(--bs-secondary-color);
  cursor: pointer;
  text-align: center;
}
.stream-files-dropzone i {
  color: var(--bs-primary);
  font-size: 1.35rem;
}
.stream-files-dropzone span {
  color: var(--bs-body-color);
  font-weight: 600;
}
.stream-files-dropzone small {
  display: block;
}
.stream-files-dropzone.is-dragover {
  border-color: var(--bs-primary);
  background: rgba(var(--bs-primary-rgb), 0.08);
}
.stream-files-list {
  display: grid;
  gap: 0.45rem;
}
.stream-file-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
}
.stream-file-row > .bi {
  color: var(--bs-primary);
  font-size: 1.35rem;
}
.stream-file-main {
  min-width: 0;
}
.stream-file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.stream-file-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  align-items: center;
  color: var(--bs-secondary-color);
  font-size: 0.78rem;
}
.stream-file-actions {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
}
.stream-file-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.stream-files-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 5rem;
  color: var(--bs-secondary-color);
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
}
@media (min-width: 1200px) {
  .stream-room-toolbar-actions {
    flex-wrap: nowrap !important;
  }
}
.stream-room-app .stream-room-panel {
  padding: 0.45rem;
}
.stream-room-app .stream-panel-heading {
  margin-bottom: 0.35rem;
}
.stream-room-select-form {
  min-width: 11rem;
}
.stream-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem;
  align-items: stretch;
  transition:
    padding-left 0.18s ease,
    padding-right 0.18s ease;
}
.stream-room-app.has-room-sidebar-open .stream-stage {
  padding-left: 18.35rem;
}
.stream-room-app.has-chat-open .stream-stage {
  padding-right: 24.35rem;
}

.stream-chat {
  position: fixed;
  z-index: 1030;
  top: var(--stream-side-panel-top, 3rem);
  right: 0.35rem;
  bottom: 0.35rem;
  width: min(24rem, calc(100vw - 0.7rem));
  min-width: 0;
  min-height: 0;
  max-height: calc(100vh - var(--stream-side-panel-top, 3rem) - 0.35rem);
  max-height: calc(100dvh - var(--stream-side-panel-top, 3rem) - 0.35rem);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
  background: var(--bs-body-bg);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.16);
  overflow: hidden;
  opacity: 1;
  transform: translateX(0);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.stream-room-app:fullscreen .stream-chat {
  position: absolute;
}

.stream-chat.is-collapsed {
  opacity: 0;
  transform: translateX(0.75rem);
  pointer-events: none;
}
.stream-chat.is-dragging-image {
  outline: 2px dashed var(--bs-primary);
  outline-offset: -0.35rem;
}

.stream-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--bs-border-color);
  font-weight: 600;
}

.stream-chat-title,
.stream-chat-message-identity {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}
.stream-chat-message-identity {
  color: inherit;
  text-decoration: none;
}

.stream-chat-header .btn {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.stream-chat-message-name {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stream-chat-message-name:hover,
.stream-chat-message-name:focus {
  color: var(--bs-primary);
  text-decoration: underline;
}

.stream-chat-messages {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  max-width: 100%;
  padding: 0.5rem 0.6rem;
}
.stream-chat-message {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 86%;
  width: 90%;
  margin-bottom: 0.42rem;
  padding: 0.42rem 0.58rem;
  border-radius: 0.65rem;
  background: var(--bs-tertiary-bg);
  font-size: 0.9rem;
  line-height: 1.25;
}
.stream-chat-message-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  margin-bottom: 0.18rem;
}
.stream-chat-message-time {
  flex: 0 0 auto;
  color: var(--bs-emphasis-color);
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.78;
}
.stream-chat-message-own {
  align-self: flex-end;
  text-align: right;
  border: 1px solid var(--stream-chat-own-color);
  background: color-mix(in srgb, var(--stream-chat-own-color) 18%, transparent);
  border-radius: 0 0.75rem;
}

.stream-chat-message-remote {
  align-self: flex-start;
  text-align: left;
  border: 1px solid var(--stream-chat-remote-color);
  background: color-mix(in srgb, var(--stream-chat-remote-color) 18%, transparent);
  border-radius: 0.75rem 0;
}
.stream-chat-system-message {
  align-self: center;
  max-width: 92%;
  margin: 0.25rem 0 0.5rem;
  padding: 0.18rem 0.55rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 999px;
  background: var(--bs-secondary-bg);
  color: var(--bs-secondary-color);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}

.stream-room-app:not(.show-chat-time) .stream-chat-message-time {
  display: none;
}
.stream-chat-message-text {
  overflow-wrap: anywhere;
}
.stream-chat-message-text a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.16em;
  word-break: break-word;
}
.stream-chat-message-image {
  margin-top: 0.28rem;
}
.stream-chat-image-preview {
  position: relative;
  display: inline-flex;
  max-width: 100%;
  max-height: 3.4rem;
  padding: 0;
  border: 0;
  border-radius: 0.35rem;
  background: transparent;
  overflow: hidden;
}
.stream-chat-image-preview img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 3.4rem;
  object-fit: contain;
}
.stream-chat-image-preview.is-nsfw-hidden img {
  filter: blur(0.55rem);
  transform: scale(1.04);
}
.stream-chat-image-preview.is-nsfw-locked {
  width: 6.8rem;
  height: 3.4rem;
  border: 1px solid var(--bs-border-color);
  background: repeating-linear-gradient(
    135deg,
    var(--bs-secondary-bg),
    var(--bs-secondary-bg) 0.45rem,
    var(--bs-tertiary-bg) 0.45rem,
    var(--bs-tertiary-bg) 0.9rem
  );
}
.stream-chat-image-nsfw-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  padding: 0.25rem;
  background: color-mix(in srgb, var(--bs-body-bg) 68%, transparent);
  color: var(--bs-emphasis-color);
  font-size: 0.68rem;
  line-height: 1.1;
  text-align: center;
}
.stream-chat-image-preview:not(.is-nsfw-hidden) .stream-chat-image-nsfw-overlay {
  display: none;
}
.stream-chat-image-nsfw-overlay strong {
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}
.stream-chat-image-nsfw-overlay small {
  color: var(--bs-secondary-color);
  font-size: 0.62rem;
}
.stream-chat-copy-button {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--bs-secondary-color);
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.14s ease,
    color 0.14s ease;
}
.stream-chat-message:hover .stream-chat-copy-button,
.stream-chat-message:focus-within .stream-chat-copy-button {
  opacity: 1;
  pointer-events: auto;
}
.stream-chat-copy-button:hover,
.stream-chat-copy-button:focus,
.stream-chat-copy-button.is-copied {
  color: var(--bs-primary);
}

.stream-chat-form {
  flex: 0 0 auto;
  padding: 0.42rem;
  border-top: 1px solid var(--bs-border-color);
}
.stream-chat-selected-image {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  margin-top: 0.35rem;
  color: var(--bs-secondary-color);
  font-size: 0.78rem;
}
.stream-chat-selected-image img {
  width: auto;
  max-width: 8rem;
  height: auto;
  max-height: 3.4rem;
  border-radius: 0.35rem;
  object-fit: contain;
}
.stream-chat-selected-image [data-stream-chat-selected-image-name] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.stream-chat-image-nsfw-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.18rem 0.45rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 999px;
  color: var(--bs-secondary-color);
  cursor: pointer;
  user-select: none;
}
.stream-chat-image-nsfw-toggle input {
  margin: 0;
}
.stream-chat-image-nsfw-toggle:has(input:checked) {
  border-color: var(--bs-danger);
  color: var(--bs-danger);
  background: color-mix(in srgb, var(--bs-danger) 10%, transparent);
}
.stream-chat-selected-image button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 1.1rem;
  line-height: 1;
}
.stream-chat-selected-image button:hover,
.stream-chat-selected-image button:focus {
  color: var(--bs-danger);
}
.stream-chat-image-modal .modal-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 10rem;
  padding: 0.75rem;
}
.modal:fullscreen .stream-chat-image-modal,
.modal:fullscreen .stream-chat-image-modal .modal-body {
  height: 100%;
}
.modal:fullscreen .modal-dialog {
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
}
.modal:fullscreen .stream-chat-image-modal {
  border: 0;
  border-radius: 0;
}
.stream-chat-image-modal img {
  max-width: 100%;
  max-height: min(78vh, 1080px);
  object-fit: contain;
}
.modal:fullscreen .stream-chat-image-modal img {
  max-height: calc(100vh - 4rem);
  max-height: calc(100dvh - 4rem);
}

.stream-info-screen-layout {
  display: grid;
  grid-template-columns: minmax(12rem, 0.7fr) minmax(30rem, 2fr);
  gap: 1rem;
  align-items: start;
}
.stream-info-screen-modal-dialog {
  width: min(96vw, 1500px);
  max-width: none;
}
.stream-info-screen-controls {
  display: grid;
  gap: 0.75rem;
}
.stream-info-screen-source-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.75rem;
}
.stream-info-screen-source-row .btn {
  min-width: 2.45rem;
  min-height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.stream-info-button-hidden {
  display: none !important;
}
.stream-info-screen-preview-wrap {
  overflow: hidden;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
  background: #111820;
}
.stream-info-screen-drawing-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.45rem;
  border-bottom: 1px solid var(--bs-border-color);
  background: var(--bs-tertiary-bg);
}
.stream-info-screen-drawing-toolbar .form-range {
  min-width: 7rem;
}
.stream-info-screen-drawing-toolbar .form-control-color {
  width: 2rem;
  height: 2rem;
  padding: 0.15rem;
}
.stream-info-screen-color-presets {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}
.stream-info-screen-color-swatch {
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
  padding: 0;
  border: 2px solid var(--bs-border-color);
  border-radius: 50%;
  background: var(--swatch-color);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16);
}
.stream-info-screen-color-swatch:hover,
.stream-info-screen-color-swatch:focus-visible,
.stream-info-screen-color-swatch.is-selected {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 2px rgba(var(--bs-primary-rgb), 0.22), inset 0 0 0 1px rgba(0, 0, 0, 0.16);
}
.stream-info-screen-preview-wrap canvas {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.stream-info-screen-preview-wrap canvas.is-drawing {
  cursor: crosshair;
}
.stream-info-screen-preview-wrap canvas.is-erasing {
  cursor: cell;
}
.stream-picker-modal-backdrop {
  position: fixed;
  z-index: 1090;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.58);
}
.stream-picker-modal-backdrop.open {
  display: flex;
}
.stream-picker-modal {
  width: min(58rem, 100%);
  max-height: min(44rem, calc(100vh - 2rem));
  max-height: min(44rem, calc(100dvh - 2rem));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.65rem;
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.38);
}
.stream-picker-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--bs-border-color);
}
.stream-picker-modal-head h2 {
  margin: 0;
  font-size: 1rem;
}
.stream-picker-modal-head p {
  margin: 0.15rem 0 0;
  color: var(--bs-secondary-color);
  font-size: 0.84rem;
}
.stream-picker-icon-button {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.45rem;
  background: transparent;
  color: inherit;
}
.stream-picker-modal-body {
  display: grid;
  gap: 0.75rem;
  min-height: 0;
  padding: 0.85rem 1rem 1rem;
  overflow: hidden;
}
.stream-picker-image-picker-search {
  width: 100%;
  min-height: 2.2rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.45rem;
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
}
.stream-picker-image-picker-empty {
  padding: 1.5rem;
  color: var(--bs-secondary-color);
  text-align: center;
}
.stream-picker-image-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
  gap: 0.65rem;
  min-height: 0;
  overflow: auto;
}
.stream-picker-image-picker-tile {
  display: grid;
  gap: 0.35rem;
  padding: 0.35rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
  background: var(--bs-tertiary-bg);
  color: inherit;
  text-align: left;
}
.stream-picker-image-picker-tile.selected {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.12rem rgba(var(--bs-primary-rgb), 0.22);
}
.stream-picker-image-picker-tile img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0.35rem;
  background: #05070a;
}
.stream-picker-image-picker-tile span {
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stream-chat-form .form-control {
  min-width: 0;
}

@media (max-width: 991.98px) {
  .stream-stage {
    grid-template-columns: 1fr;
  }
  .stream-info-screen-layout {
    grid-template-columns: 1fr;
  }

  .stream-room-app.has-chat-open .stream-stage {
    padding-right: 0;
  }

  .stream-chat {
    top: var(--stream-side-panel-top, 3.2rem);
    right: 0.35rem;
    bottom: 0.35rem;
    width: min(22rem, calc(100vw - 0.7rem));
  }
}
.stream-self-panel,
.stream-room-panel {
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
  background: var(--bs-body-bg);
  padding: 1rem;
}
.stream-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}
.stream-device-row .form-select {
  min-width: 0;
}
.stream-options {
  display: grid;
  gap: 0.35rem;
}
.stream-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.stream-settings-tabs {
  gap: 0.25rem;
  flex-wrap: wrap;
}
.stream-settings-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.stream-settings-tab-content {
  padding-top: 1rem;
}
.stream-settings-panel {
  min-width: 0;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
  background: var(--bs-tertiary-bg);
  padding: 0.9rem;
}
.stream-settings-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.stream-settings-pane-column {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 0.75rem;
}
.stream-settings-pane-column + .stream-settings-pane-column {
  border-left: 1px solid var(--bs-border-color);
  padding-left: 1rem;
}
.stream-setting-group {
  min-width: 0;
}
.stream-setting-group .form-range,
.stream-setting-group .form-select,
.stream-setting-group .input-group {
  margin-bottom: 0;
}
.stream-move-protection-setting {
  display: grid;
  grid-template-columns: minmax(11rem, 0.9fr) minmax(12rem, 1.1fr);
  align-items: center;
  gap: 0.75rem;
}
.stream-move-protection-mode {
  min-width: 0;
}
.stream-sound-settings-table {
  min-width: 34rem;
}
.stream-sound-settings-table th,
.stream-sound-settings-table td {
  white-space: nowrap;
}
.stream-sound-settings-table td:first-child {
  white-space: normal;
  min-width: 9rem;
}
.stream-sound-upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}
.stream-sound-upload-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.stream-settings-panel > h3,
.stream-settings-panel .h6 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.stream-mic-control {
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
  background: var(--bs-tertiary-bg);
  padding: 0.8rem;
}
.stream-mic-control .form-range {
  margin-bottom: 0.35rem;
}
.stream-mic-meter {
  position: relative;
  height: 0.7rem;
  overflow: hidden;
  border: 1px solid var(--bs-border-color);
  border-radius: 999px;
  background: var(--bs-body-bg);
}
.stream-mic-meter-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--bs-success),
    var(--bs-warning),
    var(--bs-danger)
  );
  transition: width 0.06s linear;
}
.stream-mic-meter-threshold {
  position: absolute;
  top: -0.2rem;
  bottom: -0.2rem;
  width: 2px;
  background: var(--bs-emphasis-color);
}
.stream-mic-recorder {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.stream-mic-recorder [data-mic-recording-status] {
  flex-basis: 100%;
}
.stream-self-video-wrap,
.stream-tile {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
  background: #15191f;
}
.stream-self-video,
.stream-grid-video,
.stream-tile img:not(.user-award-icon) {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #05070a;
}
.stream-self-video.is-mirrored,
.stream-grid-video.is-mirrored {
  transform: scaleX(-1);
}
.stream-self-video.is-paused,
.stream-grid-video.is-paused {
  opacity: 0;
}
.stream-video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.82);
  background:
    linear-gradient(135deg, rgba(47, 111, 115, 0.36), rgba(21, 25, 31, 0.92)),
    #15191f;
  text-align: center;
}
.stream-video-placeholder i {
  font-size: 2.2rem;
}
.stream-video-placeholder a {
  color: #fff;
  text-decoration: none;
}
.stream-video-placeholder a:hover,
.stream-video-placeholder a:focus {
  text-decoration: underline;
}
.stream-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(min(100%, clamp(18rem, 28vw, 26rem)), 1fr)
  );
  gap: 0.75rem;
}
.stream-grid .stream-tile {
  cursor: zoom-in;
}
.stream-grid .stream-tile.is-shelved {
  display: none;
}
.stream-grid.has-focused-tile .stream-tile:not(.is-focused) {
  display: none;
}
.stream-grid.has-focused-tile .stream-tile.is-focused {
  cursor: zoom-out;
}
.stream-grid.is-fitted {
  grid-template-columns: repeat(var(--stream-grid-columns, 1), minmax(0, 1fr));
}
.stream-grid.is-fitted .stream-tile {
  height: var(--stream-grid-tile-height, auto);
  aspect-ratio: auto;
}
.stream-tile-bar {
  position: absolute;
  z-index: 2;
  left: 0.55rem;
  right: 0.55rem;
  bottom: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0.5rem;
  border-radius: 0.45rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.58);
  font-size: 0.82rem;
  opacity: 0;
  transform: translateY(0.35rem);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease;
  pointer-events: none;
}
.stream-tile[data-video-source="info"] .stream-tile-bar,
.stream-info-screen-grid-tile .stream-tile-bar {
  right: auto;
  width: auto;
  max-width: calc(100% - 1.1rem);
}
.stream-tile-bar a {
  min-width: 0;
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stream-tile .user-award-icon {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  max-width: 1rem;
  max-height: 1rem;
  object-fit: contain;
}
.stream-tile-bar a:hover,
.stream-tile-bar a:focus {
  text-decoration: underline;
}
.stream-tile-identity {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  flex: 1 1 auto;
}
.stream-tile-identity > .stream-role-icon {
  flex: 0 0 auto;
}
.stream-tile-identity > a,
.stream-tile-identity > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stream-guest-marker {
  flex: 0 0 auto;
  padding: 0.08rem 0.3rem;
  border-radius: 0.2rem;
  color: #111827;
  background: #d5e1e9;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.2;
}
.stream-tile-bar [data-stream-audio-state].bi-mic-mute,
.stream-tile-bar [data-stream-audio-state].bi-mic-mute-fill,
.stream-tile-bar [data-stream-audio-state].bi-volume-mute,
.stream-tile-bar [data-stream-audio-state].bi-volume-mute-fill {
  color: #ff6b6b;
}
.stream-connection-quality {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.12rem;
  width: 1rem;
  height: 1rem;
  color: #9ca3af;
}
.stream-connection-quality > span {
  display: block;
  width: 0.18rem;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.95;
}
.stream-connection-quality > span:nth-child(1) {
  height: 0.35rem;
}
.stream-connection-quality > span:nth-child(2) {
  height: 0.6rem;
}
.stream-connection-quality > span:nth-child(3) {
  height: 0.85rem;
}
.stream-connection-quality[data-connection-quality="excellent"] {
  color: #30b300;
}
.stream-connection-quality[data-connection-quality="good"] {
  color: #3a8bee;
}
.stream-connection-quality[data-connection-quality="poor"] {
  color: #ffc107;
}
.stream-connection-quality[data-connection-quality="lost"] {
  color: #ff6b6b;
}
.stream-connection-quality[data-connection-quality="unknown"] > span,
.stream-connection-quality[data-connection-quality="lost"] > span {
  opacity: 0.35;
}
.stream-connection-quality[data-connection-quality="poor"] > span:nth-child(n+2) {
  opacity: 0.25;
}
.stream-connection-quality[data-connection-quality="good"] > span:nth-child(3) {
  opacity: 0.25;
}
.stream-tile-popout {
  position: absolute;
  z-index: 3;
  top: 0.55rem;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 0.45rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.52);
  opacity: 0;
  transform: translateY(-0.25rem);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    background-color 0.16s ease;
}
.stream-tile-popout:hover,
.stream-tile-popout:focus {
  background: rgba(0, 0, 0, 0.74);
}
.stream-tile-focus-button {
  position: absolute;
  z-index: 3;
  top: 2.9rem;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 0.45rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.52);
  opacity: 0;
  transform: translateY(-0.25rem);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    background-color 0.16s ease;
}
.stream-tile-focus-button:hover,
.stream-tile-focus-button:focus {
  background: rgba(0, 0, 0, 0.74);
}
.stream-tile-shelf-button {
  position: absolute;
  z-index: 3;
  top: 5.25rem;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 0.45rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.52);
  opacity: 0;
  transform: translateY(-0.25rem);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    background-color 0.16s ease;
}
.stream-tile-shelf-button:hover,
.stream-tile-shelf-button:focus {
  background: rgba(0, 0, 0, 0.74);
}
.stream-tile-local-mute {
  position: absolute;
  z-index: 3;
  top: 7.6rem;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 0.45rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.52);
  opacity: 0;
  transform: translateY(-0.25rem);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    background-color 0.16s ease;
}
.stream-tile-local-mute:hover,
.stream-tile-local-mute:focus,
.stream-tile-local-mute.is-active {
  background: rgba(var(--bs-warning-rgb), 0.92);
  color: #111;
}
.stream-tile-local-mute.is-active {
  opacity: 1;
  transform: translateY(0);
}
.stream-tile-actions {
  position: absolute;
  z-index: 3;
  top: 0.55rem;
  left: 0.55rem;
  opacity: 0;
  transform: translateY(-0.25rem);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease;
  pointer-events: none;
}
.stream-participant-menu-toggle {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(0, 0, 0, 0.58);
}
.stream-participant-dropdown {
  min-width: 15rem;
  padding: 0.25rem;
}
.stream-participant-dropdown form {
  margin: 0;
}
.stream-participant-dropdown .dropdown-item {
  border-radius: 0.25rem;
  font-size: 0.82rem;
}
.stream-participant-dropdown .dropdown-item.is-active,
.stream-participant-dropdown .dropdown-item.active {
  color: #111;
  background: var(--bs-warning);
}
.stream-participant-move-control {
  min-width: 14rem;
}
.stream-participant-move-control .form-label {
  color: rgba(255, 255, 255, 0.72);
}
.stream-admin-mute-badge {
  position: absolute;
  z-index: 4;
  top: 0.55rem;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: calc(100% - 7rem);
  min-height: 2rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  color: #111;
  background: var(--bs-warning);
  box-shadow: 0 0.45rem 1.4rem rgba(0, 0, 0, 0.22);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.1;
  transform: translateX(-50%);
  pointer-events: none;
}
.stream-admin-mute-badge span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stream-tile:hover .stream-tile-bar,
.stream-tile:focus-within .stream-tile-bar,
.stream-tile:hover .stream-tile-popout,
.stream-tile:focus-within .stream-tile-popout,
.stream-tile:hover .stream-tile-focus-button,
.stream-tile:focus-within .stream-tile-focus-button,
.stream-tile:hover .stream-tile-shelf-button,
.stream-tile:focus-within .stream-tile-shelf-button,
.stream-tile:hover .stream-tile-local-mute,
.stream-tile:focus-within .stream-tile-local-mute,
.stream-tile:hover .stream-tile-actions,
.stream-tile:focus-within .stream-tile-actions {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.stream-tile:fullscreen {
  width: 100vw;
  height: 100vh;
  border: 0;
  border-radius: 0;
  background: #000;
  box-shadow: none;
  cursor: zoom-out;
}
.stream-tile:fullscreen .stream-grid-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.stream-tile:fullscreen .stream-tile-bar,
.stream-tile:fullscreen .stream-tile-popout,
.stream-tile:fullscreen .stream-tile-focus-button,
.stream-tile:fullscreen .stream-tile-shelf-button,
.stream-tile:fullscreen .stream-tile-actions {
  opacity: 1;
  transform: translateY(0);
}
.stream-speaker-indicator {
  position: absolute;
  z-index: 4;
  top: 0.55rem;
  right: 3rem;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  color: #111;
  background: var(--stream-speaker-color, #1eed02);
  box-shadow: 0 0 0 0 rgba(var(--stream-speaker-color-rgb, 30, 237, 2), 0.48);
  opacity: 0;
  transform: scale(0.86);
  transition:
    opacity 0.14s ease,
    transform 0.14s ease;
  pointer-events: none;
}
.stream-speaker-border-enabled .is-speaking {
  outline: 1px solid var(--stream-speaker-color, #1eed02);
  outline-offset: -0.5px;

  box-shadow:
    inset 0 0 0 5px rgba(var(--stream-speaker-color-rgb, 30, 237, 2), 0.72),
    0 0 16px rgba(var(--stream-speaker-color-rgb, 30, 237, 2), 0.7);
}
.stream-speaker-icon-enabled .is-speaking > .stream-speaker-indicator {
  opacity: 1;
  transform: scale(1);
  animation: stream-speaker-pulse 0.7s ease-out infinite;
}
.stream-speaker-icon-enabled .is-aux-speaking > .stream-speaker-indicator {
  background: var(--stream-aux-color, #fd7e14);
  box-shadow: 0 0 0 0 rgba(var(--stream-aux-color-rgb, 253, 126, 20), 0.48);
  opacity: 1;
  transform: scale(1);
  animation: stream-aux-pulse 0.85s ease-out infinite;
}
.stream-speaker-border-enabled .is-aux-speaking:not(.is-speaking) {
  outline: 1px solid var(--stream-aux-color, #fd7e14);
  outline-offset: -0.5px;
  box-shadow:
    inset 0 0 0 5px rgba(var(--stream-aux-color-rgb, 253, 126, 20), 0.66),
    0 0 16px rgba(var(--stream-aux-color-rgb, 253, 126, 20), 0.62);
}
.stream-speaker-border-enabled .stream-shelf-item.is-speaking {
  outline: 2px solid var(--stream-speaker-color, #1eed02);
  outline-offset: 2px;
  box-shadow: 0 0 14px rgba(var(--stream-speaker-color-rgb, 30, 237, 2), 0.72);
}
.stream-speaker-border-enabled .stream-shelf-item.is-aux-speaking:not(.is-speaking) {
  outline: 2px solid var(--stream-aux-color, #fd7e14);
  outline-offset: 2px;
  box-shadow: 0 0 14px rgba(var(--stream-aux-color-rgb, 253, 126, 20), 0.66);
}
.stream-shelf-item > .stream-speaker-indicator {
  top: 0.22rem;
  right: 0.22rem;
  width: 1.35rem;
  height: 1.35rem;
  font-size: 0.78rem;
}
@keyframes stream-speaker-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--stream-speaker-color-rgb, 30, 237, 2), 0.48);
  }
  100% {
    box-shadow: 0 0 0 0.55rem
      rgba(var(--stream-speaker-color-rgb, 30, 237, 2), 0);
  }
}
@keyframes stream-aux-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--stream-aux-color-rgb, 253, 126, 20), 0.48);
  }
  100% {
    box-shadow: 0 0 0 0.55rem
      rgba(var(--stream-aux-color-rgb, 253, 126, 20), 0);
  }
}
.stream-show-names .stream-tile-bar {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.stream-shelf {
  position: relative;
  z-index: 20;
  margin-top: 0.2rem;
  padding: 0;
  overflow: visible;
}
.stream-shelf-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  min-height: 3.6rem;
  padding-top: 0.4rem;
  padding-bottom: 0.25rem;
  overflow-x: hidden;
  overflow-y: visible;
}
.stream-shelf-item {
  flex: 0 0 auto;
  width: 8rem;
  height: 3.6rem;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.45rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.1rem;
  background: linear-gradient(135deg, #1f2933, #111827);
  padding: 0.9rem 0.35rem 0.3rem;
  text-align: center;
}
.stream-shelf-item[role="button"] {
  cursor: pointer;
}
.stream-shelf-item[role="button"]:focus-visible {
  outline: 2px solid var(--bs-info);
  outline-offset: -2px;
}
.stream-shelf-item:hover .stream-shelf-presence-menu {
  display: flex;
}
.stream-shelf-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 1.3rem;
  width: 100%;
}
.stream-shelf-status > i {
  font-size: 1.05rem;
  line-height: 1;
  color: #9ca3af;
}
.stream-shelf-status > i.is-active {
  color: var(--bs-info);
}
.stream-shelf-status > i.is-blocked {
  color: var(--bs-warning);
}
.stream-shelf-status > .bi-pause-circle-fill.is-active {
  color: var(--bs-warning);
}
.stream-shelf-item.is-admin-muted::after {
  content: "Mod mute";
  position: absolute;
  top: 0.22rem;
  right: 0.22rem;
  max-width: calc(100% - 0.44rem);
  padding: 0.08rem 0.25rem;
  border-radius: 0.3rem;
  color: #111;
  background: var(--bs-warning);
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stream-shelf-presence {
  color: #f8f9fa;
  cursor: default;
  opacity: 1;
  overflow: visible;
}
.stream-shelf-presence-menu {
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  display: none;
  z-index: 4;
}
.stream-shelf-presence-menu > .stream-participant-menu-toggle {
  width: 1.45rem;
  height: 1.45rem;
  font-size: 0.8rem;
}
.stream-remote-volume-control {
  display: grid;
  gap: 0.35rem;
  min-width: 14rem;
  padding: 0.45rem 0.75rem 0.6rem;
  color: var(--bs-dropdown-link-color, #fff);
}
.stream-remote-volume-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
}
.stream-remote-volume-header [data-remote-volume-label] {
  font-variant-numeric: tabular-nums;
  color: var(--bs-info);
}
.stream-remote-volume-range {
  --stream-range-track: rgba(255, 255, 255, 0.28);
  --stream-range-thumb: var(--bs-info, #0dcaf0);
  height: 0.9rem;
  margin: 0;
  accent-color: var(--stream-range-thumb);
}
.stream-remote-volume-range::-webkit-slider-runnable-track {
  height: 0.32rem;
  border-radius: 999px;
  background: var(--stream-range-track);
}
.stream-remote-volume-range::-webkit-slider-thumb {
  margin-top: -0.32rem;
}
.stream-remote-volume-range::-moz-range-track {
  height: 0.32rem;
  border-radius: 999px;
  background: var(--stream-range-track);
}
.stream-remote-volume-range::-moz-range-progress {
  height: 0.32rem;
  border-radius: 999px;
  background: var(--stream-range-thumb);
}
.stream-remote-volume-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.stream-remote-volume-mute.is-active {
  color: var(--bs-warning, #ffc107);
  border-color: var(--bs-warning, #ffc107);
}
.stream-remote-volume-reset {
  flex: 1 1 6.5rem;
  min-width: 6.5rem;
  padding: 0.08rem 0.4rem;
  font-size: 0.72rem;
  line-height: 1.2;
  white-space: nowrap;
}
.stream-remote-volume-mute {
  flex: 1 1 5.5rem;
  min-width: 5.5rem;
  padding: 0.08rem 0.4rem;
  font-size: 0.72rem;
  line-height: 1.2;
  white-space: nowrap;
}
.stream-audio-mixer {
  min-height: 3rem;
  max-height: min(22rem, 42vh);
  overflow: auto;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
  background: var(--bs-tertiary-bg);
}
.stream-audio-mixer [data-stream-audio-mixer-empty] {
  padding: 0.8rem;
}
.stream-audio-mixer-list {
  display: grid;
}
.stream-audio-mixer-row {
  display: grid;
  grid-template-columns: minmax(9rem, 0.7fr) minmax(0, 1.5fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  border-top: 1px solid var(--bs-border-color);
}
.stream-audio-mixer-row:first-child {
  border-top: 0;
}
.stream-audio-mixer-head {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}
.stream-audio-mixer-name {
  overflow: hidden;
  color: var(--bs-emphasis-color);
  font-weight: 600;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
a.stream-audio-mixer-name:hover,
a.stream-audio-mixer-name:focus {
  color: var(--bs-primary);
  text-decoration: underline;
}
.stream-audio-mixer-hint {
  color: var(--bs-secondary-color);
  font-size: 0.75rem;
}
.stream-audio-mixer-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  min-width: 0;
}
.stream-audio-mixer .stream-remote-volume-control {
  min-width: 0;
  padding: 0;
  color: var(--bs-body-color);
}
.stream-audio-mixer .stream-remote-volume-header {
  font-size: 0.76rem;
}
.stream-audio-mixer .stream-remote-volume-actions .btn {
  color: var(--bs-body-color);
  border-color: var(--bs-border-color);
}
.stream-audio-mixer .stream-remote-volume-mute.is-active {
  color: #111;
  background: var(--bs-warning, #ffc107);
  border-color: var(--bs-warning, #ffc107);
}
@media (max-width: 767.98px) {
  .stream-audio-mixer-row {
    grid-template-columns: 1fr;
  }
  .stream-audio-mixer-controls {
    grid-template-columns: 1fr;
  }
}
.stream-dropdown-label {
  position: static;
  display: inline;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  white-space: normal;
}
.stream-shelf-name {
  display: block;
  max-width: 100%;
  font-size: 0.72rem;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit;
}
.stream-shelf-identity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  width: 100%;
  min-width: 0;
}
.stream-shelf-identity > .stream-role-icon {
  flex: 0 0 auto;
  font-size: 0.8rem;
}
.stream-shelf-identity > .stream-shelf-name {
  min-width: 0;
}
a.stream-shelf-name:hover,
a.stream-shelf-name:focus {
  color: var(--bs-info);
  text-decoration: underline;
}
.stream-shelf-presence > small {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  max-width: calc(100% - 0.5rem);
  padding: 0.08rem 0.25rem;
  border-radius: 0.3rem;
  color: #111;
  background: var(--bs-warning);
  font-size: 0.62rem;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stream-admin-sections {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 1rem 2rem;
}
.stream-admin-sections::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--bs-border-color);
  transform: translateX(-0.5px);
}
.stream-admin-section {
  min-width: 0;
  display: grid;
  gap: 0.75rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
  background: var(--bs-tertiary-bg);
  padding: 0.9rem;
}
.stream-admin-section > h3,
.stream-admin-section-title {
  margin: 0;
}
.stream-admin-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.stream-admin-room-form {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) minmax(7rem, 0.7fr);
  gap: 0.75rem;
}
.stream-admin-room-description-field,
.stream-admin-switches,
.stream-admin-actions {
  grid-column: 1 / -1;
}
.stream-admin-switches,
.stream-admin-actions,
.stream-admin-danger-form,
.stream-admin-inline-form,
.stream-admin-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.stream-admin-list {
  display: grid;
  gap: 0.45rem;
}
.stream-admin-row {
  justify-content: space-between;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.45rem;
  background: var(--bs-body-bg);
  padding: 0.45rem;
}
.stream-admin-row-action {
  display: flex;
  align-items: center;
}
.stream-admin-row-main {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.stream-admin-inline-form .form-control {
  width: min(22rem, 100%);
}
.stream-guest-link-create-form .form-control {
  width: min(14rem, 100%);
}
.stream-guest-link-section .stream-admin-section-title {
  align-items: flex-start;
}
.stream-guest-link-section .stream-admin-list {
  gap: 0.6rem;
}
.stream-guest-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem;
}
.stream-guest-link-main {
  min-width: 0;
  display: grid;
  gap: 0.35rem;
}
.stream-guest-link-meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  color: var(--bs-secondary-color);
  font-size: 0.78rem;
  font-weight: 600;
}
.stream-guest-link-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.stream-guest-link-actions form {
  margin: 0;
}
.stream-guest-link-url {
  width: 100%;
  min-width: 0;
  font-family: var(--bs-font-monospace);
  font-size: 0.78rem;
}
.stream-panel-heading .btn {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.stream-popout-body,
.stream-popout-body * {
  box-sizing: border-box;
}
.stream-popout-body {
  margin: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #05070a;
}
.stream-popout-root,
.stream-popout-body {
  min-width: 100%;
  min-height: 100%;
}
.stream-popout {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-columns: repeat(
    var(--stream-popout-columns, 1),
    minmax(0, 1fr)
  );
  grid-template-rows: repeat(var(--stream-popout-rows, 1), minmax(0, 1fr));
  grid-auto-rows: 0;
  gap: 0;
  overflow: hidden;
  background: #05070a;
}
.stream-popout-tile {
  position: relative;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #05070a;
}
.stream-popout-tile img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #05070a;
}
.stream-popout-video {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #05070a;
}
.stream-popout-video.is-mirrored {
  transform: scaleX(-1);
}
.phasmo-popout-root,
.phasmo-popout-body {
  width: 100%;
  min-width: 100%;
  min-height: 100%;
  margin: 0;
  background: transparent;
}
.phasmo-popout-body,
.phasmo-popout-body * {
  box-sizing: border-box;
}
.phasmo-popout-body {
  color: #f8fafc;
  position: fixed;
  inset: 0;
  padding: 0 !important;
  overflow: hidden;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}
.phasmo-popout {
  --phasmo-popout-panel: rgba(10, 15, 22, 0.92);
  --phasmo-popout-border: rgba(203, 213, 225, 0.28);
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 0.5rem;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0.5rem;
  overflow: hidden;
}
.phasmo-popout-header,
.phasmo-popout-section {
  border: 1px solid var(--phasmo-popout-border);
  border-radius: 0.4rem;
  background: var(--phasmo-popout-panel);
}
.phasmo-popout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.5rem;
  padding: 0.45rem 0.75rem;
}
.phasmo-popout-title {
  min-width: 0;
  overflow: hidden;
  font-size: 1rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.phasmo-popout-count {
  flex: 0 0 auto;
  color: #facc15;
  font-size: 0.8rem;
  font-weight: 750;
}
.phasmo-popout-section {
  min-width: 0;
  padding: 0.55rem;
}
.phasmo-popout-section h1,
.phasmo-popout-section h2 {
  margin: 0 0 0.4rem;
  color: #cbd5e1;
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1;
  text-transform: uppercase;
}
.phasmo-popout-evidence {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
}
.phasmo-popout-evidence-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  min-height: 2.35rem;
  padding: 0.28rem 0.5rem;
  border: 1px solid #64748b;
  border-radius: 0.32rem;
  background: rgba(51, 65, 85, 0.9);
}
.phasmo-popout-evidence-item i {
  flex: 0 0 auto;
  font-size: 1.2rem;
}
.phasmo-popout-evidence-item span {
  overflow: hidden;
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.phasmo-popout-evidence-item.is-confirmed {
  border-color: #4ade80;
  background: rgba(21, 128, 61, 0.94);
}
.phasmo-popout-evidence-item.is-rejected {
  border-color: #f87171;
  background: rgba(185, 28, 28, 0.94);
}
.phasmo-popout-ghost-section {
  min-height: 0;
  overflow: hidden;
}
.phasmo-popout-ghosts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  gap: 0.3rem;
}
.phasmo-popout-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 2.15rem;
  padding: 0.22rem 0.45rem;
  overflow: hidden;
  border: 1px solid #64748b;
  border-radius: 0.3rem;
  background: rgba(51, 65, 85, 0.88);
  font-size: 0.94rem;
  font-weight: 750;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.phasmo-popout-ghost.is-possible {
  border-color: #4ade80;
  background: rgba(21, 128, 61, 0.94);
}
.phasmo-popout-ghost.is-final {
  border-color: #fde047;
  background: rgba(161, 98, 7, 0.96);
  color: #fff7c2;
  box-shadow: inset 0 0 0 1px rgba(253, 224, 71, 0.35);
}
.phasmo-popout-ghost.is-rejected {
  border-color: #f87171;
  background: rgba(185, 28, 28, 0.94);
  text-decoration: line-through;
}
.phasmo-popout-ghost.is-filtered {
  opacity: 0.48;
}
.phasmo-popout-error {
  position: fixed;
  right: 0.5rem;
  bottom: 0.5rem;
  max-width: calc(100vw - 1rem);
  padding: 0.4rem 0.65rem;
  border: 1px solid #f87171;
  border-radius: 0.3rem;
  background: rgba(127, 29, 29, 0.96);
  color: #fff;
  font-size: 0.72rem;
}
@media (max-width: 720px) {
  .phasmo-popout-evidence {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.phasmo-app {
  --phasmo-accent: #2f6f73;
  --phasmo-warn: #9d3d4b;
}
.phasmo-session-panel {
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
  padding: 0.85rem;
  background: var(--bs-tertiary-bg);
}
.phasmo-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.08em;
}
.phasmo-owned-session {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
  padding: 0.65rem;
  background: var(--bs-body-bg);
}
.phasmo-owned-session.is-current {
  border-color: rgba(var(--bs-primary-rgb), 0.45);
  background: rgba(var(--bs-primary-rgb), 0.06);
}
.streamdeck-settings {
  max-width: 1120px;
  margin-inline: auto;
}
.streamdeck-link-row {
  display: grid;
  grid-template-columns: minmax(11rem, 16rem) minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
}
.streamdeck-link-label {
  min-width: 0;
  font-size: 0.875rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}
@media (max-width: 767.98px) {
  .streamdeck-link-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .streamdeck-link-label {
    grid-column: 1 / -1;
  }
}
.phasmo-evidence-button {
  width: 100%;
  min-height: 3.25rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.7rem;
  text-align: left;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    box-shadow 0.15s ease;
}
.phasmo-evidence-button:hover {
  border-color: rgba(var(--bs-primary-rgb), 0.45);
  box-shadow: 0 0.125rem 0.35rem rgba(0, 0, 0, 0.06);
}
.phasmo-evidence-button[data-mode="confirmed"] {
  border-color: rgba(var(--bs-primary-rgb), 0.55);
  background: rgba(var(--bs-primary-rgb), 0.08);
}
.phasmo-evidence-button[data-mode="rejected"] {
  border-color: rgba(var(--bs-danger-rgb), 0.5);
  background: rgba(var(--bs-danger-rgb), 0.08);
}
.phasmo-evidence-icon {
  width: 2.05rem;
  height: 2.05rem;
  border-radius: 0.45rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bs-tertiary-bg);
  color: var(--phasmo-accent);
}
.phasmo-evidence-label {
  font-weight: 700;
  min-width: 0;
}
.phasmo-evidence-state {
  font-size: 0.74rem;
  color: var(--bs-secondary-color);
  white-space: nowrap;
}
.phasmo-ghost-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr));
  gap: 0.9rem;
}
.phasmo-ghost-card {
  min-height: 9.75rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
  padding: 0.9rem;
  background: var(--bs-body-bg);
  transition:
    opacity 0.15s ease,
    filter 0.15s ease,
    border-color 0.15s ease;
}
.phasmo-ghost-card:not(.is-filtered) {
  border-color: rgba(var(--bs-success-rgb), 0.45);
  box-shadow: inset 0 0.18rem 0 rgba(var(--bs-success-rgb), 0.6);
}
.phasmo-ghost-card.is-filtered {
  opacity: 0.45;
  filter: saturate(0.65);
}
.phasmo-ghost-card.is-manually-rejected {
  opacity: 0.38;
  text-decoration: line-through;
  text-decoration-thickness: 0.08em;
}
.phasmo-ghost-card.is-manually-rejected .phasmo-ghost-toggle {
  text-decoration: none;
}
.phasmo-ghost-toggle {
  width: 1.9rem;
  height: 1.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.phasmo-evidence-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.phasmo-evidence-tags .badge {
  font-weight: 600;
}
@media (max-width: 991.98px) {
  .navbar.fixed-top .container {
    align-items: flex-start;
  }
  .navbar.fixed-top .navbar-collapse {
    background: var(--bs-body-bg);
    margin-top: 0.5rem;
    max-height: calc(100vh - 4.75rem);
    max-height: calc(100dvh - 4.75rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.75rem 0 1rem;
    -webkit-overflow-scrolling: touch;
  }
  .message-layout .section-card .card-body {
    padding: 1rem;
  }
  .message-layout .col-xl-7 .section-card {
    height: auto;
    max-height: none;
  }
  .message-layout .col-xl-7 .section-card .card-body {
    display: block;
  }
  .message-layout .message-thread {
    max-height: none;
    min-height: 0;
  }
  .stream-stage {
    grid-template-columns: 1fr;
  }
  .stream-room-app.has-room-sidebar-open .stream-stage {
    padding-left: 0;
  }
  .stream-room-app.has-chat-open .stream-stage {
    padding-right: 0;
  }
  .stream-room-toolbar {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    justify-items: center;
  }
  .stream-room-toolbar-left,
  .stream-room-toolbar-center {
    width: 100%;
  }
  .stream-room-actions {
    display: none;
  }
  .stream-room-toolbar-title {
    max-width: 100%;
  }
  .stream-toolbar-status {
    max-width: 100%;
  }
  .stream-room-toolbar-actions {
    grid-column: 1 / -1;
    width: 100%;
    max-width: calc(100vw - 0.7rem);
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    -webkit-overflow-scrolling: touch;
  }
  .stream-room-toolbar-actions .btn,
  .stream-room-toolbar-actions .stream-room-select-form {
    flex: 0 0 auto;
  }
  .stream-room-sidebar.is-open {
    right: 0.35rem;
  }
  .stream-room-sidebar-panel {
    width: min(19rem, calc(100vw - 0.7rem));
  }
  .stream-settings-grid {
    grid-template-columns: 1fr;
  }
  .stream-settings-columns {
    grid-template-columns: 1fr;
  }
  .stream-settings-pane-column + .stream-settings-pane-column {
    border-left: 0;
    border-top: 1px solid var(--bs-border-color);
    padding-left: 0;
    padding-top: 1rem;
  }
  .stream-move-protection-setting {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .stream-lobby-head {
    align-items: stretch;
    flex-direction: column;
  }
  .stream-room-entry-action {
    justify-content: stretch;
  }
  .admin-stream-room-fields,
  .admin-stream-owner-control {
    grid-template-columns: 1fr;
  }
  .stream-admin-sections {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .stream-admin-sections::before {
    content: none;
  }
  .stream-admin-room-form {
    grid-template-columns: 1fr;
  }
  .stream-file-policy-form,
  .stream-file-user-permission-form {
    grid-template-columns: 1fr;
  }
  .stream-guest-link-row {
    grid-template-columns: 1fr;
  }
  .stream-guest-link-actions {
    justify-content: flex-end;
  }
  .admin-user-edit-layout > .row.g-3 > .col-12 {
    display: block;
  }
  .admin-user-edit-layout > .row.g-3 > .col-12 > .card {
    margin-bottom: 1rem !important;
  }
}
@media (max-width: 575.98px) {
  .stream-room-toolbar {
    gap: 0.35rem;
  }
  .stream-room-toolbar .btn {
    padding-inline: 0.42rem;
  }
  .stream-room-toolbar-actions {
    gap: 0.25rem !important;
  }
  main.container {
    padding-left: var(--bs-gutter-x, 0.75rem);
    padding-right: var(--bs-gutter-x, 0.75rem);
  }
  .app-brand {
    max-width: calc(100vw - 7rem);
  }
  .app-brand-logo {
    height: 34px;
  }
  .session-device-cell {
    min-width: 14rem;
    gap: 0.7rem;
  }
  .session-device-icon {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 0.75rem;
  }
  .session-device-subtitle {
    margin-bottom: 0.45rem;
  }
  .auth-login-layout .card-body {
    padding: 0.9rem;
  }
  .session-rename-form {
    max-width: none;
  }
  .message-thread {
    max-height: none;
  }
  .message-bubble {
    max-width: 100%;
  }
  .stream-self-panel,
  .stream-room-panel {
    padding: 0.8rem;
  }
  .stream-grid {
    grid-template-columns: 1fr;
  }
  .stream-room-entry {
    align-items: stretch;
    flex-direction: column;
  }
  .stream-popout,
  .stream-popout[data-participant-count] {
    grid-template-columns: repeat(
      var(--stream-popout-columns, 1),
      minmax(0, 1fr)
    );
    grid-template-rows: repeat(var(--stream-popout-rows, 1), minmax(0, 1fr));
  }
  .phasmo-evidence-button {
    grid-template-columns: 2.1rem minmax(0, 1fr);
    align-items: start;
  }
  .phasmo-evidence-state {
    grid-column: 2;
    white-space: normal;
  }
  .phasmo-ghost-grid {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 1200px) {
  .phasmo-app {
    max-width: 1540px;
    margin-inline: auto;
  }
  .phasmo-toolbar {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--bs-border-color);
  }
  .phasmo-sidebar {
    position: sticky;
    top: 5.75rem;
    align-self: flex-start;
    max-height: calc(100vh - 6.5rem);
    overflow: auto;
    padding-right: 0.25rem;
  }
  .phasmo-sidebar .section-card {
    margin-bottom: 1rem;
  }
  .phasmo-sidebar .card-body {
    padding: 1rem;
  }
  .phasmo-sidebar .h5 {
    font-size: 1rem;
  }
  .phasmo-ghost-toolbar {
    position: sticky;
    top: 4.5rem;
    z-index: 2;
    padding: 0.85rem 1rem;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 0.75rem;
  }
  .phasmo-ghost-grid {
    grid-template-columns: repeat(auto-fill, minmax(12.75rem, 1fr));
    gap: 0.75rem;
  }
  .phasmo-ghost-card {
    min-height: 8.75rem;
    padding: 0.8rem;
  }
  .phasmo-evidence-button {
    min-height: 2.9rem;
    padding: 0.45rem 0.6rem;
    gap: 0.55rem;
  }
  .phasmo-evidence-icon {
    width: 1.85rem;
    height: 1.85rem;
  }
  .phasmo-evidence-state {
    font-size: 0.7rem;
  }
  .phasmo-owned-session {
    padding: 0.55rem;
  }
  .phasmo-session-panel {
    padding: 0.75rem;
  }
}
.phasmo-evidence-strip {
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
  background: var(--bs-tertiary-bg);
  padding: 0.9rem;
}
.phasmo-evidence-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: 0.6rem;
}
.phasmo-evidence-list {
  display: contents;
}
.phasmo-evidence-strip .phasmo-evidence-button,
.phasmo-evidence-reset {
  width: 100%;
  min-height: 4.6rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-content: center;
  gap: 0.28rem;
  padding: 0.55rem;
  text-align: center;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    box-shadow 0.15s ease;
}
.phasmo-evidence-strip .phasmo-evidence-button:hover,
.phasmo-evidence-reset:hover:not(:disabled) {
  border-color: rgba(var(--bs-primary-rgb), 0.45);
  box-shadow: 0 0.125rem 0.35rem rgba(0, 0, 0, 0.06);
}
.phasmo-evidence-strip .phasmo-evidence-icon {
  width: 2rem;
  height: 2rem;
}
.phasmo-evidence-strip .phasmo-evidence-label {
  font-size: 0.86rem;
  line-height: 1.1;
}
.phasmo-evidence-strip .phasmo-evidence-state {
  font-size: 0.68rem;
  white-space: normal;
}
.phasmo-evidence-reset:disabled {
  opacity: 0.55;
}
.phasmo-evidence-reset:not(:disabled) {
  border-color: rgba(var(--bs-secondary-rgb), 0.45);
}
@media (min-width: 1200px) {
  .phasmo-evidence-actions {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
  .phasmo-sidebar {
    top: 11.5rem;
    max-height: calc(100vh - 12.25rem);
  }
  .phasmo-ghost-toolbar {
    top: 10.25rem;
  }
}
@media (max-width: 575.98px) {
  .phasmo-evidence-strip {
    padding: 0.75rem;
  }
  .phasmo-evidence-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.phasmo-evidence-strip .phasmo-evidence-button {
  position: relative;
}
.phasmo-evidence-reject {
  position: absolute;
  top: 0.32rem;
  right: 0.32rem;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-secondary-color);
  background: var(--bs-tertiary-bg);
  border: 1px solid var(--bs-border-color);
  font-size: 0.72rem;
  line-height: 1;
}
.phasmo-evidence-reject:hover,
.phasmo-evidence-reject:focus {
  color: var(--bs-danger);
  border-color: rgba(var(--bs-danger-rgb), 0.45);
  background: rgba(var(--bs-danger-rgb), 0.08);
  outline: 0;
}
.phasmo-evidence-button[data-mode="rejected"] .phasmo-evidence-reject {
  color: #fff;
  background: var(--bs-danger);
  border-color: var(--bs-danger);
}
.phasmo-evidence-button[data-mode="rejected"] .phasmo-evidence-icon {
  color: var(--bs-danger);
}
@media (min-width: 1200px) {
  .phasmo-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }
  .phasmo-ghost-toolbar {
    position: static;
    top: auto;
  }
  .phasmo-desktop-layout {
    align-items: flex-start;
  }
}
.phasmo-session-accordion .accordion-button {
  background: var(--bs-tertiary-bg);
}
.phasmo-session-accordion .accordion-body {
  background: var(--bs-body-bg);
}
.phasmo-evidence-strip .phasmo-evidence-button[data-mode="confirmed"] {
  border-color: rgba(var(--bs-success-rgb), 0.72);
  background: rgba(var(--bs-success-rgb), 0.16);
  box-shadow: inset 0 0.18rem 0 rgba(var(--bs-success-rgb), 0.7);
}
.phasmo-evidence-strip
  .phasmo-evidence-button[data-mode="confirmed"]
  .phasmo-evidence-icon {
  color: var(--bs-success);
}
.phasmo-evidence-strip
  .phasmo-evidence-button[data-mode="confirmed"]
  .phasmo-evidence-state {
  color: var(--bs-success-text-emphasis);
}
.phasmo-evidence-strip .phasmo-evidence-button[data-mode="rejected"] {
  border-color: rgba(var(--bs-danger-rgb), 0.72);
  background: rgba(var(--bs-danger-rgb), 0.16);
  box-shadow: inset 0 0.18rem 0 rgba(var(--bs-danger-rgb), 0.7);
}
.phasmo-evidence-strip
  .phasmo-evidence-button[data-mode="rejected"]
  .phasmo-evidence-state {
  color: var(--bs-danger-text-emphasis);
}
@media (min-width: 1200px) {
  .phasmo-app {
    max-width: 1680px;
  }
  .phasmo-ghost-grid {
    grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
    gap: 0.85rem;
  }
  .phasmo-ghost-card {
    min-height: 8.5rem;
  }
  .phasmo-desktop-layout {
    width: 100%;
  }
}
@media (min-width: 1600px) {
  .phasmo-ghost-grid {
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  }
}
.phasmo-ghost-card:not(.is-filtered) {
  border-color: rgba(var(--bs-success-rgb), 0.72);
  background: rgba(var(--bs-success-rgb), 0.12);
  box-shadow: inset 0 0.18rem 0 rgba(var(--bs-success-rgb), 0.72);
}
.phasmo-ghost-card.is-filtered {
  opacity: 0.72;
  background: var(--bs-body-bg);
  filter: saturate(0.8);
}
.phasmo-ghost-card.is-manually-rejected {
  opacity: 1;
  border-color: rgba(var(--bs-danger-rgb), 0.72);
  background: rgba(var(--bs-danger-rgb), 0.12);
  box-shadow: inset 0 0.18rem 0 rgba(var(--bs-danger-rgb), 0.72);
  filter: none;
}
.phasmo-ghost-card.is-manually-rejected .phasmo-evidence-tags,
.phasmo-ghost-card.is-manually-rejected p {
  text-decoration: line-through;
  text-decoration-thickness: 0.08em;
}
.phasmo-ghost-card.is-manually-rejected .phasmo-ghost-toggle {
  text-decoration: none;
}
.phasmo-ghost-info {
  width: 1.9rem;
  height: 1.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex: 0 0 auto;
}
.phasmo-session-header {
  position: relative;
  display: flex;
  align-items: stretch;
}
.phasmo-session-toggle {
  flex: 1;
  min-width: 0;
  padding-right: 9.4rem;
}
.phasmo-session-toggle::after {
  margin-left: 0.75rem;
}
.phasmo-session-header-actions {
  position: absolute;
  right: 3.25rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 0.35rem;
  z-index: 3;
}
.phasmo-session-header-actions .btn {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
@media (max-width: 575.98px) {
  .phasmo-session-toggle {
    padding-right: 8.25rem;
  }
  .phasmo-session-header-actions {
    right: 2.85rem;
  }
  .phasmo-session-header-actions .btn {
    width: 1.8rem;
    height: 1.8rem;
  }
}
[data-ghost-info-modal] .modal-dialog-scrollable [data-ghost-info-form] {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 100%;
}
[data-ghost-info-modal] .modal-dialog-scrollable .modal-content {
  max-height: calc(100vh - 3.5rem);
}
[data-ghost-info-modal] .modal-body {
  overflow: auto;
  min-height: 0;
}
.phasmo-session-panel [data-session-name-label-main] {
  line-height: 1.2;
}
.phasmo-owned-session .phasmo-code {
  font-size: 0.9rem;
}
.phasmo-session-panel .input-group-sm .btn {
  min-width: 2.4rem;
}
body.has-site-wallpaper {
  position: relative;
  isolation: isolate;
}
#phasmoApp:fullscreen {
  background: var(--bs-body-bg);
}
body.has-site-wallpaper #phasmoApp:fullscreen {
  position: relative;
  isolation: isolate;
  background: transparent;
}
body.has-site-wallpaper #phasmoApp:fullscreen::before,
body.has-site-wallpaper #phasmoApp:fullscreen::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}
body.has-site-wallpaper #phasmoApp:fullscreen::before {
  z-index: -2;
  background-image: var(--site-wallpaper-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: var(--site-wallpaper-opacity, 0.5);
  filter: blur(var(--site-wallpaper-blur, 1px)) saturate(0.92);
  transform: scale(1.04);
}
body.has-site-wallpaper #phasmoApp:fullscreen::after {
  z-index: -1;
  opacity: var(--site-wallpaper-overlay-opacity, 0.66);
  background: linear-gradient(
    180deg,
    rgba(248, 250, 252, 0.72),
    rgba(248, 250, 252, 0.6)
  );
}
body.has-site-wallpaper::before,
body.has-site-wallpaper::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}
body.has-site-wallpaper::before {
  z-index: -2;
  background-image: var(--site-wallpaper-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: var(--site-wallpaper-opacity, 0.5);
  filter: blur(var(--site-wallpaper-blur, 1px)) saturate(0.92);
  transform: scale(1.04);
}
body.has-site-wallpaper::after {
  z-index: -1;
  opacity: var(--site-wallpaper-overlay-opacity, 0.66);
  background: linear-gradient(
    180deg,
    rgba(248, 250, 252, 0.72),
    rgba(248, 250, 252, 0.6)
  );
}
body.has-site-wallpaper .card {
  background: rgba(255, 255, 255, var(--site-wallpaper-card-opacity, 0.3));
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow:
    0 1.1rem 2.3rem rgba(15, 23, 42, 0.1),
    0 0.1rem 0.35rem rgba(15, 23, 42, 0.05);
  isolation: isolate;
}
body.has-site-wallpaper .card-header,
body.has-site-wallpaper .card-footer {
  background: rgba(
    255,
    255,
    255,
    calc(var(--site-wallpaper-card-opacity, 0.3) * 0.48)
  );
  border-color: rgba(15, 23, 42, 0.08);
}
body.has-site-wallpaper .list-group-item,
body.has-site-wallpaper .accordion-item,
body.has-site-wallpaper .bg-body-tertiary,
body.has-site-wallpaper .table-responsive {
  background: rgba(
    255,
    255,
    255,
    calc(0.16 + (var(--site-wallpaper-card-opacity, 0.3) * 0.84))
  );
}
body.has-site-wallpaper .phasmo-session-panel,
body.has-site-wallpaper .phasmo-evidence-strip,
body.has-site-wallpaper .phasmo-evidence-button,
body.has-site-wallpaper .phasmo-evidence-reset,
body.has-site-wallpaper .phasmo-session-accordion .accordion-button,
body.has-site-wallpaper .phasmo-session-accordion .accordion-body,
body.has-site-wallpaper .phasmo-ghost-card,
body.has-site-wallpaper .phasmo-owned-session {
  background: rgba(255, 255, 255, var(--site-wallpaper-card-opacity, 0.3));
  isolation: isolate;
}
body.has-site-wallpaper
  .phasmo-session-accordion
  .accordion-button:not(.collapsed) {
  background: rgba(
    255,
    255,
    255,
    calc(var(--site-wallpaper-card-opacity, 0.3) * 0.92)
  );
}
body.has-site-wallpaper .phasmo-ghost-toolbar {
  background: rgba(255, 255, 255, var(--site-wallpaper-card-opacity, 0.3));
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow:
    0 1.1rem 2.3rem rgba(15, 23, 42, 0.1),
    0 0.1rem 0.35rem rgba(15, 23, 42, 0.05);
  isolation: isolate;
}
body.has-site-wallpaper .phasmo-ghost-card.is-filtered {
  background: rgba(
    255,
    255,
    255,
    calc(0.18 + (var(--site-wallpaper-card-opacity, 0.3) * 0.82))
  );
}
body.has-site-wallpaper
  .phasmo-evidence-strip
  .phasmo-evidence-button[data-mode="confirmed"] {
  border-color: rgba(var(--bs-success-rgb), 0.82);
  background:
    linear-gradient(
      180deg,
      rgba(var(--bs-success-rgb), 0.26),
      rgba(var(--bs-success-rgb), 0.18)
    ),
    rgba(255, 255, 255, var(--site-wallpaper-card-opacity, 0.3));
  box-shadow:
    inset 0 0.18rem 0 rgba(var(--bs-success-rgb), 0.82),
    0 0 0 1px rgba(var(--bs-success-rgb), 0.12);
}
body.has-site-wallpaper
  .phasmo-evidence-strip
  .phasmo-evidence-button[data-mode="rejected"] {
  border-color: rgba(var(--bs-danger-rgb), 0.82);
  background:
    linear-gradient(
      180deg,
      rgba(var(--bs-danger-rgb), 0.26),
      rgba(var(--bs-danger-rgb), 0.18)
    ),
    rgba(255, 255, 255, var(--site-wallpaper-card-opacity, 0.3));
  box-shadow:
    inset 0 0.18rem 0 rgba(var(--bs-danger-rgb), 0.82),
    0 0 0 1px rgba(var(--bs-danger-rgb), 0.12);
}
body.has-site-wallpaper .phasmo-ghost-card:not(.is-filtered) {
  border-color: rgba(var(--bs-success-rgb), 0.82);
  background:
    linear-gradient(
      180deg,
      rgba(var(--bs-success-rgb), 0.2),
      rgba(var(--bs-success-rgb), 0.14)
    ),
    rgba(255, 255, 255, var(--site-wallpaper-card-opacity, 0.3));
  box-shadow:
    inset 0 0.18rem 0 rgba(var(--bs-success-rgb), 0.82),
    0 0 0 1px rgba(var(--bs-success-rgb), 0.08);
}
body.has-site-wallpaper .phasmo-ghost-card.is-manually-rejected {
  border-color: rgba(var(--bs-danger-rgb), 0.82);
  background:
    linear-gradient(
      180deg,
      rgba(var(--bs-danger-rgb), 0.2),
      rgba(var(--bs-danger-rgb), 0.14)
    ),
    rgba(255, 255, 255, var(--site-wallpaper-card-opacity, 0.3));
  box-shadow:
    inset 0 0.18rem 0 rgba(var(--bs-danger-rgb), 0.82),
    0 0 0 1px rgba(var(--bs-danger-rgb), 0.08);
}
html[data-bs-theme="dark"] body.has-site-wallpaper::after {
  background: linear-gradient(
    180deg,
    rgba(2, 6, 23, 0.74),
    rgba(2, 6, 23, 0.68)
  );
}
html[data-bs-theme="dark"]
  body.has-site-wallpaper
  #phasmoApp:fullscreen::after {
  background: linear-gradient(
    180deg,
    rgba(2, 6, 23, 0.74),
    rgba(2, 6, 23, 0.68)
  );
}
html[data-bs-theme="dark"] body.has-site-wallpaper .card {
  background: rgba(15, 23, 42, var(--site-wallpaper-card-opacity, 0.3));
  border-color: rgba(148, 163, 184, 0.16);
  box-shadow:
    0 1.15rem 2.4rem rgba(2, 6, 23, 0.36),
    0 0.12rem 0.36rem rgba(2, 6, 23, 0.26);
}
html[data-bs-theme="dark"] body.has-site-wallpaper .card-header,
html[data-bs-theme="dark"] body.has-site-wallpaper .card-footer {
  background: rgba(
    15,
    23,
    42,
    calc(var(--site-wallpaper-card-opacity, 0.3) * 0.48)
  );
  border-color: rgba(148, 163, 184, 0.16);
}
html[data-bs-theme="dark"] body.has-site-wallpaper .list-group-item,
html[data-bs-theme="dark"] body.has-site-wallpaper .accordion-item,
html[data-bs-theme="dark"] body.has-site-wallpaper .bg-body-tertiary,
html[data-bs-theme="dark"] body.has-site-wallpaper .table-responsive {
  background: rgba(
    15,
    23,
    42,
    calc(0.16 + (var(--site-wallpaper-card-opacity, 0.3) * 0.84))
  );
}
html[data-bs-theme="dark"] body.has-site-wallpaper .phasmo-session-panel,
html[data-bs-theme="dark"] body.has-site-wallpaper .phasmo-evidence-strip,
html[data-bs-theme="dark"] body.has-site-wallpaper .phasmo-evidence-button,
html[data-bs-theme="dark"] body.has-site-wallpaper .phasmo-evidence-reset,
html[data-bs-theme="dark"]
  body.has-site-wallpaper
  .phasmo-session-accordion
  .accordion-button,
html[data-bs-theme="dark"]
  body.has-site-wallpaper
  .phasmo-session-accordion
  .accordion-body,
html[data-bs-theme="dark"] body.has-site-wallpaper .phasmo-ghost-card,
html[data-bs-theme="dark"] body.has-site-wallpaper .phasmo-owned-session {
  background: rgba(15, 23, 42, var(--site-wallpaper-card-opacity, 0.3));
  isolation: isolate;
}
html[data-bs-theme="dark"]
  body.has-site-wallpaper
  .phasmo-session-accordion
  .accordion-button:not(.collapsed) {
  background: rgba(
    15,
    23,
    42,
    calc(var(--site-wallpaper-card-opacity, 0.3) * 0.92)
  );
}
html[data-bs-theme="dark"] body.has-site-wallpaper .phasmo-ghost-toolbar {
  background: rgba(15, 23, 42, var(--site-wallpaper-card-opacity, 0.3));
  border-color: rgba(148, 163, 184, 0.16);
  box-shadow:
    0 1.15rem 2.4rem rgba(2, 6, 23, 0.36),
    0 0.12rem 0.36rem rgba(2, 6, 23, 0.26);
}
html[data-bs-theme="dark"]
  body.has-site-wallpaper
  .phasmo-ghost-card.is-filtered {
  background: rgba(
    15,
    23,
    42,
    calc(0.18 + (var(--site-wallpaper-card-opacity, 0.3) * 0.82))
  );
}
html[data-bs-theme="dark"]
  body.has-site-wallpaper
  .phasmo-evidence-strip
  .phasmo-evidence-button[data-mode="confirmed"] {
  border-color: rgba(var(--bs-success-rgb), 0.84);
  background:
    linear-gradient(
      180deg,
      rgba(var(--bs-success-rgb), 0.22),
      rgba(var(--bs-success-rgb), 0.15)
    ),
    rgba(15, 23, 42, var(--site-wallpaper-card-opacity, 0.3));
  box-shadow:
    inset 0 0.18rem 0 rgba(var(--bs-success-rgb), 0.84),
    0 0 0 1px rgba(var(--bs-success-rgb), 0.14);
}
html[data-bs-theme="dark"]
  body.has-site-wallpaper
  .phasmo-evidence-strip
  .phasmo-evidence-button[data-mode="rejected"] {
  border-color: rgba(var(--bs-danger-rgb), 0.84);
  background:
    linear-gradient(
      180deg,
      rgba(var(--bs-danger-rgb), 0.22),
      rgba(var(--bs-danger-rgb), 0.15)
    ),
    rgba(15, 23, 42, var(--site-wallpaper-card-opacity, 0.3));
  box-shadow:
    inset 0 0.18rem 0 rgba(var(--bs-danger-rgb), 0.84),
    0 0 0 1px rgba(var(--bs-danger-rgb), 0.14);
}
html[data-bs-theme="dark"]
  body.has-site-wallpaper
  .phasmo-ghost-card:not(.is-filtered) {
  border-color: rgba(var(--bs-success-rgb), 0.84);
  background:
    linear-gradient(
      180deg,
      rgba(var(--bs-success-rgb), 0.18),
      rgba(var(--bs-success-rgb), 0.12)
    ),
    rgba(15, 23, 42, var(--site-wallpaper-card-opacity, 0.3));
  box-shadow:
    inset 0 0.18rem 0 rgba(var(--bs-success-rgb), 0.84),
    0 0 0 1px rgba(var(--bs-success-rgb), 0.1);
}
html[data-bs-theme="dark"]
  body.has-site-wallpaper
  .phasmo-ghost-card.is-manually-rejected {
  border-color: rgba(var(--bs-danger-rgb), 0.84);
  background:
    linear-gradient(
      180deg,
      rgba(var(--bs-danger-rgb), 0.18),
      rgba(var(--bs-danger-rgb), 0.12)
    ),
    rgba(15, 23, 42, var(--site-wallpaper-card-opacity, 0.3));
  box-shadow:
    inset 0 0.18rem 0 rgba(var(--bs-danger-rgb), 0.84),
    0 0 0 1px rgba(var(--bs-danger-rgb), 0.1);
}

.stream-room-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    max-width: 100%;
}

.stream-room-info .stream-room-toolbar-title {
    text-align: center;
}

.stream-room-info .stream-toolbar-status {
    font-size: 0.75rem;
    line-height: 1.2;
    text-align: center;
}
/* =========================================================
   Stream – Static Bottom Bar
   ========================================================= */

.stream-top-bar {
    position: static;

    display: flex;
    flex-direction: column;
    align-items: center;

    pointer-events: none;
}

.stream-top-bar-handle {
    width: 42px;
    height: 4px;
    margin-bottom: 0.45rem;

    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);

    box-shadow:
        0 0 10px rgba(0, 0, 0, 0.35);
    pointer-events: auto;
}

.stream-top-bar-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: stretch;

    padding: 0.35rem;

    border: 1px solid var(--bs-border-color);
    border-radius: 1.1rem;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    pointer-events: auto;
}

.stream-top-bar-more {
    display: flex;
    align-items: stretch;
}

.stream-top-bar-more .dropdown-menu {
    z-index: 1045;
}

.stream-top-bar-button {
    position: relative;

    min-width: 78px;
    min-height: 52px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;

    padding: 0.35rem 0.65rem;

    border: 0;
    border-radius: 0.75rem;

    font-size: 0.72rem;
    line-height: 1.1;
    text-decoration: none;

    transition:
        color 0.18s ease,
        transform 0.18s ease;
}

.stream-top-bar-button {
    border-left: 1px solid var(--bs-border-color);
    border-radius: 0;
}

.stream-top-bar-button:first-child {
    border-radius: 0.75rem 0 0 0.75rem;
    border-left: none;
}

.stream-top-bar-button:last-child {
    border-radius: 0 0.75rem 0.75rem 0;
}

.stream-top-bar-more:last-child .stream-top-bar-button {
    border-radius: 0 0.75rem 0.75rem 0;
}

.stream-top-bar-button i {
    font-size: 1.2rem;
    line-height: 1;
}

.stream-top-bar-button:hover {
    text-decoration: none;
}

.stream-top-bar-button:hover i {
    transform: scale(1.08);
}

.stream-top-bar-button:active {
    transform: scale(0.96);
}

.stream-top-bar-leave {
    color: #ff6b6b;
}

.stream-top-bar-leave:hover {
    color: #ff8a8a;
}

@media (max-width: 1199.98px) and (min-width: 768px) {
    .stream-room-toolbar {
        grid-template-columns: minmax(8rem, 1fr) minmax(0, auto) minmax(7rem, 1fr);
    }
    .stream-top-bar-inner {
        max-width: min(100%, calc(100vw - 1rem));
        padding: 0.25rem;
    }
    .stream-top-bar-button {
        min-width: clamp(3.05rem, 5.5vw, 4.5rem);
        min-height: 3.05rem;
        padding: 0.3rem 0.35rem;
        font-size: 0.68rem;
    }
    .stream-top-bar-button > span {
        display: none;
    }
    .stream-top-bar-button i {
        font-size: 1.12rem;
    }
}
/* =========================================================
   Stream-Steuerung – Mobile Leiste
   ========================================================= */

.stream-mobile-toggle {
    display: none;
    pointer-events: auto;
}

@media (max-width: 767.98px) {

    .stream-top-bar {
        width: 100%;
        max-width: 100%;
        align-items: center;
    }

    .stream-mobile-toggle {
        display: none;
    }
    /* -----------------------------------------------------
       Kompakte Icon-Leiste
       ----------------------------------------------------- */
    .stream-top-bar-inner {
        max-width: 100%;
        width: 100%;
        display: flex !important;
        flex-direction: row;
        align-items: stretch;
        justify-content: center;
        padding: 0.2rem;

        border: 1px solid var(--bs-border-color);
        border-radius: 0.85rem;

        background: var(--bs-body-bg);
        overflow: visible;
    }
    /* -----------------------------------------------------
       Icon-Buttons
       ----------------------------------------------------- */
    .stream-top-bar-button {
        flex: 1 1 0;
        min-width: 0;
        min-height: 2.45rem;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        gap: 0;

        padding: 0.3rem 0.2rem;

        border: 0;
        border-left: 1px solid var(--bs-border-color);
        border-radius: 0;

        font-size: 0.85rem;
        text-align: center;
    }
    .stream-top-bar-button:first-child {
        border-left: none;
        border-radius: 0.65rem 0 0 0.65rem;
    }
    .stream-top-bar-button:last-child {
        border-radius: 0 0.65rem 0.65rem 0;
    }
    .stream-top-bar-more:last-child .stream-top-bar-button {
        border-radius: 0 0.65rem 0.65rem 0;
    }
    .stream-top-bar-button > span {
        display: none;
    }
    /* -----------------------------------------------------
       Symbole
       ----------------------------------------------------- */
    .stream-top-bar-button i {
        width: auto;
        flex: 0 0 auto;

        font-size: 1.1rem;
        text-align: center;
    }
    .stream-top-bar-button[data-action="toggle-aux-audio"],
    .stream-top-bar-button[data-action="toggle-screen-share"] {
        display: none;
    }
    /* -----------------------------------------------------
       Keine Desktop-Trennlinien auf Mobile
       ----------------------------------------------------- */
    .stream-top-bar-button + .stream-top-bar-button {
        border-left: 1px solid var(--bs-border-color);
    }
    .stream-top-bar-more {
        margin-left: auto;
    }
    .stream-top-bar-more .stream-top-bar-button {
        height: 100%;
    }
}
.stream-debug-panel {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1060;
  max-width: min(34rem, calc(100vw - 2rem));
  padding: .35rem .55rem;
  border: 1px solid rgba(58, 139, 238, .35);
  border-radius: .45rem;
  background: rgba(15, 23, 42, .86);
  color: #dbeafe;
  font-size: .72rem;
  line-height: 1.25;
  box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .22);
  pointer-events: none;
}

.stream-debug-panel[hidden] {
  display: none !important;
}

