a.ai-card,
a.ai-nav__back {
  color: inherit;
  text-decoration: none;
}

.ai-nav {
  grid-template-columns: 44px 1fr auto;
}

a.ai-nav__back {
  display: grid;
  place-items: center;
}

.q-mask {
  position: absolute;
  inset: 0;
  z-index: 40;
  background: rgba(51, 32, 24, 0.42);
}

.q-sheet {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 41;
  padding: 18px 16px 14px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(91, 52, 40, 0.18);
}

.q-kicker,
.q-legal,
.q-demo {
  margin: 0;
  color: #8a6a5c;
  font-size: 12px;
  line-height: 1.5;
}

.q-sheet h2 {
  margin: 6px 0 0;
  font-size: 18px;
}

.q-sheet p {
  margin: 8px 0 0;
  color: #5c463c;
  font-size: 14px;
  line-height: 1.55;
}

.q-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.q-btn,
.choice,
.composer button,
.ai-pack,
.xh-next {
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  font: inherit;
  cursor: pointer;
}

.q-btn {
  flex: 1;
  background: #ff7a45;
  color: #fff;
  font-weight: 700;
}

.q-btn:focus-visible,
.choice:focus-visible,
.composer button:focus-visible,
.ai-pack:focus-visible,
.xh-next:focus-visible,
.chat-back:focus-visible {
  outline: 2px solid #ff7a45;
  outline-offset: 2px;
}

.q-btn:disabled {
  background: #eadfd8;
  color: #9a887e;
  cursor: not-allowed;
}

.q-btn--ghost {
  background: #fff4ee;
  color: #c56a45;
}

.q-demo {
  width: 100%;
  margin-top: 8px;
  padding: 8px 0 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.q-toast {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 42;
  transform: translateX(-50%);
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(51, 32, 24, 0.88);
  color: #fff;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
}

.q-toast.is-show { opacity: 1; }

.ai-free {
  display: inline-flex;
  margin-top: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff4ee;
  color: #c56a45;
  font-size: 11px;
  font-weight: 700;
}

.ai-card.is-locked {
  opacity: 0.72;
}

.ai-points {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.ai-points strong { font-size: 13px; }
.ai-points b { color: #c56a45; }

.ai-pack {
  padding: 0 12px;
  background: #fff;
  color: #c56a45;
  font-size: 13px;
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .q-toast,
  .ai-card,
  .choice,
  .q-btn {
    transition: none;
  }
}
