/* PPS Advisor Chat + Dog Preview + 3D Animations v2.7.8 */

/* ── 3D Fly-In: Advisor-Badge kommt dem User entgegen ───────────────── */
@keyframes pps-advisor-flyin {
    0%   { transform: perspective(600px) translateZ(-120px) scale(0.6); opacity: 0; }
    60%  { transform: perspective(600px) translateZ(18px)  scale(1.06); opacity: 1; }
    80%  { transform: perspective(600px) translateZ(-6px)  scale(0.98); }
    100% { transform: perspective(600px) translateZ(0)     scale(1);    opacity: 1; }
}

/* ── Pulse: Advisor "spricht" – wächst kurz ─────────────────────────── */
@keyframes pps-advisor-pulse {
    0%   { transform: perspective(600px) translateZ(0)  scale(1);    }
    30%  { transform: perspective(600px) translateZ(22px) scale(1.10); }
    60%  { transform: perspective(600px) translateZ(8px)  scale(1.04); }
    100% { transform: perspective(600px) translateZ(0)  scale(1);    }
}

/* ── Personaldog extra: Hund "springt" energischer ──────────────────── */
@keyframes pps-dog-bounce {
    0%   { transform: perspective(600px) translateZ(0)   scale(1)    rotate(0deg);   }
    20%  { transform: perspective(600px) translateZ(28px) scale(1.14) rotate(-3deg);  }
    45%  { transform: perspective(600px) translateZ(10px) scale(1.06) rotate(2deg);   }
    70%  { transform: perspective(600px) translateZ(18px) scale(1.10) rotate(-1deg);  }
    100% { transform: perspective(600px) translateZ(0)   scale(1)    rotate(0deg);   }
}

/* ── Neue Nachricht: Chat-Panel kurz aufleuchten ─────────────────────── */
@keyframes pps-chat-newmsg {
    0%   { box-shadow: 0 16px 60px rgba(0,0,0,0.55); }
    40%  { box-shadow: 0 16px 60px rgba(95,211,255,0.35), 0 0 0 2px rgba(95,211,255,0.4); }
    100% { box-shadow: 0 16px 60px rgba(0,0,0,0.55); }
}

/* ── Fly-In + Speak: Animationen NUR auf transform/opacity, NIE auf Dimensionen ── */
/* WICHTIG: width/height/flex sind nicht animated – keine Layout-Shifts */
.pps-advisor-badge {
    animation: pps-advisor-flyin 0.55s cubic-bezier(0.22,1,0.36,1) both;
    /* Kein preserve-3d / will-change: verhindert Stacking-Context-Probleme */
}

.pps-advisor-badge.pps-speaking {
    animation: pps-advisor-pulse 0.55s cubic-bezier(0.22,1,0.36,1) both;
}

.pps-advisor-badge.pps-speaking-dog {
    animation: pps-dog-bounce 0.65s cubic-bezier(0.22,1,0.36,1) both;
}

/* Hover: Avatar-Glow ohne Layout-Änderung */
.pps-advisor-badge:hover .pps-advisor-avatar {
    transform: scale(1.06);
    transition: transform 200ms ease;
}

/* Chat-Panel bei neuer Nachricht */

/* Chat-Panel bei neuer Nachricht */
.pps-chat-panel.pps-new-message {
    animation: pps-chat-newmsg 0.5s ease both;
}

