/* Hero variant (was {% if chat_widget_id == 'hero' %}) */
@media (max-width: 1023px) {
    .pp-chat-shell--hero .pp-user-bub,
    .pp-chat-shell--hero .pp-bot-text:not(.pp-bot-text--streaming),
    .pp-chat-shell--hero .kchat-msg,
    .pp-chat-shell--hero .pp-typing {
        animation: none !important;
    }
    .pp-chat-shell--hero .pp-dot {
        animation: none !important;
        opacity: 0.5;
    }
    .pp-chat-shell--hero .pp-stream-item {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
.pp-chat-shell--hero .pp-kchat-input-zone {
    padding: 0;
}

    /* Geen outer device-frame: bubbels + panels + composer; kolom max ~426px. Typografie weer leesbaar; composer neutraal (geen hero-lime). */
    .pp-chat-shell {
        --pp-bg-deep: transparent;
        --pp-bg-raised: #1a1a1a;
        --pp-bg-card: #1e1e1e;
        --pp-user-bubble: #CCFF00;
        --pp-user-bubble-text: #0d0d0d;
        --pp-neon-yellow: #CCFF00;
        --pp-neon-yellow-mid: #dfff47;
        --pp-neon-glow: rgba(204, 255, 0, 0.12);
        /* Send-knop "ping" stage gebruikte vroeger een emerald-groen — nu lime-neon zodat
           de hele compose→send animatie binnen de KLICBOT-brand blijft. */
        --pp-send-green: var(--pp-neon-yellow);
        --pp-send-green-deep: var(--pp-neon-yellow-mid);
        --pp-send-green-glow: var(--pp-neon-glow);
        --pp-accent: #7d8f4a;
        --pp-accent-mid: #8f9f5c;
        --pp-text: rgba(255, 255, 255, 0.92);
        --pp-text-muted: rgba(255, 255, 255, 0.58);
        --pp-text-dim: rgba(255, 255, 255, 0.4);
        --pp-border: rgba(255, 255, 255, 0.08);
        --pp-row-rule: rgba(255, 255, 255, 0.06);
        --pp-send-ready-bg: var(--pp-neon-yellow);
        --pp-send-ready-icon: #141414;
        /* Zelfde typografie als dashboard (#view-chat): Inter, geen Bitcount/mono */
        --pp-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
        /* Composer: smooth height (spatial ease, transitions.dev-style out-expo) */
        --pp-composer-ease: cubic-bezier(0.32, 0.72, 0, 1);
        --pp-composer-dur: 0.48s;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        outline: none !important;
    }
    .pp-chat-shell.pp-chat-shell {
        width: 100%;
        max-width: min(500px, 100%);
        border-radius: 0;
        overflow: visible;
        display: flex;
        flex-direction: column;
        flex: 1 1 0;
        min-height: 0;
        font-family: var(--pp-font);
    }
    .pp-chat-shell .dash-ai-chat-wrap,
    .pp-chat-shell .dash-ai-chat-inner {
        background: transparent;
    }
    @keyframes pp-msg-in {
        from { opacity: 0; transform: translateY(14px); }
        72% { opacity: 1; transform: translateY(-4px); }
        to { opacity: 1; transform: translateY(0); }
    }
    @keyframes pp-msg-in-r {
        from { opacity: 0; transform: translateY(14px) translateX(8px) scale(0.97); }
        68% { opacity: 1; transform: translateY(-5px) translateX(0) scale(1.015); }
        to { opacity: 1; transform: translateY(0) translateX(0) scale(1); }
    }
    @keyframes pp-dot { 0%,60%,100% { opacity:.35; } 30% { opacity:1; } }
    .pp-chat-shell .pp-user-bub {
        background: var(--pp-user-bubble);
        border: 1px solid rgba(10, 10, 10, 0.14);
        color: var(--pp-user-bubble-text);
        font-size: 0.9375rem;
        font-weight: 400;
        font-family: var(--pp-font);
        /* TL TR BR BL — kleine hoek linksonder (naar midden chat); rechts rond = betere witruimte t.o.v. “Prima!” e.d. */
        padding: 12px 22px 12px 20px;
        border-radius: 16px 16px 16px 4px;
        max-width: 82%;
        box-sizing: border-box;
        line-height: 1.55;
        animation: pp-msg-in-r 0.52s cubic-bezier(0.33, 1.06, 0.32, 1) both;
    }
    .pp-chat-shell .pp-user-bub.pp-user-bub--static { animation:none !important; }
    /* Bot copy = zelfde DOM/CSS als #view-chat (.kchat-msg + bubble-group) */
    .pp-chat-shell .kchat-msg {
        display: flex;
        gap: 14px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        animation: pp-msg-in 0.5s cubic-bezier(0.33, 1.06, 0.32, 1) both;
    }
    .pp-chat-shell .kchat-msg .kchat-av {
        opacity: 1;
    }
    .pp-chat-shell .kchat-bubble-av {
        position: relative;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    .pp-chat-shell .kchat-bubble-av svg {
        width: 20px;
        height: 14px;
        position: relative;
        z-index: 2;
        filter: drop-shadow(0 0 4px rgba(204, 255, 0, 0.5));
    }
    .pp-chat-shell .kchat-bubble-av::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 28px;
        height: 28px;
        background: radial-gradient(circle, rgba(204, 255, 0, 0.18) 0%, rgba(204, 255, 0, 0.04) 50%, transparent 70%);
        border-radius: 50%;
        z-index: 1;
    }
    .pp-chat-shell .kchat-bubble-group {
        display: flex;
        flex-direction: column;
        gap: 4px;
        max-width: calc(100% - 56px);
        min-width: 0;
        flex: 1 1 auto;
    }
    .pp-chat-shell .kchat-ai-text {
        font-size: 0.9375rem;
        font-family: var(--pp-font);
        line-height: 1.75;
        color: rgba(255, 255, 255, 0.92);
        width: 100%;
        max-width: 100%;
        padding: 2px 0;
        letter-spacing: 0.01em;
        word-break: break-word;
    }
    .pp-chat-shell .pp-bot-text {
        font-size: 0.9375rem;
        font-family: var(--pp-font);
        line-height: 1.75;
        color: rgba(255, 255, 255, 0.92);
        animation: pp-msg-in 0.5s cubic-bezier(0.33, 1.06, 0.32, 1) both;
        width: 100%;
        max-width: 100%;
        padding: 2px 0;
        letter-spacing: 0.01em;
        word-break: break-word;
    }
    .pp-chat-shell .pp-bot-text.kchat-ai-text strong,
    .pp-chat-shell .kchat-ai-text strong {
        color: #fff;
        font-weight: 600;
    }
    .pp-chat-shell .kchat-ai-text em {
        color: rgba(255, 255, 255, 0.75);
        font-style: normal;
    }
    .pp-chat-shell .kchat-ai-text a {
        color: rgba(204, 255, 0, 0.85);
        text-decoration: underline;
        text-underline-offset: 2px;
        word-break: break-all;
    }
    .pp-chat-shell .kchat-ai-text a:hover {
        color: var(--pp-neon-yellow);
    }
    /* Desktop chat parity (#view-chat) */
    .pp-chat-shell .kchat-klic-overview {
        margin-top: 10px;
    }
    .pp-chat-shell .kchat-klic-status {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 14px;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.92);
        letter-spacing: -0.02em;
        margin-bottom: 10px;
    }
    .pp-chat-shell .kchat-klic-status .fas {
        font-size: 0.95em;
        color: #8f9f5c;
    }
    .pp-chat-shell .kchat-klic-card {
        background: #1e1e1e;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 12px;
        padding: 2px 0 4px;
        font-size: 12px;
    }
    .pp-chat-shell .kchat-klic-row {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: 16px;
        padding: 11px 16px;
        margin: 0;
        color: rgba(255, 255, 255, 0.58);
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    .pp-chat-shell .kchat-klic-row:last-of-type { border-bottom: none; }
    .pp-chat-shell .kchat-klic-row .lbl {
        color: rgba(255, 255, 255, 0.4);
        font-size: 11px;
        font-weight: 400;
        letter-spacing: 0.02em;
        min-width: 88px;
        flex-shrink: 0;
    }
    .pp-chat-shell .kchat-klic-row .val {
        font-weight: 400;
        color: rgba(255, 255, 255, 0.92);
        text-align: right;
    }
    .pp-chat-shell .kchat-klic-row .val.kchat-klic-val--accent {
        color: rgba(190, 198, 155, 0.92);
    }
    .pp-chat-shell .kchat-klic-submit {
        display: block;
        margin: 12px 12px 8px;
        width: calc(100% - 24px);
        padding: 10px 14px;
        background: #CCFF00;
        color: #141414;
        font-size: 13px;
        font-weight: 600;
        border-radius: 8px;
        text-align: center;
        border: none;
        cursor: default;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    }
    .pp-chat-shell .kchat-klic-submit:disabled {
        opacity: 0.92;
    }
    .pp-chat-shell .kchat-ai-detail {
        margin-top: 8px;
        font-size: 0.9375rem;
        line-height: 1.75;
        color: rgba(255, 255, 255, 0.88);
    }
    .pp-chat-shell .kchat-ai-detail strong {
        color: #fff;
        font-weight: 600;
    }
    .pp-chat-shell .kchat-suggestions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 12px;
        margin-bottom: 4px;
    }
    .pp-chat-shell .kchat-sugg {
        font-size: 0.8125rem;
        padding: 8px 16px;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        background: rgba(255, 255, 255, 0.04);
        color: rgba(255, 255, 255, 0.88);
        font-weight: 500;
        cursor: default;
        white-space: nowrap;
        font-family: var(--pp-font);
    }
    .pp-chat-shell .kchat-action-card {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        margin-top: 10px;
        padding: 12px 14px;
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(255, 255, 255, 0.04);
        font-size: 0.875rem;
        color: rgba(255, 255, 255, 0.9);
    }
    .pp-chat-shell .kchat-action-card.success {
        border-color: rgba(204, 255, 0, 0.25);
    }
    .pp-chat-shell .kchat-action-card.error {
        border-color: rgba(239, 68, 68, 0.35);
    }
    .pp-chat-shell .kchat-action-icon {
        color: var(--pp-neon-yellow);
        flex-shrink: 0;
        margin-top: 2px;
    }
    .pp-chat-shell .kchat-action-msg {
        line-height: 1.45;
    }
    .pp-chat-shell .kchat-inline-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 14px;
        border-radius: 10px;
        border: 1px solid rgba(204, 255, 0, 0.4);
        background: rgba(204, 255, 0, 0.07);
        color: var(--pp-neon-yellow);
        font-size: 0.8125rem;
        font-weight: 600;
        cursor: default;
        margin: 4px 0;
        text-decoration: none;
        font-family: var(--pp-font);
    }
    .pp-chat-shell .kchat-pay-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin: 8px 0 4px;
        padding: 11px 20px;
        border-radius: 12px;
        border: 1px solid rgba(204, 255, 0, 0.55);
        background: linear-gradient(180deg, rgba(204, 255, 0, 0.18) 0%, rgba(204, 255, 0, 0.08) 100%);
        color: var(--pp-neon-yellow);
        font-size: 0.875rem;
        font-weight: 700;
        letter-spacing: 0.01em;
        text-decoration: none;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
        font-family: var(--pp-font);
    }
    .pp-chat-shell .pp-bot-text.pp-bot-text--streaming {
        animation: none;
    }
    .pp-chat-shell .pp-bot-text.pp-bot-text--static {
        animation: none !important;
    }
    /* Stream reveal: per blok (regel → hele kaart → detail), zoals hero-video: whole card fadet na status, geen rij-voor-rij. GSAP-power2.out ~0.42s */
    .pp-chat-shell .pp-stream-item {
        opacity: 0;
        transform: translateY(12px);
        transition:
            opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
            transform 0.55s cubic-bezier(0.34, 1.2, 0.54, 1);
    }
    .pp-chat-shell .pp-stream-item.pp-stream-visible {
        opacity: 1;
        transform: translateY(0);
    }
    @media (prefers-reduced-motion: reduce) {
        .pp-chat-shell .pp-stream-item {
            opacity: 1;
            transform: none;
            transition: none;
        }
        .pp-chat-shell .pp-user-bub,
        .pp-chat-shell .pp-bot-text:not(.pp-bot-text--streaming),
        .pp-chat-shell .kchat-msg,
        .pp-chat-shell .pp-typing {
            animation: none !important;
        }
        .pp-chat-shell .pp-kchat-row.pp-kchat-row--exit {
            transform: none;
            transition: opacity 0.22s ease;
        }
    }

    .pp-chat-shell .pp-typing {
        display: flex;
        align-items: center;
        gap: 5px;
        padding: 12px 16px;
        background: var(--pp-bg-card);
        border: 1px solid var(--pp-border);
        border-radius: 14px 14px 14px 6px;
        width: fit-content;
        animation: pp-msg-in 0.48s cubic-bezier(0.33, 1.06, 0.32, 1) both;
    }
    .pp-chat-shell .pp-dot {
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.35);
        animation: pp-dot 1.4s ease-in-out infinite;
    }
    .pp-chat-shell .pp-klic-card {
        background: var(--pp-bg-card);
        border: 1px solid var(--pp-border);
        border-radius: 12px;
        padding: 2px 0 4px;
        margin-top: 10px;
        font-size: 12px;
    }
    .pp-chat-shell .pp-klic-card .row {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: 16px;
        padding: 11px 16px;
        margin: 0;
        color: var(--pp-text-muted);
        border-bottom: 1px solid var(--pp-row-rule);
    }
    .pp-chat-shell .pp-klic-card .row:last-of-type { border-bottom: none; }
    .pp-chat-shell .pp-klic-card .row .lbl {
        color: var(--pp-text-dim);
        font-size: 11px;
        font-weight: 400;
        letter-spacing: 0.02em;
        min-width: 88px;
        flex-shrink: 0;
    }
    .pp-chat-shell .pp-klic-card .val { font-weight: 400; color: var(--pp-text); text-align: right; }
    .pp-chat-shell .pp-klic-card .submit-btn {
        margin: 12px 12px 8px;
        width: calc(100% - 24px);
        padding: 10px 14px;
        background: var(--pp-neon-yellow);
        color: #141414;
        font-size: 13px;
        font-weight: 600;
        border-radius: 8px;
        text-align: center;
        transition: opacity 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
        border: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    }
    .pp-chat-shell .pp-klic-card .submit-btn:hover {
        background: var(--pp-neon-yellow-mid);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    }
    .pp-chat-shell .pp-list-item {
        padding: 14px 16px;
        background: transparent;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid var(--pp-row-rule);
        margin-bottom: 0;
    }
    .pp-chat-shell .pp-stack .pp-list-item:first-child {
        padding-top: 2px;
    }
    .pp-chat-shell .pp-stack .pp-list-item:last-child {
        border-bottom: none;
        padding-bottom: 2px;
    }
    .pp-chat-shell .pp-list-item::before {
        display: none;
    }
    .pp-chat-shell .pp-list-item.urgent {
        background: rgba(255, 255, 255, 0.025);
        border-bottom-color: var(--pp-row-rule);
    }
    .pp-chat-shell .pp-list-item .li-name {
        font-size: 12.5px;
        font-weight: 600;
        color: var(--pp-text);
        letter-spacing: -0.015em;
        line-height: 1.35;
    }
    .pp-chat-shell .pp-list-item .li-sub {
        font-size: 11.5px;
        color: var(--pp-text-dim);
        margin-top: 5px;
        line-height: 1.45;
        letter-spacing: 0.01em;
    }
    .pp-chat-shell .pp-confirm {
        font-size: 14px;
        font-weight: 600;
        color: var(--pp-text);
        letter-spacing: -0.02em;
        font-family: var(--pp-font);
    }
    .pp-chat-shell .pp-confirm .fas,
    .pp-chat-shell .pp-bot-text .pp-confirm-line .fas {
        margin-right: 6px;
        font-size: 0.95em;
        color: var(--pp-accent-mid);
    }
    .pp-chat-shell .pp-confirm-sub { font-size: 11px; color: rgba(255, 255, 255, 0.38); margin-top: 3px; }
    .pp-chat-shell .pp-bot-headline {
        font-size: 13px;
        font-weight: 600;
        color: var(--pp-text);
        line-height: 1.45;
        margin-bottom: 10px;
        letter-spacing: -0.015em;
        font-family: var(--pp-font);
    }
    .pp-chat-shell .pp-bot-after-type { display: block; margin-top: 10px; }
    .pp-chat-shell .pp-bot-map-preview {
        display: block;
        width: 100%;
        max-width: 100%;
        margin-top: 12px;
        border-radius: 14px;
        overflow: hidden;
        border: 1px solid rgba(204, 255, 0, 0.22);
        background: #141414;
        box-shadow:
            0 10px 28px rgba(0, 0, 0, 0.45),
            0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    }
    .pp-chat-shell .pp-bot-map-preview--dwg {
        margin-bottom: 4px;
    }
    .pp-chat-shell .pp-bot-map-preview__svg {
        display: block;
        width: 100%;
        height: auto;
        min-height: 200px;
        vertical-align: middle;
        aspect-ratio: 400 / 248;
    }
    .pp-chat-shell .pp-bot-map-preview__legend {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 12px;
        padding: 8px 10px 10px;
        font-size: 9.5px;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.55);
        letter-spacing: 0.02em;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        background: rgba(0, 0, 0, 0.22);
    }
    .pp-chat-shell .pp-bot-map-legend-item {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }
    .pp-chat-shell .pp-bot-map-dot {
        display: inline-block;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        flex-shrink: 0;
    }
    .pp-chat-shell .pp-bot-map-dot--bore {
        background: #FF5F1F;
        box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.85);
    }
    .pp-chat-shell .pp-bot-map-dot--graaf {
        background: rgba(204, 255, 0, 0.35);
        border: 1.5px solid rgba(204, 255, 0, 0.75);
        border-radius: 2px;
        width: 10px;
        height: 7px;
    }
    .pp-chat-shell .pp-bot-detail {
        margin-top: 0;
        padding: 10px 14px 12px;
        font-size: 13px;
        font-weight: 400;
        line-height: 1.5;
        font-family: var(--pp-font);
        color: var(--pp-text-muted);
        letter-spacing: 0;
        background: var(--pp-bg-raised);
        border: 1px solid var(--pp-border);
        border-radius: 12px;
    }
    .pp-chat-shell .pp-detail-row {
        padding: 4px 0 5px;
        border-bottom: 1px solid var(--pp-row-rule);
        font-size: 13px;
        line-height: 1.5;
        color: var(--pp-text-muted);
    }
    .pp-chat-shell .pp-detail-row.pp-detail-row--step {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        padding: 5px 0 5px;
    }
    .pp-chat-shell .pp-detail-row--step .pp-detail-check {
        flex: 0 0 17px;
        width: 17px;
        margin-top: 2px;
        font-size: 11px;
        line-height: 1;
        color: var(--pp-accent-mid);
        text-align: center;
    }
    .pp-chat-shell .pp-detail-row--step.pp-detail-row--done .pp-detail-check {
        color: var(--pp-neon-yellow);
    }
    .pp-chat-shell .pp-detail-row--step .pp-detail-copy {
        flex: 1;
        min-width: 0;
    }
    .pp-chat-shell .pp-detail-row:first-child {
        padding-top: 0;
    }
    .pp-chat-shell .pp-detail-row:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    .pp-chat-shell .pp-bot-detail strong {
        color: var(--pp-text);
        font-weight: 600;
        letter-spacing: -0.01em;
    }
    .pp-chat-shell .pp-bot-detail > .pp-stack {
        margin: 4px 0 0;
    }
    .pp-chat-shell .pp-bot-detail .pp-list-item .li-sub {
        color: var(--pp-text-dim) !important;
    }
    .pp-chat-shell .pp-stack {
        display: flex;
        flex-direction: column;
        gap: 0;
        margin-top: 0;
    }
    .pp-chat-shell .pp-suggest-row {
        display: flex;
        flex-wrap: wrap;
        gap: 7px;
        margin-top: 14px;
        margin-bottom: 20px;
    }
    .pp-chat-shell .pp-suggest-chip {
        display: inline-flex;
        align-items: center;
        padding: 4px 10px;
        font-size: 10px;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.55);
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 5px;
        letter-spacing: 0.02em;
        cursor: default;
    }
    .pp-chat-shell .pp-suggest-chip:hover {
        color: rgba(255, 255, 255, 0.78);
        border-color: rgba(255, 255, 255, 0.32);
    }

    .pp-chat-shell .dash-ai-chat-inner {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
    }
    .pp-chat-shell .pp-kchat-scroll {
        flex: 1 1 0;
        min-height: 280px;
        height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        gap: 10px;
        padding: 24px 14px 26px;
        box-sizing: border-box;
        background: transparent;
        /* Soft fade onder de topbar i.p.v. harde knip; content fade-t naar transparant aan de bovenkant */
        -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,0.05) 8px, rgba(0,0,0,0.6) 28px, #000 56px, #000 100%);
                mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,0.05) 8px, rgba(0,0,0,0.6) 28px, #000 56px, #000 100%);
        -webkit-mask-repeat: no-repeat;
                mask-repeat: no-repeat;
        -webkit-mask-size: 100% 100%;
                mask-size: 100% 100%;
    }
    .pp-chat-shell .pp-kchat-row.pp-kchat-row--exit {
        pointer-events: none;
        opacity: 0;
        transform: translateY(-16px);
        transition:
            opacity 0.58s cubic-bezier(0.25, 0.85, 0.35, 1),
            transform 0.62s cubic-bezier(0.34, 1.15, 0.54, 1);
    }
    .pp-chat-shell .pp-kchat-input-zone {
        flex-shrink: 0;
        padding: 0;
        pointer-events: none;
        background: transparent;
    }
    .pp-chat-shell .pp-kchat-input-wrap { max-width: 100%; margin: 0 auto; width: 100%; }
    /* Bijlage-chip binnen de chatbar (WhatsApp-stijl: chip boven tekstregel, zelfde pill). */
    .pp-chat-shell .pp-kchat-staged-tray {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin: 0;
        padding: 2px 6px 10px 8px;
        width: 100%;
        box-sizing: border-box;
    }
    .pp-chat-shell .pp-kchat-staged-tray:empty { display: none; }
    .pp-chat-shell .pp-kchat-input-box:has(.pp-kchat-staged-tray:not(:empty)) {
        padding-top: 10px;
    }
    .pp-chat-shell .pp-kchat-input-box:has(.pp-kchat-staged-tray:not(:empty)) .pp-kchat-staged-tray {
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        margin-bottom: 2px;
        padding-bottom: 10px;
    }
    .pp-chat-shell .pp-kchat-staged-chip {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 6px 8px 6px 8px;
        background: rgba(44, 44, 44, 0.96);
        border: 1px solid rgba(255, 255, 255, 0.09);
        border-radius: 10px;
        font-size: 11.5px;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.86);
        max-width: 220px;
        animation: pp-staged-in 260ms cubic-bezier(0.32, 0.72, 0, 1);
        transform-origin: 50% 100%;
    }
    .pp-chat-shell .pp-kchat-staged-chip--leaving {
        animation: pp-staged-out 300ms cubic-bezier(0.5, 0, 0.7, 0.4) forwards;
    }
    .pp-chat-shell .pp-kchat-staged-thumb {
        width: 28px;
        height: 28px;
        border-radius: 6px;
        overflow: hidden;
        flex: 0 0 auto;
    }
    .pp-chat-shell .pp-kchat-staged-thumb img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .pp-chat-shell .pp-kchat-staged-icon {
        width: 24px;
        height: 24px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: rgba(190, 198, 155, 0.95);
        font-size: 13px;
        flex-shrink: 0;
    }
    .pp-chat-shell .pp-kchat-staged-name {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        min-width: 0;
        max-width: 150px;
    }
    .pp-chat-shell .pp-kchat-staged-x {
        margin-left: 2px;
        padding: 0 2px;
        background: transparent;
        border: none;
        color: rgba(255, 255, 255, 0.4);
        font-size: 11px;
        line-height: 1;
        flex-shrink: 0;
    }
    @keyframes pp-staged-in {
        from { opacity: 0; transform: translateY(8px) scale(0.96); }
        to   { opacity: 1; transform: translateY(0) scale(1); }
    }
    @keyframes pp-staged-out {
        from { opacity: 1; transform: translateY(0) scale(1); }
        to   { opacity: 0; transform: translateY(-12px) scale(0.94); }
    }
    @media (prefers-reduced-motion: reduce) {
        .pp-chat-shell .pp-kchat-staged-chip,
        .pp-chat-shell .pp-kchat-staged-chip--leaving {
            animation: none;
        }
    }
    /* Hoogte in lijn met hero-CTA (~50px border-box); visueel oude chat-composer (neutrale rand, geen lime-glow). */
    .pp-chat-shell .pp-kchat-input-box {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--pp-bg-card);
        border: 1px solid var(--pp-border);
        border-radius: 22px;
        padding: 8px 10px 8px 12px;
        box-sizing: border-box;
        min-height: 50px;
        transition:
            border-color var(--pp-composer-dur) var(--pp-composer-ease),
            background var(--pp-composer-dur) var(--pp-composer-ease),
            padding var(--pp-composer-dur) var(--pp-composer-ease);
    }
    .pp-chat-shell .pp-kchat-composer-row {
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 34px;
        width: 100%;
        box-sizing: border-box;
        padding-right: 2px;
    }
    .pp-chat-shell .pp-kchat-input-box:focus-within {
        border-color: rgba(255, 255, 255, 0.14);
        background: var(--pp-bg-raised);
    }
    .pp-chat-shell .pp-kchat-attach {
        width: 34px;
        height: 34px;
        border: none;
        border-radius: 10px;
        background: transparent;
        color: rgba(255, 255, 255, 0.34);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        padding: 0;
        align-self: center;
        margin-bottom: 0;
    }
    .pp-chat-shell .pp-kchat-textarea {
        flex: 1;
        min-width: 0;
        background: transparent;
        border: none;
        outline: none;
        color: var(--pp-text);
        font-size: 0.9375rem;
        font-weight: 400;
        letter-spacing: 0.01em;
        font-family: inherit;
        line-height: 1.35;
        resize: none;
        max-height: 220px;
        min-height: 0;
        overflow-y: auto;
        padding: 0;
    }
    .pp-chat-shell .pp-kchat-textarea::-webkit-scrollbar { display: none; }
    .pp-chat-shell .pp-kchat-textarea::placeholder {
        color: rgba(255, 255, 255, 0.28);
        font-weight: 400;
    }
    @keyframes pp-send-green-pulse {
        0%, 100% {
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
        }
        50% {
            box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
        }
    }
    .pp-chat-shell .pp-kchat-send {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        border: none;
        cursor: default;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        align-self: center;
        margin: 0 2px 0 0;
        transition: background 0.22s var(--pp-composer-ease), color 0.22s var(--pp-composer-ease), box-shadow 0.22s var(--pp-composer-ease);
        background: rgba(255, 255, 255, 0.06);
        color: rgba(255, 255, 255, 0.28);
    }
    .pp-chat-shell .pp-kchat-send.pp-kchat-send--composing {
        background: rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.5);
    }
    .pp-chat-shell .pp-kchat-send.pp-kchat-send--green-ping {
        background: var(--pp-send-green);
        color: var(--pp-send-ready-icon);
        animation: pp-send-green-pulse 0.3s cubic-bezier(0.32, 0.72, 0, 1) 1;
    }
    .pp-chat-shell .pp-kchat-send.pp-kchat-send--ready {
        background: var(--pp-send-ready-bg);
        color: var(--pp-send-ready-icon);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    }
    @media (prefers-reduced-motion: reduce) {
        .pp-chat-shell .pp-kchat-send.pp-kchat-send--green-ping {
            animation: none;
        }
    }
    .pp-chat-shell .pp-kchat-send-icon { font-size: 15px; line-height: 1; display: block; }

    .pp-chat-shell .dash-ai-chat-wrap {
        display: flex;
        flex-direction: column;
        flex: 1 1 0;
        min-height: 0;
    }
    .pp-chat-shell.dash-chat-frame {
        box-shadow: none;
        min-height: 624px;
        border: none;
    }
    @media (max-width: 1023px) {
        .pp-chat-shell.dash-chat-frame {
            min-height: 0;
        }
        .pp-chat-shell .pp-kchat-scroll {
            min-height: 128px;
        }
    }
    .pp-chat-shell .pp-confirm-line { display: inline-flex; align-items: center; }
    .pp-chat-shell .pp-user-stack {
        max-width: 82%;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
    }
    .pp-chat-shell .pp-user-file {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 8px 12px;
        font-size: 11.5px;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.88);
        background: rgba(44, 44, 44, 0.96);
        border: 1px solid rgba(255, 255, 255, 0.09);
        border-radius: 12px 12px 4px 12px;
        max-width: 100%;
    }
    .pp-chat-shell .pp-user-file .fas {
        color: rgba(190, 198, 155, 0.95);
        font-size: 11px;
        flex-shrink: 0;
    }
    .pp-chat-shell .pp-user-file span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        min-width: 0;
    }
    .pp-chat-shell .pp-user-attach {
        border-radius: 12px 12px 4px 12px;
        overflow: hidden;
        border: 1px solid var(--pp-border);
        max-width: 192px;
    }
    .pp-chat-shell .pp-user-attach img {
        display: block;
        width: 100%;
        height: auto;
        vertical-align: middle;
    }
