.hero-search .assistant-entry {
  box-sizing: border-box;
  display: inline-grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: min(100%, 350px);
  margin-top: 12px;
  padding: 9px 13px 9px 9px;
  border: 1px solid #d4ef93;
  border-radius: 15px;
  background: linear-gradient(110deg, #e7f7c3, #d2ea88);
  color: #10392d;
  text-align: left;
  font: 750 1rem/1.25 Manrope, system-ui, sans-serif;
  cursor: pointer;
}
.hero-search .assistant-entry:hover { background: #eefbd3; }
.assistant-entry:focus-visible, .assistant-dialog button:focus-visible {
  outline: 3px solid #71a63d;
  outline-offset: 3px;
}
.assistant-entry-icon, .assistant-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: #174638;
  color: #e5f6a9;
}
.assistant-entry-icon svg, .assistant-send svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.assistant-entry-copy { display: grid; gap: 3px; }
.assistant-entry-copy small { font-size: .78rem; font-weight: 600; color: #365745; }
.assistant-entry-arrow { font-size: 1.3rem; }

#about-photo-gallery.has-gallery-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  grid-template-rows: auto auto;
  gap: 14px 22px;
  min-height: 245px;
  padding: 0;
  overflow: hidden;
  background-color: #123f35;
}
#about-photo-gallery.has-gallery-preview > svg { display: none; }
#about-photo-gallery.has-gallery-preview > div {
  grid-column: 1;
  align-self: end;
  min-width: 0;
  padding: 24px 0 0 28px;
}
#about-photo-gallery.has-gallery-preview .about-card-title {
  font-size: clamp(1.4rem, 3vw, 2.35rem);
  line-height: 1.12;
}
#about-photo-gallery.has-gallery-preview > div p {
  max-width: 34ch;
  margin-top: 9px;
  line-height: 1.45;
}
#about-photo-gallery.has-gallery-preview > a {
  grid-column: 1;
  justify-self: start;
  align-self: start;
  margin: 0 0 24px 28px;
}
#about-photo-gallery .gallery-preview {
  position: relative;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: stretch;
  min-height: 245px;
  margin: 0;
  background: #245748;
}
#about-photo-gallery .gallery-preview img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  object-fit: cover;
  object-position: 50% 38%;
}
#about-photo-gallery .gallery-preview figcaption {
  position: absolute;
  right: 10px;
  bottom: 10px;
}
#about-photo-gallery .gallery-preview figcaption a {
  display: inline-block;
  padding: 4px 7px;
  border-radius: 5px;
  background: #102e25;
  color: #fff;
  font-size: .68rem;
}

.assistant-dialog, .assistant-dialog * { box-sizing: border-box; }
.assistant-dialog {
  width: min(680px, calc(100% - 32px));
  height: min(700px, calc(100dvh - 32px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #f4f8f3;
  color: #10372e;
  box-shadow: 0 20px 70px #062b2260;
}
.assistant-dialog::backdrop { background: #05291dc2; backdrop-filter: blur(4px); }
.assistant-shell { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.assistant-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 11px;
  padding: 14px 18px;
  background: #123f35;
  color: #fff;
}
.assistant-mark { background: #ddf2a4; color: #143d31; font-size: 22px; }
.assistant-head h2 { margin: 0; color: inherit; font-size: 1.05rem; line-height: 1.2; }
.assistant-head p { margin: 3px 0 0; color: #c8dfd2; font-size: .76rem; line-height: 1.3; }
.assistant-close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 11px;
  background: #ffffff19;
  color: #fff;
  font-size: 25px;
  cursor: pointer;
}
.assistant-messages {
  min-width: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.assistant-message {
  max-width: 89%;
  padding: 12px 14px;
  border-radius: 15px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: .94rem;
  line-height: 1.48;
}
.assistant-message--assistant {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #dce9dd;
  border-bottom-left-radius: 5px;
}
.assistant-message--user {
  align-self: flex-end;
  background: #205d49;
  color: #fff;
  border-bottom-right-radius: 5px;
}
.assistant-message--status { color: #4b6459; font-style: italic; }
.assistant-sources { margin-top: 8px; padding-top: 8px; border-top: 1px solid #dce9dd; font-size: .8rem; }
.assistant-sources a { color: #1b5c45; font-weight: 750; text-decoration: underline; }
.assistant-form { min-width: 0; padding: 12px 14px; border-top: 1px solid #dce9dd; background: #fff; }
.assistant-input-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; }
.assistant-input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  max-height: min(132px, 30dvh);
  margin: 0;
  padding: 11px 12px;
  resize: none;
  border: 1px solid #afc5b7;
  border-radius: 13px;
  background: #fff;
  color: #10372e;
  font: 400 16px/1.5 Manrope, system-ui, sans-serif;
}
.assistant-input:focus { outline: 2px solid #39795d; outline-offset: -2px; }
.assistant-send {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 48px;
  min-width: 48px;
  padding: 0 12px;
  border: 0;
  border-radius: 13px;
  background: #d9ef9b;
  color: #143d31;
  font-weight: 800;
  cursor: pointer;
}
.assistant-send:disabled { opacity: .6; cursor: wait; }
.assistant-note { margin: 7px 1px 0; color: #4b6459; font-size: .71rem; line-height: 1.35; }

@media (max-width: 640px) {
  .hero-search .assistant-entry { width: 100%; }
  #about-photo-gallery.has-gallery-preview {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 12px;
  }
  #about-photo-gallery .gallery-preview { grid-column: 1; grid-row: 1; min-height: clamp(155px, 47vw, 240px); }
  #about-photo-gallery.has-gallery-preview > div { padding: 4px 16px 0; }
  #about-photo-gallery.has-gallery-preview > a { margin: 0 16px 17px; }
}
@media (max-width: 600px), (pointer: coarse) and (max-height: 600px) {
  .assistant-dialog {
    position: fixed;
    inset: var(--assistant-viewport-top, 0) 0 auto;
    width: 100%;
    height: var(--assistant-viewport-height, 100dvh);
    margin: 0;
    border-radius: 0;
  }
  .assistant-head { padding: max(9px, env(safe-area-inset-top)) 12px 9px; }
  .assistant-messages { padding: 12px; }
  .assistant-form { padding: 9px 10px max(9px, env(safe-area-inset-bottom)); }
  .assistant-send { width: 48px; padding: 0; }
  .assistant-send span { display: none; }
}

