/* Optional assistance shares the site's restrained green palette. */
.assistant-launcher[hidden], .assistant-intro[hidden], .assistant-dialog [hidden] { display: none !important; }
.assistant-ready .floating-widgets { display: none !important; }
.assistant-launcher, .assistant-intro, .assistant-dialog { font-family: var(--font-body, 'Manrope', sans-serif); -webkit-tap-highlight-color: transparent; }
.assistant-launcher { position: fixed; z-index: 900; right: max(22px, env(safe-area-inset-right)); bottom: max(22px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; min-height: 60px; border: 1px solid #c9dace; border-radius: 18px; background: #f6faf5; color: #173e31; box-shadow: 0 8px 32px #102e2224; cursor: pointer; text-align: left; transition: transform .2s, box-shadow .2s; }
.assistant-launcher:hover { transform: translateY(-2px); box-shadow: 0 12px 34px #102e2235; }
.assistant-launcher-label { font-size: 14px; font-weight: 700; line-height: 1.35; }
.assistant-launcher-label small { display: block; font-size: 11px; font-weight: 400; color: #496557; margin-top: 3px; }
.assistant-launcher-short { display: none; }
/* Reserve the bottom edge so the fixed control cannot cover the final footer links. */
.assistant-ready .site-footer, .assistant-ready .content-footer { padding-bottom: max(100px, calc(env(safe-area-inset-bottom) + 88px)); }
.assistant-symbol { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 11px; color: #e6f2df; background: #245b46; font-size: 22px; }
.assistant-intro { display: flex; align-items: center; gap: 9px; min-height: 44px; width: fit-content; max-width: 100%; border: 0; border-radius: 10px; margin-top: 10px; padding: 5px 9px 5px 5px; background: #122f28e6; color: #f4faf0; cursor: pointer; text-align: left; font-size: 13px; line-height: 1.35; }
.assistant-intro .assistant-symbol { flex-basis: 28px; width: 28px; height: 28px; font-size: 18px; border-radius: 8px; }
.assistant-intro small { font-size: 10px; border: 1px solid #8ba894; color: #d8ead7; border-radius: 4px; padding: 2px 4px; }
html.dialog-open .assistant-launcher { visibility: hidden; }
html.assistant-open { overflow: hidden; }
.assistant-dialog { box-sizing: border-box; position: fixed; inset: auto max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) auto; margin: 0; padding: 0; width: 430px; max-width: calc(100vw - 32px); height: min(730px, calc(100dvh - 40px)); max-height: calc(100dvh - 40px); border: 1px solid #d3dfd2; border-radius: 24px; background: #fbfcf9; color: #243d32; box-shadow: 0 24px 90px #091e2840; overflow: hidden; }
.assistant-dialog[open] { display: flex; flex-direction: column; animation: assistant-enter .22s ease-out; }
.assistant-dialog::backdrop { background: #071d204a; backdrop-filter: blur(3px); }
.assistant-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex: 0 0 auto; padding: 22px 20px 18px; border-bottom: 1px solid #e1e7dd; background: #f2f6ee; }
.assistant-eyebrow { font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: #496753; }
.assistant-heading h2 { margin: 5px 0 0; color: #183e30; font-size: 20px; font-weight: 650; line-height: 1.25; letter-spacing: -.02em; }
.assistant-close { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid #cbd6c8; border-radius: 12px; background: #fff9; color: #264e3b; font-size: 28px; cursor: pointer; }
.assistant-log { flex: 1 1 auto; min-height: 90px; overflow-y: auto; overscroll-behavior: contain; padding: 20px; scrollbar-width: thin; font-size: 14px; line-height: 1.65; }
.assistant-welcome p { margin: 0 0 15px; }
.assistant-suggestions { display: flex; flex-direction: column; gap: 8px; }
.assistant-suggestion { min-height: 44px; border: 1px solid #d3decf; border-radius: 11px; padding: 10px 12px; text-align: left; background: #fff; color: #24533f; font-size: 13px; line-height: 1.4; cursor: pointer; }
.assistant-suggestion:hover, .assistant-action:hover { background: #edf3e9; }
.assistant-suggestion:disabled { cursor: default; opacity: .65; }
.assistant-message { margin: 16px 0 0; padding: 13px 15px; border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.assistant-message-user { background: #e9f0e4; color: #1e4937; margin-left: 22px; border-bottom-right-radius: 4px; }
.assistant-message-answer { background: #fff; border: 1px solid #e1e7dd; margin-right: 8px; border-bottom-left-radius: 4px; }
.assistant-status { flex: 0 0 auto; padding: 0 20px; margin: 0; font-size: 12px; line-height: 1.5; color: #526b59; }
.assistant-status:not(:empty) { padding-top: 8px; padding-bottom: 8px; }
.assistant-status.is-waiting { display: flex; align-items: center; gap: 9px; margin: 3px 20px; padding: 10px 12px; border-radius: 10px; background: #eaf2e5; color: #2b583f; font-size: 13px; }
.assistant-status.is-waiting::before { content: ''; flex: 0 0 14px; width: 14px; height: 14px; border: 2px solid #b9ceb3; border-top-color: #245b46; border-radius: 50%; animation: assistant-spin .85s linear infinite; }
.assistant-navigation { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px; flex: 0 0 auto; }
.assistant-navigation:not(:empty) { padding-top: 8px; padding-bottom: 10px; }
.assistant-action { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 11px; border-radius: 10px; background: #f0f5ec; border: 1px solid #d4dece; color: #244f3c; font-size: 12px; font-weight: 600; text-decoration: none; line-height: 1.3; }
.assistant-form { padding: 12px 20px 0; flex: 0 0 auto; }
.assistant-input-label { display: block; margin-bottom: 6px; color: #3c5946; font-size: 12px; }
.assistant-field { display: flex; align-items: end; gap: 6px; border: 1px solid #bacbb7; border-radius: 14px; padding: 6px; background: #fff; }
.assistant-field:focus-within { outline: 2px solid #32684d; outline-offset: 2px; }
.assistant-input { display: block; min-width: 0; flex: 1; resize: none; margin: 0; padding: 6px; border: 0; border-radius: 8px; background: transparent; color: #243d32; font: inherit; font-size: 16px; line-height: 1.4; box-shadow: none; }
.assistant-input:focus { outline: none; box-shadow: none; }
.assistant-input::placeholder { color: #72806f; opacity: 1; }
.assistant-send { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; border: 0; border-radius: 10px; color: #fff; background: #245b46; font-size: 24px; cursor: pointer; }
.assistant-send:disabled { opacity: .45; cursor: wait; }
.assistant-privacy { padding: 8px 20px 10px; margin: 0; font-size: 10px; line-height: 1.5; color: #61725e; flex: 0 0 auto; }
.assistant-privacy a { color: #3f6348; text-decoration: underline; text-underline-offset: 2px; }
.assistant-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 14px max(8px, env(safe-area-inset-bottom)); border-top: 1px solid #e1e7dd; background: #f2f6ee; flex: 0 0 auto; }
.assistant-human, .assistant-clear { min-height: 44px; padding: 7px 6px; font-size: 12px; line-height: 1.4; border: 0; background: transparent; color: #24523d; cursor: pointer; text-align: left; }
.assistant-human { font-weight: 700; }
.assistant-clear { color: #596c56; font-size: 11px; text-align: right; }
.assistant-clear:disabled { opacity: .5; }
.assistant-dialog button:focus-visible, .assistant-dialog a:focus-visible, .assistant-launcher:focus-visible, .assistant-intro:focus-visible { outline: 2px solid #63966e; outline-offset: 3px; }
.assistant-target { outline: 2px solid #63966e; outline-offset: -2px; }
@keyframes assistant-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes assistant-spin { to { transform: rotate(360deg); } }
@media (max-width: 600px) {
  .assistant-launcher { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); border-radius: 15px; min-height: 54px; padding: 9px 12px 9px 9px; gap: 9px; }
  .assistant-launcher-label { font-size: 12px; }
  .assistant-launcher-full { display: none; }
  .assistant-launcher-short { display: inline; }
  .assistant-launcher-label small { font-size: 10px; }
  .assistant-intro { font-size: 11px; gap: 7px; margin-top: 7px; }
  .assistant-intro small { font-size: 9px; }
  .assistant-dialog { inset: 8px 8px auto; width: calc(100vw - 16px); max-width: none; height: calc(var(--assistant-viewport, 100dvh) - 16px); max-height: calc(var(--assistant-viewport, 100dvh) - 16px); border-radius: 20px; }
  .assistant-header { padding: 14px 15px 12px; }
  .assistant-heading h2 { font-size: 18px; }
  .assistant-log { padding: 16px; font-size: 14px; }
  .assistant-form { padding: 10px 14px 0; }
  .assistant-status { padding-left: 15px; padding-right: 15px; }
  .assistant-navigation { padding-left: 14px; padding-right: 14px; }
  .assistant-privacy { padding-left: 15px; padding-right: 15px; }
  .assistant-action { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .assistant-dialog[open], .assistant-status.is-waiting::before { animation: none; } .assistant-launcher { transition: none; } }
