.page-ai-assistant {
  min-height: 100svh;
  background: var(--almond);
}

.page-ai-assistant .site-header {
  min-height: 64px;
  padding-top: 8px;
  padding-bottom: 8px;
  background: rgba(255, 255, 255, 0.96);
}

.page-ai-assistant .brand-wordmark {
  display: inline-flex;
  align-items: center;
  color: var(--forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  line-height: 1;
  white-space: nowrap;
}

.assistant-page {
  min-height: calc(100svh - 64px);
}

.huvia-ai--page {
  min-height: calc(100svh - 64px);
  border: 0;
  padding: 32px 0;
}

.huvia-ai--page .huvia-ai__workspace {
  min-height: calc(100svh - 128px);
  max-height: 760px;
}

.huvia-ai__intro h1 {
  max-width: 520px;
  margin-top: 58px;
  color: var(--off-white);
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  line-height: 1.02;
}

.assistant-page__intro-copy {
  max-width: 440px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.55;
}

.assistant-page__intro-copy span {
  display: block;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.08;
}

.assistant-page__intro-copy small {
  display: block;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
}

.assistant-page__close {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--forest);
  font-size: 1.45rem;
  line-height: 1;
}

.huvia-ai--page .huvia-ai__messages {
  min-height: 320px;
}

@media (max-width: 980px) {
  .huvia-ai--page .huvia-ai__workspace {
    max-height: none;
  }

  .huvia-ai__intro h1 {
    font-size: 2.55rem;
  }
}

@media (max-width: 760px) {
  .page-ai-assistant .site-header {
    min-height: 60px;
  }

  .assistant-page,
  .huvia-ai--page {
    min-height: calc(100svh - 60px);
  }

  .huvia-ai--page {
    padding: 14px 0;
  }

  .huvia-ai--page .huvia-ai__workspace {
    min-height: 0;
  }

  .huvia-ai__intro h1 {
    margin-top: 28px;
    font-size: 2.2rem;
  }

  .assistant-page__intro-copy {
    margin-top: 12px;
  }
}
/* Keep the assistant as a viewport-contained workspace on small screens. */
@media (max-width: 720px) {
  .huvia-ai--page {
    height: calc(100svh - 64px);
    min-height: 0;
    overflow: hidden;
  }

  .huvia-ai--page .huvia-ai__workspace {
    height: 100%;
    min-height: 0;
    overflow-y: auto;
  }
}
