.ai-overlay{
  position: fixed;
  inset: 0;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  background: rgba(0,0,0,.45);
  z-index: 99999;
}
.ai-overlay.ai-show{ display: flex; }

.ai-modal{
  width: min(520px, 100%);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
  padding: 16px;
  position: relative;
  transform: translateY(12px);
  opacity: 0;
  transition: transform .2s ease, opacity .2s ease;
}
.ai-overlay.ai-show .ai-modal{
  transform: translateY(0);
  opacity: 1;
}

.ai-close{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(0,0,0,.06);
  cursor: pointer;
  font-size: 22px;
  line-height: 36px;
}

.ai-content{
  display: flex;
  gap: 12px;
  align-items: center;
  padding-right: 44px;
}
.ai-icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(0,0,0,.06);
  display: grid;
  place-items: center;
  font-size: 22px;
  flex: 0 0 44px;
}

.ai-title{ font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.ai-desc{ font-size: 14px; opacity: .85; }

.ai-actions{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}
.ai-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
}
.ai-btn-primary{ background: #1a73e8; color: #fff; }
.ai-btn-ghost{ background: rgba(0,0,0,.06); color: #111; }

.ai-footnote{
  margin-top: 10px;
  font-size: 12px;
  opacity: .65;
  text-align: center;
}

@media (min-width: 768px){
  .ai-overlay{ align-items: center; }
  .ai-actions{ grid-template-columns: 1fr 1fr; }
}
