/* Presley's AI Helper widget — separate from the site's existing stylesheet. */
#pdk-ai-launch {
  position: fixed; right: 22px; bottom: 22px; z-index: 9998;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 19px; max-width: calc(100vw - 30px);
  border: 2px solid #286415; border-radius: 999px;
  color: #183412; background: #b7ee68;
  font: 700 15px/1.2 system-ui, -apple-system, Segoe UI, sans-serif;
  letter-spacing: normal; text-decoration: none;
  cursor: pointer; box-shadow: 0 8px 25px rgba(20,52,15,.24);
}
#pdk-ai-launch:hover, #pdk-ai-launch:focus-visible { background: #d0fa91; }
#pdk-ai-launch:focus-visible, #pdk-ai-close:focus-visible { outline: 3px solid #235cb9; outline-offset: 3px; }
#pdk-ai-launch svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
#pdk-ai-panel[hidden] { display: none !important; }
#pdk-ai-panel {
  position: fixed; right: 18px; bottom: 86px; z-index: 9999;
  width: min(410px, calc(100vw - 26px)); height: min(650px, calc(100dvh - 106px));
  background: #fff; border: 2px solid #78af2b; border-radius: 19px;
  box-shadow: 0 18px 55px rgba(14,42,13,.25);
  overflow: hidden; display: flex; flex-direction: column;
}
#pdk-ai-panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #b7ee68; color: #173311; padding: 9px 12px 9px 16px;
  font: 700 15px/1.25 system-ui, -apple-system, Segoe UI, sans-serif;
}
#pdk-ai-close {
  width: 34px; height: 34px; display: grid; place-items: center;
  padding: 0; background: #f5ffe7; color: #173311; border: 1px solid #649c2c;
  border-radius: 50%; font: 700 22px/1 system-ui, sans-serif; cursor: pointer;
}
#pdk-ai-frame { display: block; flex: 1 1 auto; width: 100%; min-height: 0; border: 0; background: #f2ffe5; }
#pdk-ai-open-new { display:block; padding: 8px 12px; color: #224b1d; background: #f5ffe9;
  font: 600 12px/1.25 system-ui, sans-serif; text-align: center; }
@media (max-width: 560px) {
  #pdk-ai-launch { right: 13px; bottom: 13px; padding: 12px 14px; }
  #pdk-ai-panel { right: 7px; bottom: 70px; width: calc(100vw - 14px); height: min(650px, calc(100dvh - 84px)); }
}
@media (prefers-reduced-motion: no-preference) {
  #pdk-ai-panel { animation: pdk-appear .18s ease-out; }
  @keyframes pdk-appear { from { opacity:0; transform: translateY(8px); } to { opacity:1; transform:none; } }
}

/* Auto-visible small chat welcome above the bottom-right launcher. */
#pdk-ai-welcome[hidden] { display: none !important; }
#pdk-ai-welcome {
  position: fixed; right: 20px; bottom: 88px; z-index: 9997;
  width: min(325px, calc(100vw - 28px));
  padding: 18px 17px 16px;
  border: 2px solid #83c132; border-radius: 18px;
  background: #f7ffed; color: #173311;
  box-shadow: 0 12px 35px rgba(23,55,11,.20);
  font: 400 14px/1.45 system-ui, -apple-system, Segoe UI, sans-serif;
}
#pdk-ai-welcome strong { display: block; margin: 3px 22px 6px 0; font-size: 17px; }
#pdk-ai-welcome p { margin: 0 0 11px; }
#pdk-ai-welcome .pdk-ai-welcome-eyebrow {
  color: #467822; font-size: 11px; text-transform: uppercase;
  letter-spacing: .08em; font-weight: 800;
}
#pdk-ai-welcome #pdk-ai-welcome-close {
  position: absolute; top: 7px; right: 8px;
  width: 30px; height: 30px; padding: 0; border: 0;
  background: transparent; color: #325a1b;
  border-radius: 8px; font: 24px/1 system-ui, sans-serif;
  cursor: pointer;
}
#pdk-ai-welcome #pdk-ai-welcome-open {
  border: 0; background: #80be33; color: #173311;
  border-radius: 9px; padding: 9px 12px;
  font: 700 13px/1.2 system-ui, sans-serif;
  cursor: pointer;
}
#pdk-ai-welcome button:focus-visible { outline: 3px solid #235cb9; outline-offset: 2px; }
@media (max-width: 560px) {
  #pdk-ai-welcome { right: 9px; bottom: 70px; width: min(310px, calc(100vw - 18px)); }
}
@media (prefers-reduced-motion: no-preference) {
  #pdk-ai-welcome { animation: pdk-appear .22s ease-out; }
}
