#onstage-chat-widget {
  --osc-surface: #17191d;
  --osc-ink: #f3f3f2;
  --osc-muted: #c5c7cc;
  --osc-metal: #ebcd89;
  --osc-rule: #565552;
  --osc-edge: clamp(0.875rem, 2.4vw, 2rem);
  position: fixed;
  z-index: 48;
  inset-inline-end: max(var(--osc-edge), env(safe-area-inset-left), env(safe-area-inset-right));
  inset-block-end: max(var(--osc-edge), env(safe-area-inset-bottom));
  font: 400 1rem/1.5 Inter, Arial, sans-serif;
  color: var(--osc-ink);
  color-scheme: dark;
  text-align: start;
}
#onstage-chat-widget *, #onstage-chat-widget *::before, #onstage-chat-widget *::after {box-sizing: border-box}
#onstage-chat-widget [hidden], body.menu-open #onstage-chat-widget {display: none !important}
#onstage-chat-widget :is(button, input) {
  font: inherit;
  letter-spacing: normal;
  margin: 0;
}
#onstage-chat-widget button {
  cursor: pointer;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  text-transform: none;
}
#onstage-chat-widget :is(button,a,input):focus-visible {outline: 2px solid #ffdc88; outline-offset: 2px}
#onstage-chat-widget svg {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex: none;
}
#onstage-chat-widget .osc-launch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.58rem;
  min-height: 3rem;
  padding: 0.55rem 1.05rem;
  background: linear-gradient(125deg, #252729, #111315 70%);
  border: 1px solid #a8966b;
  border-radius: 2rem;
  box-shadow: 0 4px 20px #0005;
  font-weight: 600;
  font-size: 0.9rem;
  color: #fbf2da;
}
#onstage-chat-widget .osc-launch svg {color: var(--osc-metal)}
#onstage-chat-widget .osc-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: min(24rem, calc(100vw - var(--osc-edge) * 2 - env(safe-area-inset-left) - env(safe-area-inset-right)));
  max-height: min(36rem, calc(100vh - var(--osc-edge) * 2));
  max-height: min(36rem, calc(100dvh - var(--osc-edge) * 2 - env(safe-area-inset-bottom)));
  background: var(--osc-surface);
  color: var(--osc-ink);
  border: 1px solid #877d65;
  border-radius: 1.05rem;
  box-shadow: 0 15px 60px #0007;
  isolation: isolate;
}
#onstage-chat-widget .osc-head {
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.42rem;
  padding: 0.85rem 0.65rem 0.85rem 1rem;
  padding-inline: 1rem 0.65rem;
  background: linear-gradient(115deg, #25272b, #131416 72%);
  color: var(--osc-ink);
  border-bottom: 1px solid var(--osc-rule);
}
#onstage-chat-widget .osc-brand {display: block; width: 2.1rem; height: 2rem; object-fit: contain; flex: none}
#onstage-chat-widget .osc-heading {margin-inline-end: auto}
#onstage-chat-widget .osc-heading h2 {
  color: var(--osc-ink);
  font: 650 1.06rem/1.25 Manrope, Arial, sans-serif;
  letter-spacing: -0.02em;
  margin: 0;
}
#onstage-chat-widget .osc-heading h2:focus {outline:none}
#onstage-chat-widget .osc-subtitle {font-size: 0.79rem; color: var(--osc-muted); margin: 0.1rem 0 0; line-height: 1.35}
#onstage-chat-widget .osc-lang, #onstage-chat-widget .osc-close {
  display: grid;
  place-items: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border-radius: 0.45rem;
}
#onstage-chat-widget .osc-lang {padding-inline: 0.35rem; font-size: 0.875rem; font-weight: 600; color: var(--osc-metal)}
#onstage-chat-widget .osc-close svg {width: 1.1rem; height: 1.1rem}
#onstage-chat-widget .osc-body {padding: 1rem; overflow: auto; min-height: 0; overscroll-behavior: contain; scrollbar-width: thin}
#onstage-chat-widget .osc-welcome {font: inherit; color: var(--osc-ink); margin: 0; max-width: 30ch}
#onstage-chat-widget .osc-choices {display: flex; flex-wrap: wrap; gap: 0.45rem; margin-block-start: 0.9rem}
#onstage-chat-widget .osc-choices button {
  padding: 0.48rem 0.8rem;
  min-height: 2.75rem;
  background: #202225;
  border: 1px solid #696251;
  color: #f1deb2;
  border-radius: 0.7rem;
  font-size: 0.875rem;
  font-weight: 550;
  text-align: start;
  line-height: 1.4;
}
#onstage-chat-widget .osc-log {display: flex; flex-direction: column; gap: 0.7rem}
#onstage-chat-widget .osc-log:not(:empty) {margin-block-start: 1.15rem}
#onstage-chat-widget .osc-message {
  max-width: 96%;
  border: 1px solid #45484f;
  background: #24262b;
  padding: 0.65rem 0.9rem;
  border-radius: 0.85rem;
  align-self: flex-start;
  overflow-wrap: anywhere;
}
#onstage-chat-widget .osc-visitor {background: #3c3528; border-color: #635741; align-self: flex-end}
#onstage-chat-widget .osc-author {display: block; font-size: 0.77rem; font-weight: 650; line-height: 1.5; color: var(--osc-metal); margin-bottom: 0.15rem}
#onstage-chat-widget .osc-message p {margin: 0; color: var(--osc-ink); font: inherit; line-height: 1.5; white-space: pre-line}
#onstage-chat-widget .osc-message a {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding-block: 0.35rem;
  color: #f1d28a;
  font-weight: 550;
  font-size: 0.93rem;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
#onstage-chat-widget .osc-form {
  display: flex;
  align-items: center;
  flex: none;
  gap: 0.55rem;
  margin: 0;
  padding: 0.7rem;
  background: #111315;
  border-top: 1px solid var(--osc-rule);
}
#onstage-chat-widget .osc-field {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid #585a60;
  border-radius: 0.55rem;
  background: #202226;
  color: var(--osc-ink);
  font-size: 1rem;
}
#onstage-chat-widget .osc-field::placeholder {color: #c3c6c9}
#onstage-chat-widget .osc-send {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--osc-metal);
  color: #191811;
  border-radius: 50%;
}
#onstage-chat-widget .osc-send:disabled {background: #393a3e; color: #a5a7ac; cursor: default; opacity: 1}
@media (hover: hover) {
  #onstage-chat-widget .osc-launch:hover, #onstage-chat-widget .osc-choices button:hover {border-color: var(--osc-metal); background: #2f2e29}
  #onstage-chat-widget .osc-close:hover, #onstage-chat-widget .osc-lang:hover {background: #303033}
  #onstage-chat-widget .osc-message a:hover {color: #fff}
  #onstage-chat-widget .osc-send:not(:disabled):hover {background: #f7df9e}
}
@media (max-width: 430px) {
  #onstage-chat-widget {--osc-edge: 0.7rem}
  #onstage-chat-widget .osc-panel {width: calc(100vw - var(--osc-edge) * 2 - env(safe-area-inset-left) - env(safe-area-inset-right))}
}
@media (max-height: 430px) {
  #onstage-chat-widget .osc-head, #onstage-chat-widget .osc-form {padding-block: 0.35rem}
}
@media (prefers-reduced-motion: no-preference) {
  html:not(.motion-paused) #onstage-chat-widget .osc-panel:not([hidden]) {animation: osc-panel-in 160ms ease-out}
  @keyframes osc-panel-in {from {opacity: 0; transform: translateY(5px)} to {opacity: 1; transform: translateY(0)}}
}
