:root {
  color-scheme: dark;
  font: 16px system-ui;
  color: #eee9e8;
  background: #152332;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
main {
  width: min(92%, 660px);
  margin: 7vh auto;
}
small {
  letter-spacing: 0.25em;
  color: #e0bbb0;
}
h1 {
  font-size: 2.4rem;
}
section,
article {
  background: #203146;
  border-radius: 16px;
  padding: 18px;
}
label {
  display: block;
  margin: 12px 0;
}
input:not([type="checkbox"]),
button {
  font: inherit;
  display: block;
  border: 1px solid #647181;
  border-radius: 9px;
  padding: 10px 12px;
  background: #152332;
  color: inherit;
  max-width: 100%;
}
button {
  background: #d9ada5;
  color: #1c2330;
  cursor: pointer;
}
button:disabled {
  opacity: 0.6;
}
img {
  vertical-align: middle;
  max-height: 55px;
}
a {
  color: #f4cab9;
}
article {
  margin: 12px 0;
  background: #18293a;
}
#canvas_video {
  display: block;
  width: 100%;
  max-height: 62dvh;
  object-fit: contain;
}
#canvas_gl,
#canvasEl,
#background_video,
#screen,
#screen2,
#public-renderer-status {
  display: none !important;
}
p {
  line-height: 1.5;
}

[hidden] {
  display: none !important;
}
#agents-panel {
  margin: 1rem 0;
}
#agent-choice {
  width: 100%;
  padding: 0.7rem;
  font: inherit;
  border-radius: 8px;
  background: #152332;
  color: inherit;
}
#agent-refresh {
  margin: 0.7rem 0;
}
#agent-create summary {
  cursor: pointer;
  color: #f4cab9;
}

body {
  background: #172131
    var(
      --companion-background,
      url("/platform-assets/companion/assets/rain-night-v1.png")
    )
    center/cover fixed;
}
main {
  background: #14202cea;
  border: 1px solid #ffffff24;
  border-radius: 22px;
  padding: 20px;
  box-sizing: border-box;
}
.stage-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.stage-nav a,
.action-link,
#phone {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 7px 12px;
  text-decoration: none;
  border-radius: 15px;
  background: #ffffff12;
}
#phone,
.action-link {
  background: #daada3;
  color: #202532;
}
.library-page input {
  width: 100%;
  margin-top: 7px;
}
.library-page h2 {
  margin: 30px 0 8px;
  font-size: 1.1rem;
}
@media (max-width: 760px) {
  main {
    width: calc(100% - 24px);
    padding: 16px;
    margin: 12px auto;
  }
  h1 {
    font-size: 1.75rem;
  }
  #canvas_video {
    max-height: 48dvh;
    border-radius: 14px;
  }
}
.native-stage,
.native-stage body,
.native-stage main {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  border: 0;
  overflow: hidden;
  background-color: #12202c;
}
.native-stage
  main
  > :not(#canvas_video):not(#canvas_gl):not(#canvasEl):not(#screen):not(
    #screen2
  ):not(#background_video):not(#stage-poster) {
  display: none !important;
}
.native-stage #canvas_video {
  width: 100%;
  height: 100%;
  max-height: none;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
}
#stage-poster{position:absolute;inset:0;width:100%;height:100%;max-height:none;object-fit:contain;z-index:2;pointer-events:none}
.native-stage #stage-poster{object-fit:cover}
