@font-face {
  font-family: "Askpaca Rounded";
  src: url(../shared/fonts/nunito-latin-700-normal.woff2) format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Askpaca Rounded";
  src: url(../shared/fonts/nunito-latin-800-normal.woff2) format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Askpaca Marker";
  src: url(../shared/fonts/permanent-marker-latin-400-normal.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Askpaca Marker Sub";
  src: url(../shared/fonts/caveat-latin-600-normal.woff2) format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

.askpaca-root {
  --ap-accent: #5b7c5a;
  --ap-bg: #fff;
  --ap-text: #1a1a1a;
  --ap-muted: #666;
  --ap-bubble-user: color-mix(in srgb, var(--ap-accent) 20%, var(--ap-bg));
  --ap-bubble-bot: color-mix(in srgb, var(--ap-text) 7%, var(--ap-bg));
  --ap-focus-ring: color-mix(in srgb, var(--ap-accent) 52%, transparent);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 14px;
  color: var(--ap-text);
  box-sizing: border-box;
}
.askpaca-root * { box-sizing: border-box; }

.askpaca-launcher {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 72px;
  height: 72px;
  border-radius: 0;
  border: none;
  padding: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  z-index: 2147483000;
}
.askpaca-launcher:hover { filter: brightness(1.04); }
.askpaca-launcher-peek {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: 62% 78%;
  animation: ap-launcher-wave 2.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ap-launcher-wave {
  0%, 100% { transform: rotate(0deg); }
  30% { transform: rotate(-6deg); }
  55% { transform: rotate(4deg); }
}
@media (prefers-reduced-motion: reduce) {
  .askpaca-launcher-peek { animation: none; }
}

.askpaca-panel {
  position: fixed;
  bottom: 88px;
  right: 20px;
  width: min(400px, calc(100vw - 32px));
  max-height: min(520px, calc(100vh - 120px));
  background: var(--ap-bg);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 2147483000;
}
.askpaca-clear-confirm {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  pointer-events: none;
}
.askpaca-clear-confirm[hidden] {
  display: none !important;
}
.askpaca-clear-confirm__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(27, 20, 14, 0.38);
  pointer-events: auto;
}
.askpaca-clear-confirm__card {
  position: relative;
  z-index: 1;
  width: min(100%, 300px);
  padding: 16px 18px 14px;
  border-radius: 16px;
  background: #fffaf2;
  border: 1px solid #ead9c0;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  text-align: center;
  pointer-events: auto;
}
.askpaca-clear-confirm__card.is-entering {
  opacity: 0;
  transform: translateY(10px);
}
.askpaca-clear-confirm__card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 220ms ease-out, transform 220ms ease-out;
}
.askpaca-clear-confirm__title {
  margin: 0 0 8px;
  font-family: "Askpaca Rounded", "Nunito", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ap-text);
}
.askpaca-clear-confirm__body {
  margin: 0 0 16px;
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--ap-muted);
}
.askpaca-clear-confirm__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.askpaca-clear-confirm__cancel,
.askpaca-clear-confirm__confirm {
  flex: 1 1 0;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #ead9c0;
}
.askpaca-clear-confirm__cancel {
  background: #fff;
  color: var(--ap-text);
}
.askpaca-clear-confirm__confirm {
  background: var(--ap-accent);
  border-color: color-mix(in srgb, var(--ap-accent) 80%, #000);
  color: #fff;
}
.askpaca-clear-confirm__cancel:focus-visible,
.askpaca-clear-confirm__confirm:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ap-focus-ring);
}
.askpaca-root--sheet-mobile .askpaca-clear-confirm__cancel,
.askpaca-root--sheet-mobile .askpaca-clear-confirm__confirm {
  min-height: 44px;
}
@media (prefers-reduced-motion: reduce) {
  .askpaca-clear-confirm__card.is-entering,
  .askpaca-clear-confirm__card.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
.askpaca-panel.open { display: flex; }

.askpaca-header {
  position: relative;
  padding: 8px 10px 9px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fbf7f0;
  overflow: hidden;
  container-type: inline-size;
  flex-shrink: 0;
}
.askpaca-header-text {
  flex: 1;
  min-width: 0;
}
.askpaca-header h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}
.askpaca-header h2.askpaca-brand-title {
  font-family: "Askpaca Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.askpaca-avatar {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f6eedf;
  box-shadow: inset 0 0 0 1.5px rgba(43, 33, 24, 0.5);
  overflow: hidden;
  position: relative;
  display: block;
}
.askpaca-avatar-img {
  position: absolute;
  inset: 0;
  width: 135%;
  height: 135%;
  margin: auto;
  object-fit: cover;
  object-position: 50% 46%;
  transform: translateY(4%);
  transition: opacity 0.18s ease;
  display: block;
}
.askpaca-walkline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  background: linear-gradient(90deg, rgba(94, 139, 106, 0.35) 50%, transparent 0) bottom/8px 1px repeat-x;
}
.askpaca-header.is-thinking .askpaca-walkline {
  opacity: 1;
}
.askpaca-walkline::after {
  content: '';
  position: absolute;
  bottom: 1px;
  left: -24px;
  width: 22px;
  height: 22px;
  background: url(/shared/mascot/walk-sprite-32.webp) 0 0/176px 22px no-repeat;
  animation: ap-walk-frames-header 0.8s steps(8) infinite, ap-walk-x-header 6s linear infinite;
}
@keyframes ap-walk-frames-header {
  to { background-position: -176px 0; }
}
@keyframes ap-walk-x-header {
  to { transform: translateX(calc(100cqw + 48px)); }
}
.askpaca-header-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  margin-left: auto;
}
.askpaca-clear,
.askpaca-close {
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  color: var(--ap-muted);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}
.askpaca-clear[hidden],
.askpaca-root--sheet-mobile .askpaca-clear[hidden] {
  display: none !important;
}
.askpaca-clear:focus-visible,
.askpaca-close:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px var(--ap-focus-ring),
    0 0 0 3px rgba(26, 26, 26, 0.16);
}
.askpaca-messages.is-thread-fading {
  opacity: 0;
  transition: opacity 0.2s ease;
}
.askpaca-empty-state.is-welcome-fade-in {
  animation: ap-welcome-fade-in 0.22s ease;
}
@keyframes ap-welcome-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .askpaca-messages.is-thread-fading {
    transition: none;
  }
  .askpaca-empty-state.is-welcome-fade-in {
    animation: none;
  }
}
/* Clean the stall: sweeping alpaca (CSS keyframes only) */
.askpaca-sweep-host {
  position: relative;
}
.askpaca-sweep {
  position: absolute;
  z-index: 11;
  pointer-events: none;
  overflow: hidden;
}
.askpaca-sweep-walker {
  position: absolute;
  left: -18%;
  bottom: 0;
  height: clamp(88px, 24%, 128px);
  z-index: 2;
  animation: ap-sweep-walk 2.1s cubic-bezier(0.45, 0.05, 0.55, 0.95) forwards;
}
.askpaca-sweep-flip {
  height: 100%;
  animation: ap-sweep-flip 2.1s linear forwards;
}
.askpaca-sweep-alpaca {
  display: block;
  height: 100%;
  width: auto;
  transform-origin: 62% 46%; /* near the hands on the broom */
  animation: ap-sweep-rock 0.25s ease-in-out infinite alternate;
}
.askpaca-sweep-dust {
  position: absolute;
  left: var(--x);
  bottom: var(--y);
  width: var(--w);
  height: auto;
  z-index: 1;
  opacity: 0;
  transform: translate(-50%, 0) scale(0.4) scaleX(var(--flip));
  animation: ap-sweep-dust 0.95s ease-out var(--d) forwards;
}
.askpaca-sweep-speck {
  position: absolute;
  left: var(--x);
  bottom: var(--y);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #8a7a62;
  opacity: 0;
  animation: ap-sweep-speck 0.6s ease-out var(--d) forwards;
}
.askpaca-messages.is-sweeping {
  overflow: hidden;
}
.askpaca-messages > .is-swept {
  animation: ap-sweep-push 0.55s cubic-bezier(0.3, 0.1, 0.5, 1) var(--sweep-delay, 0ms) both;
}
.askpaca-messages.is-after-sweep .askpaca-welcome,
.askpaca-messages.is-after-sweep .askpaca-starters-wrap {
  animation: ap-sweep-drop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.askpaca-messages.is-after-sweep .askpaca-starters-wrap {
  animation-delay: 60ms;
}
.askpaca-messages.is-after-sweep .askpaca-starters button {
  animation: ap-sweep-drop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.askpaca-messages.is-after-sweep .askpaca-starters button:nth-child(1) { animation-delay: 110ms; }
.askpaca-messages.is-after-sweep .askpaca-starters button:nth-child(2) { animation-delay: 160ms; }
.askpaca-messages.is-after-sweep .askpaca-starters button:nth-child(3) { animation-delay: 210ms; }
.askpaca-messages.is-after-sweep .askpaca-empty-state.is-welcome-fade-in {
  animation: none;
}
@keyframes ap-sweep-walk {
  0% { left: -18%; bottom: 0%; }
  24% { left: 48%; bottom: 4%; }
  50% { left: 4%; bottom: 34%; }
  76% { left: 52%; bottom: 62%; }
  100% { left: 112%; bottom: 84%; }
}
@keyframes ap-sweep-flip {
  0%, 23% { transform: scaleX(1); }
  25%, 49% { transform: scaleX(-1); }
  51%, 100% { transform: scaleX(1); }
}
@keyframes ap-sweep-rock {
  from { transform: rotate(-8deg); }
  to { transform: rotate(8deg); }
}
@keyframes ap-sweep-dust {
  0% { opacity: 0; transform: translate(-50%, 0) scale(0.4) scaleX(var(--flip)) rotate(0deg); }
  18% { opacity: 0.95; }
  45% { transform: translate(-50%, -10px) scale(0.95) scaleX(var(--flip)) rotate(var(--wob)); }
  70% { opacity: 0.8; transform: translate(-46%, -18px) scale(1.1) scaleX(var(--flip)) rotate(calc(var(--wob) * -1)); }
  100% { opacity: 0; transform: translate(-50%, -30px) scale(1.2) scaleX(var(--flip)) rotate(0deg); }
}
@keyframes ap-sweep-speck {
  0% { opacity: 0; transform: translate(0, 0); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)); }
}
@keyframes ap-sweep-push {
  0% { opacity: 1; transform: translateY(0); }
  40% { opacity: 0.8; transform: translateY(-28px); }
  100% { opacity: 0; transform: translateY(-68px); }
}
@keyframes ap-sweep-drop {
  0% { opacity: 0; transform: translateY(-28px); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .askpaca-sweep { display: none; }
  .askpaca-messages > .is-swept,
  .askpaca-messages.is-after-sweep .askpaca-welcome,
  .askpaca-messages.is-after-sweep .askpaca-starters-wrap,
  .askpaca-messages.is-after-sweep .askpaca-starters button { animation: none; }
}
.askpaca-closed-teaser {
  --ap-marker-red: #e04538;
  display: none;
  flex: 1 1 auto;
  flex-direction: column;
  position: relative;
  min-height: 0;
  width: 100%;
  margin: 0;
  padding: 10px 6px 28px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 16px;
  overflow: visible;
  align-items: stretch;
  justify-content: flex-start;
  text-align: left;
}
.askpaca-closed-teaser__hit {
  display: block;
  flex: 1 1 auto;
  min-height: 120px;
  width: 100%;
}
.askpaca-closed-callout {
  position: relative;
  z-index: 1;
  max-width: 100%;
  padding: 4px 10px 0;
  color: var(--ap-marker-red, #e04538);
  transform: rotate(-2.5deg);
  transform-origin: 12% 40%;
}
.askpaca-closed-callout__title {
  margin: 0;
  font-family: "Askpaca Marker", "Permanent Marker", cursive;
  font-size: clamp(1.25rem, 2.1vw, 1.7rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.01em;
}
.askpaca-closed-callout__sub {
  margin: 8px 0 0;
  font-family: "Askpaca Marker Sub", "Caveat", cursive;
  font-size: clamp(0.95rem, 1.55vw, 1.15rem);
  font-weight: 600;
  line-height: 1.2;
  transform: rotate(-1deg);
  transform-origin: 0 50%;
  opacity: 0.95;
}
.askpaca-closed-guide {
  --ap-marker-red: #e04538;
  display: none;
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 320px;
  height: min(72vh, 480px);
  max-height: 480px;
  z-index: 2147482997;
  pointer-events: none;
  overflow: visible;
}
.askpaca-closed-callout-fo {
  overflow: visible;
}
.askpaca-closed-guide .askpaca-closed-arrow__path,
.askpaca-closed-guide .askpaca-closed-arrow__wobble,
.askpaca-closed-guide .askpaca-closed-arrow__head {
  fill: none;
  stroke: var(--ap-marker-red, #e04538);
  stroke-linecap: round;
  stroke-linejoin: round;
}
.askpaca-closed-guide .askpaca-closed-arrow__wobble {
  stroke-width: 4.5;
  opacity: 0.28;
  pointer-events: none;
}
.askpaca-closed-guide .askpaca-closed-arrow__path {
  stroke-width: 4.5;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: ap-closed-arrow-draw 1.15s cubic-bezier(0.33, 1, 0.68, 1) 0.15s forwards;
}
.askpaca-closed-guide .askpaca-closed-arrow__head {
  stroke-width: 4.5;
  opacity: 0;
  animation: ap-closed-arrow-head 0.35s ease-out 0.95s forwards;
}
.askpaca-closed-arrow__path,
.askpaca-closed-arrow__wobble,
.askpaca-closed-arrow__head {
  fill: none;
  stroke: var(--ap-marker-red, #e04538);
  stroke-linecap: round;
  stroke-linejoin: round;
}
.askpaca-closed-arrow__wobble {
  stroke-width: 4.5;
  opacity: 0.28;
}
.askpaca-closed-arrow__path {
  stroke-width: 4.5;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: ap-closed-arrow-draw 1.15s cubic-bezier(0.33, 1, 0.68, 1) 0.15s forwards;
}
.askpaca-closed-arrow__head {
  stroke-width: 4.5;
  opacity: 0;
  animation: ap-closed-arrow-head 0.35s ease-out 0.95s forwards;
}
@keyframes ap-closed-arrow-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes ap-closed-arrow-head {
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .askpaca-closed-guide .askpaca-closed-arrow__path,
  .askpaca-closed-arrow__path {
    animation: none;
    stroke-dashoffset: 0;
  }
  .askpaca-closed-guide .askpaca-closed-arrow__wobble,
  .askpaca-closed-arrow__wobble {
    opacity: 0.22;
  }
  .askpaca-closed-guide .askpaca-closed-arrow__head,
  .askpaca-closed-arrow__head {
    animation: none;
    opacity: 1;
  }
}
@media (max-width: 768px) {
  .askpaca-closed-teaser,
  .askpaca-closed-guide {
    display: none !important;
  }
}
.askpaca-root--static-desktop.is-chat-closed .askpaca-closed-guide,
.askpaca-root--inline.askpaca-root--desktop-inline.is-chat-closed .askpaca-closed-guide {
  display: block;
  pointer-events: auto;
  cursor: pointer;
}
.askpaca-root.is-chat-closed .askpaca-panel {
  display: none !important;
}
.askpaca-root--static-desktop.is-chat-closed .askpaca-closed-teaser,
.askpaca-root--inline.askpaca-root--desktop-inline.is-chat-closed .askpaca-closed-teaser {
  display: flex;
}
.askpaca-launcher--embed-fab {
  display: none;
  width: 80px;
  height: 80px;
  bottom: 20px;
  right: 20px;
}
.askpaca-launcher--embed-fab .askpaca-launcher-peek {
  width: 108%;
  height: 108%;
  margin-top: -6%;
  object-fit: contain;
}
@media (min-width: 769px) {
  .askpaca-root--static-desktop.is-chat-closed .askpaca-launcher--embed-fab,
  .askpaca-root--inline.askpaca-root--desktop-inline.is-chat-closed .askpaca-launcher--embed-fab {
    display: flex;
  }
}
.ap-md p { margin: 0 0 0.45em; }
.ap-md p:last-child { margin-bottom: 0; }
.ap-md ul, .ap-md ol { margin: 0.35em 0 0.5em 1.1em; padding: 0; }
.ap-md li { margin: 0.2em 0; }
.ap-md code {
  font-size: 0.92em;
  background: color-mix(in srgb, var(--ap-text) 8%, var(--ap-bg));
  padding: 0.08em 0.35em;
  border-radius: 4px;
}
.ap-md pre {
  margin: 0.4em 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--ap-text) 8%, var(--ap-bg));
  overflow-x: auto;
  font-size: 12px;
}
.ap-md pre code { background: none; padding: 0; }
.ap-md a { color: var(--ap-accent); text-decoration: underline; }
.ap-md strong { font-weight: 700; }

.askpaca-messages {
  flex: 1;
  overflow-y: auto;
  overflow-anchor: none;
  overscroll-behavior: contain;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.askpaca-msg {
  padding: 10px 12px;
  border-radius: 12px;
  max-width: 92%;
  line-height: 1.45;
}
.askpaca-msg.user {
  align-self: flex-end;
  background: var(--ap-bubble-user);
  color: var(--ap-text);
}
.askpaca-msg.bot {
  align-self: flex-start;
  background: var(--ap-bubble-bot);
  color: var(--ap-text);
}
.askpaca-msg.is-entering {
  opacity: 0;
  transform: translateY(10px);
}
.askpaca-msg.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 220ms ease-out, transform 220ms ease-out;
}
.askpaca-typing.is-entering,
.askpaca-typing.is-visible {
  display: inline-flex;
}
@media (prefers-reduced-motion: reduce) {
  .askpaca-msg.is-entering,
  .askpaca-msg.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.askpaca-sources {
  margin-top: 8px;
  font-size: 12px;
}
.askpaca-sources a {
  color: var(--ap-accent);
  text-decoration: none;
  display: block;
  margin-top: 4px;
}
.askpaca-sources a:hover { text-decoration: underline; }

.askpaca-input-row {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #eee;
}
.askpaca-input-row input {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
}
.askpaca-input-row input:focus-visible {
  box-shadow:
    0 0 0 3px var(--ap-focus-ring),
    0 0 0 3px rgba(26, 26, 26, 0.16);
}
.askpaca-input-row button,
.askpaca-input-row .askpaca-send {
  border: none;
  background: var(--ap-accent);
  color: #fff;
  border-radius: 10px;
  padding: 0;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  flex-shrink: 0;
}
.askpaca-send-icon {
  display: block;
  pointer-events: none;
}
.askpaca-input-row button:disabled,
.askpaca-input-row .askpaca-send:disabled { opacity: .5; cursor: not-allowed; }
.askpaca-input-row button:focus-visible,
.askpaca-input-row .askpaca-send:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px var(--ap-focus-ring),
    0 0 0 3px rgba(26, 26, 26, 0.16);
}
.askpaca-root button {
  touch-action: manipulation;
}
@media (max-width: 768px) {
  .askpaca-input-row input {
    font-size: 1.0625rem;
    line-height: 1.294;
  }
  .askpaca-input-row button {
    font-size: 16px;
    min-height: 44px;
    min-width: 44px;
  }
}

/* Mascot v2 busts (launchers, typing, cards) */
.askpaca-mascot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.askpaca-mascot-img {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
  object-position: 50% 46%;
}
.askpaca-mascot--tone-match .askpaca-mascot-img {
  filter: brightness(1.08) contrast(0.96) saturate(0.9);
}
.askpaca-launcher .askpaca-mascot-img {
  width: 118%;
  height: 118%;
  object-fit: cover;
  object-position: 50% 46%;
  transform: translateY(4%);
}

@media (max-width: 480px) {
  .askpaca-root:not(.askpaca-root--inline) .askpaca-panel {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 80px;
  }
  .askpaca-root:not(.askpaca-root--inline) .askpaca-launcher--float { right: 12px; bottom: 12px; }
}

/* —— Inline embed (e.g. marketing hero) —— */
.askpaca-root--inline {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.askpaca-root--inline .askpaca-launcher--float {
  display: none !important;
}
.askpaca-root--inline .askpaca-panel {
  position: relative;
  right: auto;
  bottom: auto;
  left: auto;
  width: 100%;
  max-width: none;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: none;
  height: 100%;
  box-shadow: 0 8px 24px rgba(43, 33, 24, 0.08);
  border: 1px solid rgba(234, 217, 192, 0.9);
  border-radius: 18px;
  background: #fffaf2;
}
@media (min-width: 769px) {
  .askpaca-root--inline:not(.askpaca-root--sheet-mobile) .askpaca-panel {
    height: 100%;
    max-height: none;
  }
  .askpaca-root--static-desktop .askpaca-walkline,
  .askpaca-root--static-desktop .askpaca-header.is-thinking .askpaca-walkline {
    display: none !important;
  }
  .askpaca-root--static-desktop .askpaca-avatar-img {
    transition: none !important;
  }
  .askpaca-root--static-desktop .askpaca-walk-typing,
  .askpaca-root--static-desktop .askpaca-walkline::after,
  .askpaca-root--static-desktop .askpaca-typing--walk .askpaca-walk-typing {
    animation: none !important;
  }
  .askpaca-root--static-desktop .askpaca-typing--dots span {
    animation: none !important;
  }
}
.askpaca-root--inline .askpaca-messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}
.askpaca-root--inline .askpaca-input-row {
  flex-shrink: 0;
}
.askpaca-root--inline .askpaca-header {
  flex-shrink: 0;
}
.askpaca-root--inline .askpaca-launcher--scroll {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 2147483000;
  width: 52px;
  height: 52px;
  border: 2px solid #2b2118;
  background: #fffaf2;
}
@media (min-width: 769px) {
  .askpaca-root--inline .askpaca-launcher--scroll {
    display: none !important;
  }
}

/* Mobile bottom sheet (data-mobile="tabbar") */
.askpaca-root--sheet-mobile {
  --ap-sheet-cream: #fffaf2;
}
.askpaca-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: rgba(27, 20, 14, 0.55);
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}
.askpaca-sheet-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.askpaca-root--sheet-mobile {
  position: fixed;
  inset: 0;
  z-index: 2147482999;
  pointer-events: none;
  isolation: isolate;
}
.askpaca-root--sheet-mobile.askpaca-sheet-open {
  pointer-events: auto;
}
.askpaca-root--sheet-mobile .askpaca-launcher--float,
.askpaca-root--sheet-mobile .askpaca-launcher--scroll {
  display: none !important;
}
.askpaca-root--sheet-mobile .askpaca-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--ap-keyboard-offset, 0px);
  top: max(8dvh, env(safe-area-inset-top, 0px));
  z-index: 1;
  width: auto;
  max-width: none;
  max-height: none;
  height: auto;
  margin: 0;
  border-radius: 14px 14px 0 0;
  border: 1px solid #ead9c0;
  border-bottom: none;
  background: var(--ap-sheet-cream);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.22);
  display: none;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  pointer-events: auto;
  overflow: hidden;
}
.askpaca-root--sheet-mobile .askpaca-panel.open {
  display: flex;
  transform: translateY(0);
  animation: ap-sheet-spring-in 0.48s cubic-bezier(0.34, 1.15, 0.64, 1) forwards;
}
.askpaca-root--sheet-mobile .askpaca-panel.open.is-dragging {
  animation: none;
}
@keyframes ap-sheet-spring-in {
  0% { transform: translateY(100%); }
  72% { transform: translateY(-1.5%); }
  100% { transform: translateY(0); }
}
.askpaca-root--sheet-mobile .askpaca-header {
  padding: 8px 10px 9px;
  gap: 8px;
  background: #fbf7f0;
  border-bottom: 1px solid #eee;
}
.askpaca-root--sheet-mobile .askpaca-header h2.askpaca-brand-title {
  font-family: "Askpaca Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.askpaca-root--sheet-mobile .askpaca-avatar {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
}
.askpaca-root--sheet-mobile .askpaca-messages {
  flex: 1 1 auto;
  min-height: 0;
  background: var(--ap-sheet-cream);
  padding: 12px 20px 16px;
}
.askpaca-root--sheet-mobile .askpaca-msg {
  font-size: 1.0625rem;
  line-height: 1.294;
  border-radius: 18px;
  padding: 10px 14px;
}
.askpaca-root--sheet-mobile .askpaca-sources {
  font-size: 0.8125rem;
  line-height: 1.385;
}
.askpaca-root--sheet-mobile .askpaca-sources a {
  color: #2a5634;
}
.askpaca-root--sheet-mobile .askpaca-input-row {
  background: var(--ap-sheet-cream);
  border-top-color: #ead9c0;
  padding-bottom: max(10px, env(safe-area-inset-bottom, 0px));
  padding-left: max(12px, env(safe-area-inset-left, 0px));
  padding-right: max(12px, env(safe-area-inset-right, 0px));
}
.askpaca-root--sheet-mobile .askpaca-msg.bot {
  background: var(--ap-bubble-bot);
}
.askpaca-root--sheet-mobile .askpaca-msg.user {
  background: var(--ap-bubble-user);
}
.askpaca-sheet-handle {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  padding: 10px 0 4px;
  cursor: grab;
  touch-action: none;
}
.askpaca-sheet-handle span {
  display: block;
  width: 36px;
  height: 5px;
  border-radius: 999px;
  background: rgba(43, 33, 24, 0.22);
}
.askpaca-root--sheet-mobile .askpaca-header {
  cursor: grab;
  touch-action: none;
}
.askpaca-root--sheet-mobile .askpaca-header .askpaca-clear,
.askpaca-root--sheet-mobile .askpaca-header .askpaca-close {
  touch-action: manipulation;
  cursor: pointer;
}
.askpaca-root--sheet-mobile .askpaca-clear,
.askpaca-root--sheet-mobile .askpaca-close {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.askpaca-root--sheet-mobile .askpaca-input-row input,
.askpaca-root--sheet-mobile .askpaca-input-row button {
  min-height: 44px;
}
html.askpaca-sheet-active,
body.askpaca-sheet-active {
  overflow: hidden;
  height: 100%;
  touch-action: none;
}
body.askpaca-sheet-active {
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
}
@media (prefers-reduced-motion: reduce) {
  .askpaca-root--sheet-mobile .askpaca-panel {
    transition: none;
    animation: none !important;
  }
  .askpaca-root--sheet-mobile .askpaca-panel.open {
    animation: none !important;
  }
  .askpaca-sheet-backdrop {
    transition: none;
  }
}

/* Typing indicators */
.askpaca-typing {
  display: inline-flex;
  align-items: flex-end;
  gap: 5px;
  padding: 8px 12px;
  border-radius: 14px;
  background: #f3efe8;
  min-height: 36px;
}
.askpaca-typing--dots span {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 2px 4px;
  border-radius: 50%;
  background: #2b2724;
  opacity: 0.35;
  animation: ap-dot 1s infinite ease-in-out;
}
.askpaca-typing--dots span:nth-child(2) { animation-delay: 0.15s; }
.askpaca-typing--dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes ap-dot {
  0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}
.askpaca-typing--alpaca .askpaca-typing-mascot {
  width: 32px;
  height: 32px;
  display: inline-flex;
  animation: ap-typing-bounce 0.85s ease-in-out infinite;
}
.askpaca-typing--alpaca .askpaca-mascot-img {
  width: 32px;
  height: 32px;
}
@keyframes ap-typing-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.askpaca-typing--walk {
  width: 150px;
  min-height: 40px;
  position: relative;
  padding-bottom: 10px;
}
.askpaca-typing--walk::before {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  height: 1px;
  background: linear-gradient(90deg, rgba(43, 33, 24, 0.35) 50%, transparent 0) 0 0/6px 1px repeat-x;
}
.askpaca-walk-typing {
  position: absolute;
  bottom: 8px;
  left: 10px;
  width: 28px;
  height: 28px;
  background: url(/shared/mascot/walk-sprite-32.webp) 0 0/224px 28px no-repeat;
  animation: ap-walk-frames-typing 0.8s steps(8) infinite, ap-walk-pace 3s ease-in-out infinite alternate;
}
@keyframes ap-walk-frames-typing {
  to { background-position: -224px 0; }
}
@keyframes ap-walk-pace {
  to { transform: translateX(98px); }
}

/* Welcome card + starters */
.askpaca-empty-state {
  align-self: stretch;
  margin: 2px 0 10px;
}
.askpaca-welcome {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: end;
  gap: 14px;
  margin: 0 0 12px;
  padding: 16px 16px 0;
  background: #fbf5ea;
  border: 1px solid rgba(43, 33, 24, 0.1);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}
.askpaca-welcome::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(43, 33, 24, 0.35) 50%, transparent 0) 0 0/6px 1px repeat-x;
}
.askpaca-welcome-art {
  width: 96px;
  height: auto;
  display: block;
  margin-bottom: -2px;
}
.askpaca-welcome-copy {
  padding-bottom: 16px;
}
.askpaca-welcome h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  color: #2b2724;
}
.askpaca-welcome p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #5a524b;
}
.askpaca-welcome.is-collapsing {
  animation: ap-welcome-collapse 0.2s ease forwards;
}
@keyframes ap-welcome-collapse {
  to {
    opacity: 0;
    max-height: 0;
    padding: 0;
    margin: 0;
    border-width: 0;
  }
}
.askpaca-starters-wrap {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #ead9c0;
  background: linear-gradient(180deg, #faf6ee 0%, #fff 100%);
}
.askpaca-starters-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a7563;
}
.askpaca-starters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.askpaca-starters button {
  border: 1px solid #d9c9b4;
  background: #fff;
  color: #4a3b30;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 1px 0 rgba(80, 55, 20, 0.06);
}
.askpaca-starters button:hover { background: #f6efe7; border-color: #c9b59a; }
.askpaca-starters button:focus-visible { outline: 2px solid #5b7c5a; outline-offset: 2px; }
@media (max-width: 420px) {
  .askpaca-welcome { grid-template-columns: 72px 1fr; }
  .askpaca-welcome-art { width: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .askpaca-walkline::after,
  .askpaca-walk-typing,
  .askpaca-typing--alpaca .askpaca-typing-mascot,
  .askpaca-typing--dots span {
    animation: none !important;
  }
  .askpaca-walkline::after {
    left: auto;
    right: 12px;
  }
  .askpaca-welcome.is-collapsing {
    animation: none;
    display: none;
  }
}
