.nautical-chat {
  position: fixed;
  right: 1rem;
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 20;
  color: #0d2831;
}
.nautical-chat button { font: inherit; cursor: pointer; }
.nautical-chat .nautical-chat-launch {
  display: block;
  border: 1px solid #fff;
  border-radius: 2rem;
  background: #0d2831;
  color: #fff;
  font-weight: 700;
  padding: .75rem 1rem;
  box-shadow: 0 4px 20px #0d283130;
}
.nautical-chat dialog {
  position: absolute;
  inset: auto 0 calc(100% + .5rem) auto;
  margin: 0;
  width: min(24rem, calc(100vw - 2rem));
  max-width: none;
  max-height: calc(100dvh - 5.5rem);
  padding: 0;
  border: 1px solid #bacdc5;
  border-radius: .75rem;
  background: #fff;
  color: inherit;
  box-shadow: 0 10px 35px #0d283138;
}
.nautical-chat-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .35rem .75rem .35rem 1rem;
  background: #0d2831;
  color: #fff;
}
.nautical-chat-header button {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.6rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
}
.nautical-chat-body { padding: 1rem; font-size: .95rem; }
.nautical-chat-body p { margin: 0 0 .75rem; }
.nautical-chat-topics { display: flex; flex-wrap: wrap; gap: .35rem; }
.nautical-chat-topics button {
  min-height: 2.5rem;
  padding: .35rem .65rem;
  border: 1px solid #96b3a8;
  border-radius: .5rem;
  background: #fff;
  color: #0d2831;
}
.nautical-chat-topics button:hover { background: #e6f1eb; }
.nautical-chat-answer {
  margin-top: .75rem;
  padding: .75rem;
  scroll-margin-top: 4rem;
  border-radius: .5rem;
  background: #e6f1eb;
}
.nautical-chat-answer a {
  display: inline-block;
  margin-right: .75rem;
  color: #174f43;
  font-weight: 700;
  text-decoration: underline;
}
.nautical-chat :focus-visible { outline: 2px solid #348874; outline-offset: 2px; }
