.assistant-contact button,
.assistant-contact .assistant-action {
  border: 1px solid #9db7c8;
  border-radius: 8px;
  padding: .55em .85em;
  background: #162c3a;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.assistant-contact button:disabled {
  opacity: .6;
  cursor: wait;
}

.assistant-contact {
  position: fixed;
  inset: 0;
  width: min(31rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  margin: auto;
  padding: clamp(16px, 4vw, 24px);
  overflow: auto;
  border: 1px solid #9db7c8;
  border-radius: 14px;
  background: #142736;
  color: #fff;
  box-shadow: 0 8px 30px #0009;
}

.assistant-contact::backdrop { background: #04101bbf; }
.assistant-contact h2 { margin: 0; }
.assistant-contact p { margin: .7em 0; }
.assistant-contact small { color: #cfdee7; }
.assistant-contact form label { display: block; margin-bottom: .4em; }
.assistant-contact textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 5em;
  margin-bottom: .75em;
  border: 1px solid #9db7c8;
  border-radius: 8px;
  padding: .65em;
  resize: vertical;
  background: #fff;
  color: #142736;
  font: inherit;
}

.assistant-contact .assistant-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6em;
  margin-top: .9em;
}

.assistant-contact form[method="dialog"] { margin: 0; }
.assistant-contact #assistant-answer { overflow-wrap: anywhere; }

#assistant-launcher:not([hidden]) {
  position: fixed;
  z-index: 100;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: .5em;
  min-height: 44px;
  border: 2px solid #b8e6ff;
  border-radius: 999px;
  padding: .55em .85em;
  background: #142736;
  color: #fff;
  font: 700 16px/1.25 system-ui, sans-serif;
  box-shadow: 0 3px 12px #0007;
  cursor: pointer;
}

#assistant-launcher:hover { background: #22475b; }
#assistant-launcher:focus-visible { outline: 3px solid #ffd177; outline-offset: 3px; }
#assistant-launcher svg { width: 1.25em; height: 1.25em; flex: none; }

/* Keep the home video control next to the assistant rather than behind it. */
body:has(#assistant-launcher:not([hidden])) #pause {
  right: calc(max(16px, env(safe-area-inset-right)) + 130px);
}
