.chapero-assistant-entry,
.chapero-assistant-launcher {
  --chapero-entry-blue: #0754d8;
  --chapero-entry-blue-dark: #043d9f;
  --chapero-entry-ink: #09275e;
  font-family: inherit;
}

.chapero-assistant-entry {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-bottom: 40px;
  background:
    radial-gradient(circle at 18% 28%, rgba(255, 213, 92, .38), transparent 30%),
    linear-gradient(115deg, #f7fbff 0%, #eef5ff 55%, #e5efff 100%);
  color: var(--chapero-entry-ink);
}

.chapero-assistant-entry::before {
  position: absolute;
  z-index: -1;
  right: -9rem;
  bottom: -13rem;
  width: 32rem;
  height: 32rem;
  border: 1px solid rgba(7, 84, 216, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 4rem rgba(255, 255, 255, .2), 0 0 0 8rem rgba(7, 84, 216, .035);
  content: "";
}

.chapero-assistant-entry__inner {
  display: grid;
  grid-template-columns: minmax(240px, .78fr) minmax(0, 1.35fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
  width: min(1170px, calc(100% - 2rem));
  min-height: 510px;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5.5rem) 0;
}

.chapero-assistant-entry__character {
  position: relative;
  align-self: end;
  min-height: 390px;
}

.chapero-assistant-entry__character img {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: -5.5rem;
  width: min(420px, 36vw);
  height: auto;
  filter: drop-shadow(0 22px 20px rgba(4, 36, 92, .22));
}

.chapero-assistant-entry__halo {
  position: absolute;
  top: 12%;
  left: 10%;
  width: 19rem;
  max-width: 80%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 206, 67, .82);
}

.chapero-assistant-entry__content {
  position: relative;
  z-index: 2;
  padding-top: clamp(2.25rem, 4vw, 4rem);
}

.chapero-assistant-entry h2 {
  max-width: 720px;
  margin: 0 0 1.5rem;
  color: var(--chapero-entry-blue-dark);
  font-size: clamp(2rem, 3.4vw, 3.35rem);
  line-height: 1.08;
  text-transform: none;
}

.chapero-assistant-entry__form {
  max-width: 760px;
}

.chapero-assistant-entry__form label {
  display: block;
  margin-bottom: .45rem;
  color: var(--chapero-entry-ink);
  font-size: .88rem;
  font-weight: 700;
}

.chapero-assistant-entry__composer {
  display: flex;
  gap: .6rem;
  padding: .55rem;
  border: 1px solid rgba(7, 84, 216, .2);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 55, 120, .12);
}

.chapero-assistant-entry__composer input {
  min-width: 0;
  flex: 1;
  min-height: 54px;
  padding: .7rem 1rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: #10264b;
  font: inherit;
}

.chapero-assistant-entry__composer input:focus-visible {
  border-radius: 11px;
  box-shadow: inset 0 0 0 2px var(--chapero-entry-blue);
}

.chapero-assistant-entry__composer button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  min-width: 54px;
  padding: .8rem;
  border: 0;
  border-radius: 13px;
  background: var(--chapero-entry-blue);
  color: #fff;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}

.chapero-assistant-entry__composer button:hover,
.chapero-assistant-entry__composer button:focus-visible {
  background: var(--chapero-entry-blue-dark);
  transform: translateY(-1px);
}

.chapero-assistant-entry__composer button svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.chapero-assistant-entry__status {
  min-height: 1.2em;
  margin: .45rem 0 0;
  color: #9c2c2c;
  font-size: .82rem;
}

.chapero-assistant-entry__privacy-notice {
  margin: .5rem 0 0;
  color: #5c667a;
  font-size: .72rem;
  line-height: 1.4;
}

.chapero-assistant-entry__suggestions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .55rem;
  max-width: 760px;
  margin-top: .65rem;
}

.chapero-assistant-entry__suggestions button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: .35rem;
  width: 100%;
  min-height: 46px;
  padding: .58rem .75rem;
  border: 1px solid rgba(7, 84, 216, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .76);
  color: #174683;
  font: inherit;
  font-size: .84rem;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.chapero-assistant-entry__suggestions button:hover,
.chapero-assistant-entry__suggestions button:focus-visible {
  border-color: var(--chapero-entry-blue);
  background: #fff;
}

.chapero-assistant-entry__suggestions svg {
  flex: 0 0 auto;
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.chapero-assistant-launcher {
  position: fixed;
  z-index: 990;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: .7rem;
  min-height: 78px;
  padding: .45rem .45rem .45rem 1rem;
  border: 1px solid rgba(7, 84, 216, .15);
  border-radius: 999px;
  background: rgba(255, 255, 255, .96);
  color: #12366e;
  box-shadow: 0 14px 38px rgba(0, 31, 83, .23);
  text-decoration: none;
  transition: box-shadow .2s ease, transform .2s ease;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.chapero-assistant-launcher:hover,
.chapero-assistant-launcher:focus-visible {
  color: #09275e;
  text-decoration: none;
  box-shadow: 0 18px 44px rgba(0, 31, 83, .3);
  transform: translateY(-3px);
}

.chapero-assistant-launcher__label {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.chapero-assistant-launcher__label strong {
  font-size: .88rem;
}

.chapero-assistant-launcher__label span {
  color: #3e6094;
  font-size: .78rem;
}

.chapero-assistant-launcher__avatar {
  display: grid;
  overflow: hidden;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffda66, #f6b72f);
}

.chapero-assistant-launcher__avatar img {
  width: 82px;
  max-width: none;
  height: 82px;
  margin: 8px 0 0 -2px;
  object-fit: contain;
}

@media (max-width: 767px) {
  .chapero-assistant-entry__inner {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 2.75rem 0 0;
  }

  .chapero-assistant-entry__content {
    grid-row: 1;
    padding-top: 0;
  }

  .chapero-assistant-entry__character {
    grid-row: 2;
    min-height: 260px;
    margin-top: 1rem;
  }

  .chapero-assistant-entry__character img {
    right: 50%;
    bottom: -4.25rem;
    width: min(330px, 82vw);
    transform: translateX(50%);
  }

  .chapero-assistant-entry__halo {
    top: 8%;
    left: 50%;
    width: 15rem;
    transform: translateX(-50%);
  }

  .chapero-assistant-entry__composer {
    align-items: stretch;
  }

  .chapero-assistant-entry__composer button {
    min-width: 52px;
    width: 52px;
    padding: .75rem;
  }

  .chapero-assistant-entry__suggestions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .chapero-assistant-entry__suggestions button {
    justify-content: space-between;
    border-radius: 12px;
    text-align: left;
  }

  .chapero-assistant-launcher {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    min-height: 62px;
    padding: .3rem;
  }

  .chapero-assistant-launcher__label {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .chapero-assistant-launcher__avatar {
    width: 58px;
    height: 58px;
  }

  .chapero-assistant-launcher__avatar img {
    width: 70px;
    height: 70px;
  }
}

@media print {
  .chapero-assistant-entry,
  .chapero-assistant-launcher {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chapero-assistant-entry *,
  .chapero-assistant-launcher {
    transition: none !important;
  }
}
