#nha-ai-advisor-root { position: fixed; right: 22px; bottom: 22px; z-index: 999999; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.nha-launcher { background: #1F6B5C; color: #fff; border: 0; border-radius: 999px; padding: 14px 18px; font-weight: 700; box-shadow: 0 8px 24px rgba(0,0,0,.18); cursor: pointer; }
.nha-panel { display: none; width: min(390px, calc(100vw - 28px)); height: min(620px, calc(100vh - 42px)); background: #fff; border-radius: 18px; box-shadow: 0 18px 45px rgba(0,0,0,.24); overflow: hidden; border: 1px solid #d7dfdc; }
.nha-panel.is-open { display: flex; flex-direction: column; }
.nha-header { display: flex; align-items: center; justify-content: space-between; padding: 15px 16px; background: #17324D; color: #fff; }
.nha-title { font-weight: 800; font-size: 16px; }
.nha-close { background: transparent; color: #fff; border: 0; font-size: 26px; line-height: 1; cursor: pointer; }
.nha-intro { padding: 14px 16px 6px; font-size: 14px; color: #1F2933; }
.nha-starters { display: flex; flex-wrap: wrap; gap: 7px; padding: 8px 16px 12px; }
.nha-starter, .nha-cta { background: #EAF3F0; color: #1F6B5C; border: 1px solid #B7D5CD; border-radius: 999px; padding: 7px 10px; cursor: pointer; font-size: 12.5px; font-weight: 650; }
.nha-chat-messages { flex: 1; overflow: auto; padding: 12px 14px; background: #F7F8FA; }
.nha-msg { white-space: pre-wrap; padding: 10px 12px; border-radius: 14px; margin: 8px 0; font-size: 14px; line-height: 1.35; max-width: 88%; }
.nha-msg-user { margin-left: auto; background: #17324D; color: #fff; border-bottom-right-radius: 4px; }
.nha-msg-assistant { margin-right: auto; background: #fff; color: #1F2933; border: 1px solid #E5E7EB; border-bottom-left-radius: 4px; }
.nha-sources { font-size: 11.5px; color: #6B7280; margin: 6px 0 8px; }
.nha-sources ul { margin: 5px 0 0 18px; padding: 0; }
.nha-typing { font-size: 12px; color: #6B7280; padding: 0 16px 8px; background: #F7F8FA; }
.nha-chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid #E5E7EB; background: #fff; }
.nha-chat-input { flex: 1; resize: none; border: 1px solid #D1D5DB; border-radius: 12px; padding: 9px 10px; font-size: 14px; }
.nha-chat-send { background: #1F6B5C; color: #fff; border: 0; border-radius: 12px; padding: 0 14px; font-weight: 700; cursor: pointer; }
.nha-chat-send:disabled, .nha-chat-input:disabled { opacity: .65; cursor: not-allowed; }
.nha-footnote { font-size: 10.5px; color: #6B7280; padding: 0 12px 12px; background: #fff; }
@media (max-width: 480px) { #nha-ai-advisor-root { right: 12px; bottom: 12px; } .nha-panel { width: calc(100vw - 24px); height: calc(100vh - 24px); border-radius: 14px; } }

.nha-recommendations-title { font-size: 13px; font-weight: 800; color: #17324D; margin: 16px 0 8px; }
.nha-recommendations { display: flex; flex-direction: column; gap: 9px; }
.nha-project-card { display: flex; gap: 10px; padding: 9px; border: 1px solid #d9e5e0; border-radius: 12px; background: white; }
.nha-project-img { width: 90px; height: 94px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.nha-project-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; overflow-wrap: anywhere; }
.nha-project-name { color: #17324D; font-size: 13px; font-weight: 750; line-height: 1.3; }
.nha-project-facts, .nha-project-cost, .nha-project-match { font-size: 11px; line-height: 1.35; color: #5a6870; }
.nha-project-price { font-size: 12px; color: #17324D; font-weight: 750; }
.nha-project-link { color: #1F6B5C; font-size: 12px; font-weight: 700; text-decoration: underline; }
.nha-project-disclaimer { color: #64748b; font-size: 10.5px; padding: 6px 0 12px; }

/* Wersja 0.3.1: zachowuj akapity w powitaniu. */
.nha-intro { white-space: pre-line; }


/* 0.3.5: jedna przewijana przestrzen na powitanie LUB rozmowe. */
.nha-panel { min-height: 0; }
.nha-header, .nha-chat-form, .nha-footnote, .nha-typing { flex: 0 0 auto; }
.nha-chat-messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.nha-welcome[hidden] { display: none !important; }
.nha-welcome { padding: 2px 0 8px; }
.nha-welcome .nha-intro { line-height: 1.48; }
.nha-welcome .nha-starters { padding-bottom: 14px; }
.nha-chat-form { align-items: stretch; }
.nha-chat-input { min-width: 0; min-height: 44px; max-height: 92px; box-sizing: border-box; }
.nha-chat-send { flex: 0 0 auto; }
@supports (height: 100dvh) {
  .nha-panel { height: min(620px, calc(100dvh - 42px)); }
  @media (max-width: 480px) { .nha-panel { height: calc(100dvh - 24px); } }
}

/* 0.3.8: krótkie pytania o preferencje i przyciski szybkich odpowiedzi. */
.nha-quick-replies { display: flex; flex-wrap: wrap; gap: 7px; padding: 4px 0 12px; }
.nha-quick-replies[hidden] { display: none !important; }
.nha-quick-reply { background: #eaf3f0; color: #1f6b5c; border: 1px solid #b7d5cd; border-radius: 999px; padding: 8px 11px; font-size: 12px; font-weight: 650; cursor: pointer; }
.nha-quick-reply:focus-visible { outline: 2px solid #17324d; outline-offset: 2px; }
.nha-quick-reply:disabled { cursor: default; opacity: .5; }