/* ── Proaktive Preview-Bubble ────────────────────────────────────────── */
.pps-preview-bubble {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(10,18,34,0.97) 0%, rgba(20,50,100,0.96) 100%);
    border: 1px solid rgba(95,211,255,0.40);
    border-radius: 14px;
    padding: 10px 14px;
    font-size: 12px;
    color: #e0f4ff;
    font-family: Inter, sans-serif;
    box-shadow: 0 8px 32px rgba(0,0,0,0.50);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99997;
    animation: pps-advisor-flyin 0.45s cubic-bezier(0.22,1,0.36,1) both;
    line-height: 1.5;
}
.pps-preview-bubble::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 22px;
    width: 12px;
    height: 12px;
    background: rgba(20,50,100,0.96);
    border-right: 1px solid rgba(95,211,255,0.40);
    border-bottom: 1px solid rgba(95,211,255,0.40);
    transform: rotate(45deg);
}
.pps-preview-bubble-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.pps-bubble-yes, .pps-bubble-no {
    flex: 1;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid;
    transition: all 150ms ease;
}
.pps-bubble-yes {
    background: rgba(0,220,130,0.14);
    border-color: rgba(0,220,130,0.40);
    color: #00dc82;
}
.pps-bubble-yes:hover { background: rgba(0,220,130,0.25); color: #fff; }
.pps-bubble-no {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.20);
    color: rgba(255,255,255,0.55);
}
.pps-bubble-no:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ── Chat-Open-Button (klein, inline in .pps-advisor-info) ──────────── */
.pps-chat-open-btn {
    display: inline-block;
    margin-top: 4px;
    padding: 3px 8px;
    background: rgba(95,211,255,0.12);
    border: 1px solid rgba(95,211,255,0.35);
    border-radius: 8px;
    color: #5FD3FF;
    font-size: 10.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 180ms ease;
    white-space: nowrap;
    writing-mode: horizontal-tb !important;
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pps-chat-open-btn:hover {
    background: linear-gradient(135deg, rgba(95,211,255,0.28) 0%, rgba(0,100,220,0.22) 100%);
    color: #ffffff;
    transform: translateY(-1px);
}

/* ── Produktkarten-Buttons ──────────────────────────────────────────── */
.pps-card-ask-btn,
.pps-card-preview-btn {
    flex: 1;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 160ms ease;
    text-align: center;
    border: 1px solid;
    white-space: nowrap;
}
.pps-card-ask-btn {
    background: rgba(95,211,255,0.12);
    border-color: rgba(95,211,255,0.35);
    color: #5FD3FF;
}
.pps-card-ask-btn:hover {
    background: rgba(95,211,255,0.22);
    color: #ffffff;
}
.pps-card-preview-btn {
    background: rgba(0,220,130,0.10);
    border-color: rgba(0,220,130,0.35);
    color: #00dc82;
}
.pps-card-preview-btn:hover {
    background: rgba(0,220,130,0.20);
    color: #ffffff;
}
.pps-card-preview-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.pps-card-action-row {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

/* ── Advisor-Badge auf Produktkarten ────────────────────────────────── */
.pps-card-advisor-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 10.5px;
    font-weight: 700;
    margin-bottom: 6px;
}
.pps-badge-yes    { background: rgba(0,220,130,0.15); color: #00dc82; border: 1px solid rgba(0,220,130,0.35); }
.pps-badge-maybe  { background: rgba(255,200,0,0.12);  color: #ffd700; border: 1px solid rgba(255,200,0,0.35); }
.pps-badge-no     { background: rgba(255,107,107,0.12); color: #FF6B6B; border: 1px solid rgba(255,107,107,0.35); }

/* ── Chat-Panel ─────────────────────────────────────────────────────── */
.pps-chat-panel {
    display: none;
    position: fixed;
    /* bottom + right werden per JS gesetzt (_positionPanel) */
    z-index: 999998;
    flex-direction: column;
    width: 390px;
    max-width: calc(100vw - 20px);
    max-height: 520px;
    background: linear-gradient(160deg,
        rgba(8, 16, 38, 0.98) 0%,
        rgba(14, 32, 72, 0.97) 100%);
    border: 1px solid rgba(95, 211, 255, 0.30);
    border-top: 1px solid rgba(95, 211, 255, 0.50);
    border-radius: 20px;
    box-shadow:
        0 16px 60px rgba(0, 0, 0, 0.65),
        0 1px 0 rgba(95, 211, 255, 0.15) inset;
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    overflow: hidden;
}

/* ── Panel-Header ────────────────────────────────────────────────────── */
.pps-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 12px;
    border-bottom: 1px solid rgba(95, 211, 255, 0.14);
    flex-shrink: 0;
    background: rgba(5, 12, 28, 0.5);
}

.pps-chat-hdr-left {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.pps-chat-hdr-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(95, 211, 255, 0.12);
    border: 1.5px solid rgba(95, 211, 255, 0.30);
    flex-shrink: 0;
}

.pps-chat-hdr-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pps-chat-hdr-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.pps-chat-advisor-name {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    font-family: Inter, system-ui, sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pps-chat-advisor-sub {
    font-size: 11px;
    color: rgba(95, 211, 255, 0.75);
    font-family: Inter, system-ui, sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pps-chat-close-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.55);
    font-size: 16px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 120ms ease, color 120ms ease;
}
.pps-chat-close-btn:hover { background: rgba(255, 107, 107, 0.2); color: #FF6B6B; }

/* ── Gesprächsverlauf ────────────────────────────────────────────────── */
.pps-chat-history {
    flex: 1;
    overflow-y: auto;
    padding: 14px 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(95, 211, 255, 0.25) transparent;
}

.pps-chat-message {
    max-width: 88%;
    padding: 10px 13px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.55;
    font-family: Inter, system-ui, sans-serif;
    word-break: break-word;
}

.pps-chat-advisor {
    align-self: flex-start;
    background: rgba(95, 211, 255, 0.10);
    border: 1px solid rgba(95, 211, 255, 0.20);
    color: rgba(220, 242, 255, 0.95);
    border-radius: 4px 14px 14px 14px;
}

/* Lade-Indikator für LLM-Antwort (v2.8.9) */
.pps-chat-loading {
    opacity: 0.6;
    font-style: italic;
    letter-spacing: 2px;
    animation: pps-chat-dots 1.2s infinite;
}
@keyframes pps-chat-dots {
    0%, 100% { opacity: 0.6; }
    50%       { opacity: 1;   }
}

.pps-chat-user {
    align-self: flex-end;
    background: rgba(55, 130, 255, 0.18);
    border: 1px solid rgba(55, 130, 255, 0.30);
    color: rgba(220, 235, 255, 0.95);
    border-radius: 14px 4px 14px 14px;
}

/* ── Schnellfragen / Chips ───────────────────────────────────────────── */
.pps-chat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 14px;
    border-top: 1px solid rgba(95, 211, 255, 0.10);
    border-bottom: 1px solid rgba(95, 211, 255, 0.10);
    background: rgba(5, 12, 28, 0.4);
    flex-shrink: 0;
}

.pps-chat-chip {
    background: rgba(95, 211, 255, 0.08);
    border: 1px solid rgba(95, 211, 255, 0.25);
    border-radius: 20px;
    color: rgba(95, 211, 255, 0.90);
    font-size: 11.5px;
    padding: 5px 11px;
    cursor: pointer;
    font-family: Inter, system-ui, sans-serif;
    transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
    white-space: nowrap;
}

.pps-chat-chip:hover {
    background: rgba(95, 211, 255, 0.18);
    border-color: rgba(95, 211, 255, 0.55);
    color: #5FD3FF;
}

/* Alternativ-Chip (erscheint bei "no"-Score) */
.pps-chat-chip-alt {
    background: rgba(255, 107, 107, 0.08);
    border-color: rgba(255, 107, 107, 0.3);
    color: rgba(255, 150, 130, 0.9);
    font-weight: 700;
}
.pps-chat-chip-alt:hover {
    background: rgba(255, 107, 107, 0.18);
    border-color: rgba(255, 107, 107, 0.55);
    color: #ff9090;
}
.pps-chat-chip-alt:disabled { opacity: 0.6; cursor: default; }

/* ── Eingabe-Zeile ───────────────────────────────────────────────────── */
.pps-chat-input-row {
    display: flex;
    gap: 8px;
    padding: 12px 14px;
    flex-shrink: 0;
    background: rgba(5, 12, 28, 0.5);
}

.pps-chat-input {
    flex: 1;
    background: rgba(95, 211, 255, 0.06);
    border: 1px solid rgba(95, 211, 255, 0.28);
    border-radius: 10px;
    color: #fff;
    font-size: 13px;
    font-family: Inter, system-ui, sans-serif;
    padding: 9px 13px;
    outline: none;
    transition: border-color 150ms ease, background 150ms ease;
}
.pps-chat-input:focus {
    border-color: rgba(95, 211, 255, 0.65);
    background: rgba(95, 211, 255, 0.10);
}
.pps-chat-input::placeholder { color: rgba(255,255,255,0.3); }

.pps-chat-send-btn {
    background: linear-gradient(135deg,
        rgba(95, 211, 255, 0.22) 0%,
        rgba(50, 130, 255, 0.18) 100%);
    border: 1px solid rgba(95, 211, 255, 0.45);
    border-radius: 10px;
    color: #5FD3FF;
    font-size: 17px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 120ms ease, transform 80ms ease;
}
.pps-chat-send-btn:hover  { background: rgba(95, 211, 255, 0.35); transform: translateX(1px); }
.pps-chat-send-btn:active { transform: translateX(0); }

/* ── Mobile ──────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .pps-chat-panel {
        max-height: 70vh;
        border-radius: 16px;
    }
    .pps-chat-header { padding: 12px 13px 10px; }
    .pps-chat-chips { padding: 8px 12px; }
    .pps-chat-input-row { padding: 10px 12px; }
}

/* ── Dog Preview Modal ──────────────────────────────────────────────── */
.pps-dog-preview-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(5,12,26,0.88);
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.pps-preview-inner {
    background: linear-gradient(160deg, rgba(10,18,34,0.98) 0%, rgba(20,40,80,0.97) 100%);
    border: 1px solid rgba(95,211,255,0.28);
    border-radius: 20px;
    max-width: 560px;
    width: 100%;
    overflow: hidden;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0,0,0,0.65);
}
.pps-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(95,211,255,0.15);
}
.pps-preview-title {
    font-size: 14px;
    font-weight: 700;
    color: #5FD3FF;
    font-family: Inter, sans-serif;
}
.pps-preview-close {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 18px;
    cursor: pointer;
    transition: color 150ms ease;
}
.pps-preview-close:hover { color: #FF6B6B; }
.pps-preview-canvas-wrap {
    padding: 16px 16px 0;
}
.pps-preview-canvas {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}
.pps-preview-advisor-row {
    padding: 12px 18px 4px;
}
.pps-preview-advisor-text {
    margin: 0;
    font-size: 12.5px;
    color: rgba(224,244,255,0.88);
    line-height: 1.5;
    font-family: Inter, sans-serif;
}
/* Score-Bereich im Preview-Modal (Intelligence Layer v1.0.0) */
.pps-preview-score-row {
    padding: 8px 18px 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.pps-preview-score-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 2px;
}
.pps-preview-score-badge.pps-badge-yes   { background: rgba(76,218,100,0.15); border: 1px solid rgba(76,218,100,0.4);  color: #4cda64; }
.pps-preview-score-badge.pps-badge-no    { background: rgba(255,80,80,0.12);  border: 1px solid rgba(255,80,80,0.35);  color: #ff7070; }
.pps-preview-score-badge.pps-badge-maybe { background: rgba(255,214,10,0.12); border: 1px solid rgba(255,214,10,0.35); color: #ffd60a; }
.pps-preview-fit-reason {
    font-size: 11px;
    color: rgba(76,218,100,0.85);
    line-height: 1.5;
}
.pps-preview-not-ideal {
    font-size: 11px;
    color: rgba(255,160,80,0.9);
    line-height: 1.5;
}

/* Score-Badge im Chat-Panel-Header */
.pps-chat-score-badge {
    display: inline-block;
    font-size: 9.5px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
    vertical-align: middle;
}
.pps-chat-score-badge.pps-badge-yes   { background: rgba(76,218,100,0.15); color: #4cda64; }
.pps-chat-score-badge.pps-badge-no    { background: rgba(255,80,80,0.12);  color: #ff7070; }
.pps-chat-score-badge.pps-badge-maybe { background: rgba(255,214,10,0.12); color: #ffd60a; }

.pps-preview-disclaimer {
    margin: 6px 18px 16px;
    font-size: 10.5px;
    color: rgba(255,255,255,0.35);
    font-style: italic;
    font-family: Inter, sans-serif;
}

/* ── Body-Lock beim Modal ───────────────────────────────────────────── */
body.pps-modal-open { overflow: hidden; }

/* ── Hundebild-Thumbnails ───────────────────────────────────────────── */
.pps-preview-thumbs {
    display: flex;
    gap: 8px;
    padding: 10px 16px;
    overflow-x: auto;
    border-bottom: 1px solid rgba(95,211,255,0.12);
    background: rgba(5,12,25,0.5);
}
.pps-dog-thumb {
    position: relative;
    width: 54px;
    height: 54px;
    border-radius: 10px;
    border: 2px solid rgba(95,211,255,0.22);
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    background: rgba(10,18,34,0.6);
    transition: border-color 150ms ease, transform 100ms ease;
}
.pps-dog-thumb:hover { border-color: rgba(95,211,255,0.6); transform: scale(1.06); }
.pps-dog-thumb-on   { border-color: #5FD3FF; box-shadow: 0 0 10px rgba(95,211,255,0.45); }
.pps-dog-thumb img  { width: 100%; height: 100%; object-fit: cover; display: block; }
.pps-thumb-del {
    position: absolute;
    top: 2px; right: 2px;
    width: 17px; height: 17px;
    border-radius: 50%;
    background: rgba(255,107,107,0.88);
    border: none;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 150ms;
    padding: 0;
}
.pps-dog-thumb:hover .pps-thumb-del { opacity: 1; }
.pps-thumb-add {
    border-style: dashed;
    border-color: rgba(95,211,255,0.38);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: rgba(95,211,255,0.04);
}
.pps-thumb-plus     { font-size: 22px; color: #5FD3FF; line-height: 1; }
.pps-thumb-add-lbl  { font-size: 7px; color: rgba(95,211,255,0.7); text-align: center; font-family: Inter,sans-serif; line-height: 1.3; }
.pps-thumb-add:hover { border-color: #5FD3FF; background: rgba(95,211,255,0.1); }

/* ── Produkt-Steuerung (Drehen · Zoom · Position) ────────────────────── */
.pps-preview-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px 8px;
    background: rgba(5,12,25,0.55);
    border-top: 1px solid rgba(95,211,255,0.1);
}
.pps-ctrl-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}
.pps-ctrl-label {
    font-size: 10px;
    font-weight: 700;
    color: rgba(95,211,255,0.72);
    font-family: Inter,sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    min-width: 70px;
    flex-shrink: 0;
}
.pps-ctrl-btn {
    background: rgba(95,211,255,0.1);
    border: 1px solid rgba(95,211,255,0.26);
    color: #5FD3FF;
    border-radius: 7px;
    min-width: 32px;
    height: 28px;
    padding: 0 6px;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 120ms, transform 70ms;
    flex-shrink: 0;
    font-family: Inter,sans-serif;
}
.pps-ctrl-btn:hover  { background: rgba(95,211,255,0.22); transform: scale(1.07); }
.pps-ctrl-btn:active { transform: scale(0.93); }
.pps-ctrl-reset {
    background: rgba(255,107,107,0.1);
    border-color: rgba(255,107,107,0.3);
    color: #FF6B6B;
    font-size: 16px;
}
.pps-ctrl-reset:hover { background: rgba(255,107,107,0.24); }
.pps-ctrl-range {
    flex: 1;
    height: 4px;
    accent-color: #5FD3FF;
    cursor: pointer;
    min-width: 50px;
}
.pps-ctrl-num {
    font-size: 11px;
    color: rgba(255,255,255,0.65);
    font-family: monospace;
    min-width: 36px;
    text-align: right;
    flex-shrink: 0;
}
/* Positions-Kreuz */
.pps-ctrl-pos-row { align-items: flex-start; }
.pps-pos-pad {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}
.pps-pos-mid {
    display: flex;
    gap: 3px;
    align-items: center;
}
.pps-pos-btn { min-width: 28px; height: 26px; font-size: 11px; }

/* ── Mobile Anpassung ────────────────────────────────────────────────── */
@media (max-width: 520px) {
    .pps-ctrl-label { min-width: 54px; font-size: 9px; }
    .pps-ctrl-range { min-width: 36px; }
    .pps-preview-controls { padding: 10px 12px 6px; }
}

/* ── Mobile ─────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .pps-chat-panel {
        right: 10px;
        bottom: 130px;
        width: calc(100vw - 20px);
        max-height: 55vh;
    }
    .pps-preview-inner {
        border-radius: 16px;
    }
}
