/* =========================================================
   Productside Hugo Chat — Clean Rebuild v2.4
   Fully isolated: .ps-hugo-chat prevents WP/Elementor leakage
========================================================= */

.ps-hugo-chat,
.ps-hugo-chat *,
.ps-hugo-chat *::before,
.ps-hugo-chat *::after {
  box-sizing: border-box;
}

.ps-hugo-chat {
  --green:        #00e676;
  --green-dark:   #00bf63;
  --green-soft:   #eafff3;
  --black:        #080808;
  --text:         #1f2937;
  --muted:        #667085;
  --border:       #e2e8e4;
  --border-green: rgba(0,230,118,0.35);
  --shadow:       0 24px 80px rgba(15,23,42,0.18);
  --radius:          24px;
  --btn-radius:      12px;
  --launcher-bg:     transparent;
  --launcher-size:   72px;
  --launcher-mobile: 72px;

  position: fixed;
  right: var(--widget-side, 20px);
  bottom: var(--widget-bottom, 20px);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;

  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  color: var(--text);
  line-height: 1.4;
}
.psc-position-left.ps-hugo-chat { right: auto; left: var(--widget-side, 20px); align-items: flex-start; }

.ps-hugo-chat img, .ps-hugo-chat svg { display: block; max-width: 100%; }
.ps-hugo-chat button, .ps-hugo-chat input, .ps-hugo-chat textarea { font: inherit; color: inherit; }
.ps-hugo-chat button { appearance: none; -webkit-appearance: none; border: 0; background: transparent; cursor: pointer; }
.ps-hugo-chat ul { list-style: none; }
.ps-hugo-chat h2, .ps-hugo-chat h3, .ps-hugo-chat h4 { font-weight: bold; }

/* ── Panel ──────────────────────────────────────────────── */
.ps-hugo-chat__panel {
  width: min(420px, calc(100vw - 40px));
  height: min(600px, calc(100dvh - 40px));
  display: grid;
  grid-template-rows: 64px minmax(0,1fr) 34px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: psHugoIn 240ms cubic-bezier(0.16,1,0.3,1) both;
  transform-origin: bottom right;
}

@keyframes psHugoIn {
  from { opacity: 0; transform: scale(0.92) translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* ── Header ─────────────────────────────────────────────── */
.ps-hugo-chat__header {
  height: 64px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  background: #111827;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ps-hugo-chat__profile {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: hidden;
}

.ps-hugo-chat__avatar {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px;
  max-width: 40px;
  flex: 0 0 40px;
  object-fit: contain;
  border-radius: 999px;
  background: transparent;
  border: 2px solid var(--green);
  box-shadow: none;
}

.ps-hugo-chat__profile-text { min-width: 0; overflow: hidden; }

.ps-hugo-chat__title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
}

.ps-hugo-chat__title {
  margin: 0 !important;
  padding: 0 !important;
  font-family: inherit !important;
  font-size: 18px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ps-hugo-chat__badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 3px 9px !important;
  border-radius: 999px !important;
  background: rgba(0,230,118,0.18) !important;
  color: var(--green) !important;
  font-size: 11px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  white-space: nowrap;
  letter-spacing: 0;
}

.ps-hugo-chat__subtitle {
  margin: 4px 0 0 !important;
  padding: 0 !important;
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 0;
}
.ps-hugo-chat__online-dot {
  display: inline-block;
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  margin-right: 6px;
}

/* ── Controls ───────────────────────────────────────────── */
.ps-hugo-chat__controls {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
}

.ps-hugo-chat__control {
  width: 34px;
  height: 34px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: rgba(255,255,255,0.92) !important;
  font-size: 22px !important;
  line-height: 1;
  background: transparent !important;
  flex-shrink: 0;
}
.ps-hugo-chat__control svg { display: block !important; }
.ps-hugo-chat__control:hover { background: rgba(255,255,255,0.15) !important; }

.ps-hugo-chat__more-wrap { position: relative; }

.ps-hugo-chat__more-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15,23,42,0.12);
  z-index: 10;
  overflow: hidden;
}
.ps-hugo-chat__more-menu[hidden] { display: none; }

