/* Voice Lounge: header switch, drawer, and the persistent shell bar. */
.voice-lounge-toggle,
.voice-lounge-bar-btn,
.voice-lounge-action,
.voice-lounge-member-btn {
  font: inherit;
  min-height: 48px;
  min-width: 48px;
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  border: 2px solid transparent;
  background: #d9d9d9;
  color: #2b2b2b;
  cursor: pointer;
  line-height: 1.2;
  max-width: 100%;
  box-sizing: border-box;
}
.voice-lounge-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex: 0 1 auto;
  min-width: 0;
  padding-left: 0.6rem;
  padding-right: 0.6rem;
}
.voice-lounge-drawer[hidden],
.voice-lounge-modal[hidden],
.voice-lounge-signin[hidden],
.voice-lounge-alert[hidden] {
  display: none !important;
}
.voice-lounge-toggle[disabled],
.voice-lounge-action[disabled],
.voice-lounge-member-btn[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}
.voice-lounge-toggle.is-on,
.voice-lounge-bar-btn.is-on,
.voice-lounge-action.is-on {
  background: #c9a227;
  color: #2b2b2b;
}
.voice-lounge-toggle.pulse {
  animation: voice-lounge-pulse 0.6s ease;
}
@keyframes voice-lounge-pulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
.voice-lounge-mic {
  width: 1.1rem;
  height: 1.1rem;
  display: inline-block;
}
.voice-lounge-signin,
.voice-lounge-alert {
  margin: 0.5rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: #fff8e8;
  color: #2b2b2b;
  border: 2px solid #c9a227;
  max-width: 36rem;
}
.voice-lounge-drawer,
.voice-lounge-modal,
.voice-lounge-signin {
  position: fixed;
  z-index: 80;
  left: 0.5rem;
  right: 0.5rem;
  top: 4.5rem;
  width: auto;
  max-width: 32rem;
  margin: 0 auto;
  max-height: calc(100% - 5.5rem);
  overflow: auto;
  box-sizing: border-box;
  background: #fffdf8;
  color: #2b2b2b;
  border: 2px solid #2e5e4e;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.voice-lounge-drawer h2,
.voice-lounge-modal h2,
.voice-lounge-invite h3 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}
.voice-lounge-drawer p,
.voice-lounge-modal p,
.voice-lounge-invite p {
  margin: 0 0 0.75rem;
}
.voice-lounge-people,
.voice-lounge-results {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.voice-lounge-person,
.voice-lounge-result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem;
  border: 2px solid #e4dcc8;
  border-radius: 10px;
  background: #fff;
  min-width: 0;
}
.voice-lounge-person.is-speaking {
  border-color: #c9a227;
  box-shadow: inset 0 0 0 2px #c9a227;
}
.voice-lounge-name {
  font-weight: bold;
  flex: 1 1 8rem;
  min-width: 0;
  overflow-wrap: anywhere;
}
.voice-lounge-actions,
.voice-lounge-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}
.voice-lounge-volume {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 48px;
  flex: 1 1 8rem;
}
.voice-lounge-volume input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 48px;
}
.voice-lounge-search {
  width: 100%;
  min-height: 48px;
  font: inherit;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  border: 2px solid #2e5e4e;
  box-sizing: border-box;
  margin-bottom: 0.75rem;
}
.voice-lounge-report {
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.voice-lounge-report select,
.voice-lounge-report textarea {
  font: inherit;
  min-height: 48px;
  width: 100%;
  box-sizing: border-box;
  padding: 0.4rem 0.6rem;
}
.voice-lounge-audio {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
html.cas-voice-shell,
html.cas-voice-shell body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}
html.cas-voice-shell body > :not(#cas-voice-shell) {
  display: none !important;
}
#cas-voice-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  min-width: 0;
  background: #f5f0e6;
}
.voice-lounge-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.6rem;
  background: #2e5e4e;
  color: #fff;
  max-width: 100%;
  box-sizing: border-box;
}
.voice-lounge-bar .voice-lounge-count {
  flex: 1 1 auto;
  min-width: 0;
}
#cas-voice-frame {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  border: 0;
  background: #fff;
}
.back40-site-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.25rem 0.5rem;
  background: #10261c;
  color: #fff8e7;
  box-sizing: border-box;
  max-width: 100%;
}
.back40-site-home {
  color: #fff8e7;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.4rem;
}
html.cas-voice-frame-page .back40-site-bar {
  position: static;
}
body.high-contrast .voice-lounge-toggle,
body.high-contrast .voice-lounge-bar-btn,
body.high-contrast .voice-lounge-action,
body.high-contrast .voice-lounge-member-btn {
  background: #fff;
  color: #000;
  border: 3px solid #000;
}
body.high-contrast .voice-lounge-toggle.is-on,
body.high-contrast .voice-lounge-action.is-on {
  background: #000;
  color: #fff;
}
body.high-contrast .voice-lounge-drawer,
body.high-contrast .voice-lounge-modal,
body.high-contrast .voice-lounge-person,
body.high-contrast .voice-lounge-signin,
body.high-contrast .voice-lounge-alert {
  background: #fff;
  color: #000;
  border: 3px solid #000;
}
body.high-contrast .voice-lounge-bar {
  background: #000;
  color: #fff;
  border-bottom: 3px solid #fff;
}
body.high-contrast .voice-lounge-person.is-speaking {
  border-color: #000;
  box-shadow: inset 0 0 0 3px #000;
}
@media (min-width: 1024px) {
  .site-header .account-nav {
    flex-wrap: wrap;
    row-gap: 0.35rem;
  }
  .site-header .account-nav .voice-lounge-toggle {
    flex: 1 1 100%;
    max-width: 100%;
  }
}
@media (max-width: 640px) {
  .voice-lounge-drawer,
  .voice-lounge-modal {
    top: 0.5rem;
    max-height: calc(100% - 1rem);
  }
  .voice-lounge-toggle {
    white-space: normal;
    text-align: center;
  }
}
