.aya-launcher {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(10, 7, 16, 0.08);
  box-shadow: none;
  color: #fff;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
  opacity: 0.88;
}

.aya-launcher:hover,
.aya-launcher:focus-visible {
  transform: translateY(-1px);
  background: rgba(243, 208, 141, 0.08);
  box-shadow: 0 0 0 1px rgba(243, 208, 141, 0.16);
  opacity: 1;
}

.aya-launcher:focus-visible {
  outline: 2px solid rgba(243, 208, 141, 0.8);
  outline-offset: 3px;
}

.aya-launcher svg {
  width: 1.45rem;
  height: 1.45rem;
  display: block;
}

.aya-launcher-inline {
  position: static;
  right: auto;
  bottom: auto;
  width: 1.7rem;
  height: 1.7rem;
  margin-left: 0.35rem;
  vertical-align: middle;
  opacity: 0.78;
}

.aya-launcher-inline svg {
  width: 1.15rem;
  height: 1.15rem;
}

.aya-inline-note {
  margin: 0 0 0.9rem;
  color: rgba(246, 240, 255, 0.56);
  font-size: 0.78rem;
  font-family: "Liberation Sans", "DejaVu Sans", sans-serif;
  letter-spacing: 0.03em;
}

.aya-inline-note a {
  color: #f3d08d;
}

.content-shell.is-collapsed .aya-launcher {
  right: 50%;
  transform: translateX(50%);
}

.content-shell.is-collapsed .aya-launcher:hover,
.content-shell.is-collapsed .aya-launcher:focus-visible {
  transform: translateX(50%) translateY(-2px) scale(1.03);
}

.aya-modal {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(6, 4, 10, 0.84);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.aya-modal.is-open {
  display: flex;
}

.aya-modal-card {
  width: min(720px, 100%);
  max-height: min(88vh, 860px);
  display: flex;
  flex-direction: column;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(205, 179, 255, 0.26);
  background: linear-gradient(160deg, rgba(31, 23, 46, 0.98), rgba(12, 9, 18, 0.98));
  box-shadow: 0 2rem 4rem rgba(6, 4, 10, 0.52);
}

.aya-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(205, 179, 255, 0.14);
  background: linear-gradient(90deg, rgba(243, 208, 141, 0.08), rgba(168, 128, 243, 0.08));
}

.aya-modal-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.aya-modal-brand svg {
  width: 2.2rem;
  height: 2.2rem;
  flex-shrink: 0;
}

.aya-modal-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.aya-modal-brand-copy strong {
  color: #fff;
  font-size: 0.96rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.aya-modal-brand-copy span {
  color: rgba(246, 240, 255, 0.58);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.aya-modal-close {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(205, 179, 255, 0.1);
  color: rgba(246, 240, 255, 0.8);
  font-size: 1.2rem;
  cursor: pointer;
}

.aya-modal-body {
  overflow-y: auto;
  padding: 1.1rem 1rem 1rem;
  font-family: "Liberation Sans", "DejaVu Sans", sans-serif;
}

.aya-intro {
  margin: 0 0 0.95rem;
  color: rgba(246, 240, 255, 0.84);
  line-height: 1.65;
}

.aya-intro-logo {
  display: inline-flex;
  vertical-align: middle;
  margin: 0 0.2rem;
}

.aya-intro-logo svg {
  width: 1.3rem;
  height: 1.3rem;
}

.aya-prompt-shell {
  margin: 0 0 1rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(243, 208, 141, 0.22);
  background: rgba(10, 7, 16, 0.58);
}

.aya-prompt-shell h3 {
  margin: 0 0 0.6rem;
  color: #f3d08d;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.aya-prompt-text {
  margin: 0;
  white-space: pre-wrap;
  color: rgba(246, 240, 255, 0.9);
  line-height: 1.6;
  font-size: 0.92rem;
}

.aya-note {
  margin: 0;
  color: rgba(246, 240, 255, 0.72);
  line-height: 1.6;
}

.aya-note a {
  color: #f3d08d;
}

.aya-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem 1rem;
  border-top: 1px solid rgba(205, 179, 255, 0.12);
}

.aya-modal-footer span {
  color: rgba(246, 240, 255, 0.44);
  font-family: "Liberation Sans", "DejaVu Sans", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.aya-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #f3d08d, #cdb3ff);
  color: #1a1027;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.aya-copy-btn.is-copied {
  background: linear-gradient(90deg, #92f7aa, #63de8f);
}

@media (max-width: 920px) {
  .aya-launcher {
    right: 1rem;
    bottom: 1rem;
  }
}

@media (max-width: 640px) {
  .aya-modal {
    padding: 0.8rem;
  }

  .aya-modal-footer {
    flex-direction: column;
    align-items: stretch;
  }
}