.ps-hugo-chat__menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  color: #374151;
  text-align: left;
}
.ps-hugo-chat__menu-item:hover { background: #f9fafb; }

/* ── Body ───────────────────────────────────────────────── */
.ps-hugo-chat__body {
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
}

/* ── Main column ────────────────────────────────────────── */
.ps-hugo-chat__main {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #fff;
}

/* Gate scroll wrapper */
.ps-hugo-chat__scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 22px 28px;
}
.ps-hugo-chat__scroll::-webkit-scrollbar { width: 6px; }
.ps-hugo-chat__scroll::-webkit-scrollbar-thumb {
  background: rgba(102,112,133,0.28);
  border-radius: 999px;
}

/* Chat area */
.ps-hugo-chat__chat-area {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── Lead / Gate form ───────────────────────────────────── */
.ps-hugo-chat__lead {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.ps-hugo-chat__lead-avatar {
  width: 72px !important;
  height: 72px !important;
  margin: 0 auto 14px;
  object-fit: cover;
  border-radius: 999px;
  background: var(--green-soft);
  border: 1px solid var(--border-green);
}

.ps-hugo-chat__lead h3 {
  margin: 0 0 12px !important;
  padding: 0 !important;
  text-align: center;
  color: var(--black);
  font-size: 24px !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
  letter-spacing: -0.04em;
}

.ps-hugo-chat__lead p {
  margin: 0 0 22px !important;
  padding: 0 !important;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
}

.ps-hugo-chat__form-error {
  margin: -10px 0 14px !important;
  padding: 10px 14px !important;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #dc2626;
  font-size: 14px;
  text-align: center;
}

.ps-hugo-chat__form { display: grid; gap: 16px; }

.ps-hugo-chat__form label { display: grid; gap: 8px; margin: 0; }

.ps-hugo-chat__form label span { color: #111827; font-size: 14px; font-weight: 700; }

.ps-hugo-chat__form input {
  width: 100%;
  height: 52px;
  margin: 0 !important;
  padding: 0 15px !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #111827 !important;
  font-size: 16px !important;
  font-weight: 500;
  box-shadow: none !important;
  outline: none;
}
.ps-hugo-chat__form input::placeholder { color: #a0a7b2; }
.ps-hugo-chat__form input:focus {
  border-color: rgba(0,230,118,0.75) !important;
  box-shadow: 0 0 0 4px rgba(0,230,118,0.1) !important;
}

.ps-hugo-chat__form button {
  width: 100%;
  height: 56px;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--btn-radius);
  background: var(--green);
  color: var(--black);
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 16px 34px rgba(0,230,118,0.26);
}
.ps-hugo-chat__form button:hover { background: #00d96f; }

/* ── Messages ───────────────────────────────────────────── */
.ps-hugo-chat__messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ps-hugo-chat__messages::-webkit-scrollbar { width: 6px; }
.ps-hugo-chat__messages::-webkit-scrollbar-thumb {
  background: rgba(102,112,133,0.28);
  border-radius: 999px;
}

.ps-hugo-chat__msg-row { display: flex; align-items: flex-end; gap: 8px; }
.ps-hugo-chat__msg-row--user  { justify-content: flex-end; }
.ps-hugo-chat__msg-row--agent { justify-content: flex-start; }

.ps-hugo-chat__msg-avatar {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--green-soft);
}

.ps-hugo-chat__msg {
  max-width: 75%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.55;
}
.ps-hugo-chat__msg p { margin: 0 0 8px !important; padding: 0 !important; }
.ps-hugo-chat__msg p:last-child { margin-bottom: 0 !important; }

.ps-hugo-chat__msg--user  { background: var(--green); color: var(--black); border-bottom-right-radius: 4px; }
.ps-hugo-chat__msg--bot   { background: #f1f5f9; color: var(--text); border-bottom-left-radius: 4px; }
.ps-hugo-chat__msg--human { background: #eff6ff; color: var(--text); border-bottom-left-radius: 4px; }

.ps-hugo-chat__agent-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 4px;
  padding-left: 2px;
}

/* Typing */
.ps-hugo-chat__typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 14px 18px;
  background: #f1f5f9;
  border-radius: 18px 18px 18px 4px;
}
.ps-hugo-chat__typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #94a3b8;
  animation: psHugoDot 1.2s ease-in-out infinite;
}
.ps-hugo-chat__typing span:nth-child(2) { animation-delay: 0.2s; }
.ps-hugo-chat__typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes psHugoDot {
  0%,80%,100% { transform: scale(0.7); opacity: 0.5; }
  40%         { transform: scale(1);   opacity: 1; }
}

/* ── Quick actions ──────────────────────────────────────── */
.ps-hugo-chat__quick-actions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 20px 12px;
}

.ps-hugo-chat__quick-action {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border: 1px solid var(--border-green);
  border-radius: var(--btn-radius);
  background: #fff;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.ps-hugo-chat__quick-action:hover { background: var(--green-soft); }

/* ── Escalation ─────────────────────────────────────────── */
.ps-hugo-chat__escalation {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--green-soft);
  border-top: 1px solid var(--border-green);
  font-size: 14px;
}
.ps-hugo-chat__escalation-text { font-weight: 700; color: var(--black); }
.ps-hugo-chat__escalation-sub  { color: var(--muted); margin-top: 3px; }

/* ── Input area ─────────────────────────────────────────── */
.ps-hugo-chat__input-area {
  flex: 0 0 auto;
  padding: 12px 16px 14px;
  border-top: 1px solid var(--border);
  background: #fff;
}

.ps-hugo-chat__input-box {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 8px 10px 8px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

.ps-hugo-chat__textarea {
  flex: 1;
  resize: none;
  border: 0 !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  min-height: 24px;
  max-height: 140px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  overflow-y: auto;
}
.ps-hugo-chat__textarea::placeholder { color: #a0a7b2; }

.ps-hugo-chat__send {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green);
  color: #000;
}
.ps-hugo-chat__send:disabled { opacity: 0.4; cursor: not-allowed; }
.ps-hugo-chat__send:not(:disabled):hover { background: var(--green-dark); }

.ps-hugo-chat__disclaimer {
  margin: 8px 0 0 !important;
  padding: 0 !important;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.ps-hugo-chat__new-chat-row {
  display: flex;
  justify-content: center;
  padding-top: 4px;
}
.ps-hugo-chat__new-chat-link {
  font-size: 12px !important;
  color: var(--muted) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
  background: transparent !important;
  border: none !important;
  cursor: pointer;
  padding: 2px 4px;
  font-family: inherit !important;
}
.ps-hugo-chat__new-chat-link:hover { color: var(--green-dark) !important; }

/* ── Sidebar ────────────────────────────────────────────── */
.ps-hugo-chat__side {
  display: none !important;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  overflow-y: auto;
  padding: 22px 24px 18px;
  background:
    radial-gradient(circle at top right, rgba(0,230,118,0.18), transparent 36%),
    linear-gradient(180deg, #f2fff8 0%, #eafff3 100%);
  border-left: 1px solid rgba(0,230,118,0.24);
  display: flex;
  flex-direction: column;
}

.ps-hugo-chat__mascot {
  width: 168px !important;
  height: 168px !important;
  max-width: 168px !important;
  flex-shrink: 0;
  margin: 0 auto 14px;
  object-fit: contain;
  filter: drop-shadow(0 14px 20px rgba(15,23,42,0.11));
}

.ps-hugo-chat__side h3 {
  margin: 0 0 8px !important;
  padding: 0 !important;
  text-align: center;
  color: var(--black);
  font-size: 22px !important;
  line-height: 1.1 !important;
  font-weight: 800 !important;
  letter-spacing: -0.04em;
}

.ps-hugo-chat__side p {
  max-width: 240px;
  margin: 0 auto 18px !important;
  padding: 0 !important;
  text-align: center;
  color: #334155;
  font-size: 14px;
  line-height: 1.42;
}

.ps-hugo-chat__side hr {
  height: 1px;
  margin: 0 0 18px;
  border: 0;
  background: rgba(15,23,42,0.16);
  flex-shrink: 0;
}

.ps-hugo-chat__side h4 {
  margin: 0 0 12px !important;
  padding: 0 !important;
  color: var(--black);
  font-size: 16px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
}

.ps-hugo-chat__side ul {
  display: grid;
  gap: 10px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.ps-hugo-chat__side li {
  position: relative;
  margin: 0 !important;
  padding: 0 0 0 26px !important;
  color: #1f2937;
  font-size: 14px;
  line-height: 1.28;
}

.ps-hugo-chat__side li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--green-dark);
  border-radius: 999px;
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 900;
}

.ps-hugo-chat__new-chat-btn {
  display: block;
  width: 100%;
  margin-top: auto;
  padding: 13px 0;
  border-radius: var(--btn-radius);
  border: 0;
  background: var(--green);
  color: var(--black);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 10px 24px rgba(0,230,118,0.25);
}
.ps-hugo-chat__new-chat-btn:hover { background: var(--green-dark); }

/* ── Footer ─────────────────────────────────────────────── */
.ps-hugo-chat__footer {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-top: 1px solid #edf2ef;
  color: #b0b8c4;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}
.ps-hugo-chat__footer strong { display: inline !important; margin: 0 !important; color: #6b7280; font-weight: 600; }

/* ── Greeter bubble ─────────────────────────────────────── */
.ps-hugo-chat__greeter {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 38px 14px 18px;
  box-shadow: 0 8px 28px rgba(15,23,42,0.12);
  font-size: 15px;
  color: var(--text);
  max-width: 240px;
  cursor: pointer;
}
.ps-hugo-chat__greeter p { margin: 0 !important; padding: 0 !important; }
.ps-hugo-chat__greeter::after {
  content: "";
  position: absolute;
  bottom: -8px;
  right: 28px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transform: rotate(45deg);
}

.ps-hugo-chat__greeter-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  color: var(--muted);
  background: transparent;
  z-index: 1;
}
.ps-hugo-chat__greeter-close:hover { background: #f1f5f9; }

/* ── Launcher ───────────────────────────────────────────── */
.ps-hugo-chat__launcher {
  position: relative;
  width: var(--launcher-size);
  height: var(--launcher-size);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--launcher-bg);
  overflow: hidden;
  box-shadow: none;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.ps-hugo-chat__launcher:hover { transform: scale(1.04); }

.ps-hugo-chat__launcher-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}
.ps-hugo-chat__launcher-fallback { font-size: 120px; line-height: 1; }

.ps-hugo-chat__unread-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid #fff;
}

/* ── State ──────────────────────────────────────────────── */
.ps-hugo-chat--closed .ps-hugo-chat__panel                   { display: none; }
.ps-hugo-chat:not(.ps-hugo-chat--closed) .ps-hugo-chat__launcher { display: none; }
.ps-hugo-chat:not(.ps-hugo-chat--closed) .ps-hugo-chat__greeter  { display: none !important; }

/* Fullscreen */
.ps-hugo-chat--fullscreen .ps-hugo-chat__panel {
  position: fixed;
  inset: 12px;
  width: auto;
  height: auto;
  border-radius: 16px;
  animation: none;
}

/* ── Short desktop screens ──────────────────────────────── */
@media (max-height: 760px) and (min-width: 769px) {
  .ps-hugo-chat__panel {
    height: calc(100dvh - 32px);
    grid-template-rows: 56px minmax(0,1fr) 30px;
  }
  .ps-hugo-chat__header { height: 56px; padding: 8px 14px; }
  .ps-hugo-chat__avatar { width: 34px !important; height: 34px !important; min-width: 34px; max-width: 34px; flex: 0 0 34px; }
  .ps-hugo-chat__title  { font-size: 15px !important; }
  .ps-hugo-chat__subtitle { font-size: 11px; }
  .ps-hugo-chat__scroll   { padding: 16px 22px; }
  .ps-hugo-chat__lead-avatar { width: 60px !important; height: 60px !important; margin-bottom: 10px; }
  .ps-hugo-chat__lead h3  { font-size: 21px !important; }
  .ps-hugo-chat__lead p   { margin-bottom: 16px !important; font-size: 14px; }
  .ps-hugo-chat__form     { gap: 12px; }
  .ps-hugo-chat__form input  { height: 46px; }
  .ps-hugo-chat__form button { height: 50px; }
}

/* ── Mobile ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .ps-hugo-chat { right: 16px; bottom: 16px; }
  .ps-hugo-chat:not(.ps-hugo-chat--closed) {
    position: fixed;
    inset: 0;
    z-index: 999999;
  }

  .ps-hugo-chat__panel {
    width: 100%;
    height: 100%;
    max-height: -webkit-fill-available;
    grid-template-rows: 60px minmax(0,1fr) 32px;
    border: 0;
    border-radius: 0;
    animation: none;
  }
  .ps-hugo-chat__header    { height: 60px; padding: 10px 14px; }
  .ps-hugo-chat__footer    { height: 32px; }
  .ps-hugo-chat__avatar    { width: 36px !important; height: 36px !important; min-width: 36px; flex: 0 0 36px; }
  .ps-hugo-chat__title     { font-size: 16px !important; }
  .ps-hugo-chat__badge     { font-size: 10px !important; padding: 3px 8px !important; }
  .ps-hugo-chat__subtitle  { font-size: 12px; }
  .ps-hugo-chat__control   { width: 32px; height: 32px; }
  .ps-hugo-chat__scroll    { padding: 18px 16px; }
  .ps-hugo-chat__lead      { max-width: 100%; }
  .ps-hugo-chat__lead-avatar { width: 64px !important; height: 64px !important; }
  .ps-hugo-chat__lead h3   { font-size: 22px !important; }
  .ps-hugo-chat__form input { height: 48px; font-size: 16px !important; }
  .ps-hugo-chat__form button { height: 52px; font-size: 16px; }
  .ps-hugo-chat__messages  { padding: 14px 14px; }
  .ps-hugo-chat__input-area { padding: 10px 12px 12px; }
  .ps-hugo-chat__quick-actions { padding: 0 14px 10px; gap: 6px; }
  .ps-hugo-chat__quick-action  { font-size: 12px; padding: 7px 12px; }

  /* Launcher shrinks to mobile size on small screens */
  .ps-hugo-chat__launcher {
    width:  var(--launcher-mobile);
    height: var(--launcher-mobile);
  }
  .ps-hugo-chat__launcher-fallback { font-size: 36px; }
}

@media (max-width: 480px) {
  .ps-hugo-chat__panel    { grid-template-rows: 58px minmax(0,1fr) 30px; }
  .ps-hugo-chat__header   { height: 58px; padding: 8px 12px; }
  .ps-hugo-chat__profile  { gap: 10px; }
  .ps-hugo-chat__avatar   { width: 34px !important; height: 34px !important; min-width: 34px; flex: 0 0 34px; }
  .ps-hugo-chat__title    { font-size: 15px !important; }
  .ps-hugo-chat__subtitle { font-size: 11px; }
  .ps-hugo-chat__badge    { display: none !important; }
  .ps-hugo-chat__control  { width: 30px; height: 30px; }
  .ps-hugo-chat__scroll   { padding: 16px 14px; }
  .ps-hugo-chat__lead h3  { font-size: 21px !important; }
}

/* ── Image visibility toggles ────────────────────────────── */
.ps-hugo-chat--no-header-avatar .ps-hugo-chat__avatar      { display: none !important; }
.ps-hugo-chat--no-lead-avatar   .ps-hugo-chat__lead-avatar  { display: none !important; }
.ps-hugo-chat--no-mascot        .ps-hugo-chat__mascot       { display: none !important; }
.ps-hugo-chat--no-msg-avatars   .ps-hugo-chat__msg-avatar   { display: none !important; }
