.belle {
  --belle-edge: max(16px, env(safe-area-inset-left));
  --belle-bottom: max(16px, env(safe-area-inset-bottom));
  position: fixed;
  left: var(--belle-edge);
  bottom: var(--belle-bottom);
  z-index: 90;
  color: var(--ink);
  font-size: .94rem;
}

.belle [hidden] { display: none !important; }
.belle button, .belle input { font: inherit; }
.belle button { cursor: pointer; }
.belle-launch, .belle-send {
  background: var(--petrol-dark);
  color: var(--pearl);
  border: 1px solid var(--petrol-dark);
  font-weight: 700 !important;
}
.belle-launch {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  max-width: calc(100vw - var(--belle-edge) - 88px);
  padding: 7px 15px 7px 9px;
  border-radius: 32px;
  box-shadow: 0 9px 24px #092f3940;
  text-align: left;
}
.belle-launch-icon {
  position: relative;
  flex: 0 0 40px;
  height: 40px;
  border: 1px solid var(--gold-pale);
  border-radius: 50%;
  background: #ead9ab1a;
}
.belle-launch-icon img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-view-box: inset(11% 15% 19% 15%);
}
.belle-launch-copy { display: grid; gap: 2px; line-height: 1.15; }
.belle-launch-copy span { color: var(--gold-pale); font-size: .75rem; }
.belle-launch-copy strong { font-size: .9rem; }
@media (prefers-reduced-motion: no-preference) {
  .belle-launch[aria-expanded="false"] .belle-launch-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid var(--gold-pale);
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    animation: belle-launch-pulse 1.7s ease-out .6s 2;
  }
}
@keyframes belle-launch-pulse {
  from { opacity: .65; transform: scale(.96); }
  to { opacity: 0; transform: scale(1.32); }
}
.belle-panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  width: min(390px, calc(100vw - var(--belle-edge) - 16px));
  max-height: calc(100dvh - var(--belle-bottom) - 77px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 21px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 55px #092f3940;
  background: var(--pearl);
}
.belle-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 15px 12px 17px;
  background: var(--petrol-dark);
  color: var(--pearl);
}
.belle-header strong { display: block; font-size: 1.2rem; line-height: 1.2; }
.belle-header small { color: var(--gold-pale); }
.belle-close {
  border-radius: 50%;
  border: 1px solid #ffffff60;
  min-width: 40px;
  min-height: 40px;
  background: transparent;
  color: inherit;
  font-size: 1.25rem !important;
}
.belle-scroll {
  min-height: 0;
  overflow-y: auto;
  padding: 14px;
  overscroll-behavior: contain;
}
.belle-log { display: grid; gap: 8px; }
.belle-log p {
  margin: 0;
  padding: 9px 12px;
  border-radius: 12px;
  background: white;
  border: 1px solid var(--line);
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.belle-log .belle-visitor {
  justify-self: end;
  max-width: 88%;
  background: var(--petrol);
  color: white;
  border-color: var(--petrol);
}
.belle-choices, .belle-contact { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.belle-choices button, .belle-contact a {
  padding: 6px 10px;
  border-radius: 20px;
  border: 1px solid #a0b6b6;
  background: transparent;
  color: var(--petrol-dark);
  font-size: .84rem;
  font-weight: 700;
}
.belle-contact a { background: white; text-decoration: underline; }
.belle-form { padding: 10px 14px 12px; border-top: 1px solid var(--line); }
.belle-entry { display: flex; gap: 7px; }
.belle-entry input {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  padding: 6px 10px;
  border: 1px solid #a0b6b6;
  border-radius: 9px;
  color: var(--ink);
  background: white;
  font-size: 1rem;
}
.belle-send { border-radius: 9px; padding: 0 11px; }
.belle-form small { display: block; margin-top: 5px; line-height: 1.35; }
.belle :focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.belle-header :focus-visible { outline-color: var(--gold-pale); }
@media (max-height: 480px) {
  .belle-panel { bottom: 0; max-height: calc(100dvh - var(--belle-bottom) - 12px); }
}

.belle-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .75rem; margin-top: 12px; }
.belle-links a { color: var(--petrol-dark); font-size: .88rem; }
.belle-links .belle-ray { padding: .6rem 1rem; border-radius: 20px; background: #185767; color: white; text-decoration: none; font-weight: 700; }
