/* Isolated homepage AI buttons; no changes to existing theme styles. */
.echo-eight-front-page .ee-ai-buttons {
  margin: 24px 0 0;
}
.echo-eight-front-page .ee-ai-buttons-label {
  margin: 0 0 10px;
  color: var(--teal, #3bbccb);
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.5;
}
.echo-eight-front-page .ee-ai-buttons-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.echo-eight-front-page .ee-ai-buttons-link {
  display: inline-flex;
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #f6f5f1;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}
.echo-eight-front-page .ee-ai-buttons-link:hover {
  border-color: var(--teal, #3bbccb);
  background: rgba(59,188,203,.2);
}
.echo-eight-front-page .ee-ai-buttons-link:focus-visible,
.echo-eight-front-page .ee-ai-dialog-action:focus-visible,
.echo-eight-front-page .ee-ai-dialog-close:focus-visible {
  outline: 3px solid var(--teal, #3bbccb);
  outline-offset: 4px;
}
.echo-eight-front-page .ee-ai-buttons-link img {
  display: block;
  width: 20px;
  height: 20px;
  max-width: none;
  object-fit: contain;
}
.echo-eight-front-page .ee-ai-dialog:not([open]) { display: none; }
.echo-eight-front-page .ee-ai-dialog {
  position: fixed;
  width: min(620px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  overflow: auto;
  margin: auto;
  padding: 30px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 14px;
  background: var(--navy-soft, #111524);
  color: #fff;
  box-shadow: 0 20px 70px rgba(0,0,0,.4);
  text-align: left;
}
.ee-ai-dialog::backdrop { background: rgba(0,0,0,.72); }
.echo-eight-front-page .ee-ai-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}
.echo-eight-front-page .ee-ai-dialog-title {
  margin: 0 30px 12px 0;
  font-size: 1.5rem;
  line-height: 1.2;
  color: #fff;
}
.echo-eight-front-page .ee-ai-dialog > p {
  font-size: .9rem;
  line-height: 1.6;
  color: rgba(255,255,255,.8);
}
.echo-eight-front-page .ee-ai-prompt-label {
  display: block;
  margin-bottom: 8px;
  font-size: .85rem;
  font-weight: 700;
}
.echo-eight-front-page .ee-ai-prompt {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 150px;
  resize: vertical;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px;
  background: #f6f5f1;
  color: #11131a;
  font: 14px/1.6 ui-sans-serif, system-ui, sans-serif;
}
.echo-eight-front-page .ee-ai-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.echo-eight-front-page .ee-ai-dialog-action {
  display: inline-flex;
  min-height: 44px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  text-decoration: none;
}
.echo-eight-front-page .ee-ai-dialog-action-primary {
  border-color: var(--teal, #3bbccb);
  background: var(--teal, #3bbccb);
  color: #0a0a16;
}
.echo-eight-front-page .ee-ai-dialog .ee-ai-dialog-status {
  min-height: 1.5em;
  margin: 14px 0 0;
  font-size: .82rem;
}
.echo-eight-front-page .ee-ai-noscript {
  color: #cbd0d8;
  font-size: .8rem;
}
@media (max-width: 760px) {
  .echo-eight-front-page .ee-ai-buttons-label { text-align: center; }
  .echo-eight-front-page .ee-ai-buttons-links { justify-content: center; }
  .echo-eight-front-page .ee-ai-dialog { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .echo-eight-front-page .ee-ai-buttons-link { transition: none; }
}
