.spip,.spip *{box-sizing:border-box}
.spip{--spip-rood:#E02B20;--spip-ink:#1f2933;font-family:Inter,system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;color:var(--spip-ink);line-height:1.45}
.spip-launch{position:fixed;right:22px;bottom:22px;display:flex;align-items:flex-end;gap:10px;z-index:99990}
.spip-bubbel{background:#fff;border-radius:16px 16px 4px 16px;padding:10px 14px;font-size:14px;box-shadow:0 10px 30px rgba(27,39,53,.14);max-width:220px;transition:opacity .3s}
.spip-knop{width:70px;height:70px;border-radius:50%;border:0;cursor:pointer;background:transparent;position:relative;padding:0;overflow:visible;transition:transform .2s}
.spip-knop:before{content:"";position:absolute;inset:0;border-radius:50%;background:#f4e9dc;box-shadow:0 12px 30px rgba(27,39,53,.25),inset 0 0 0 3px #fff}
.spip-knop:hover{transform:translateY(-2px)}
.spip-av{position:absolute;left:-18px;width:106px;bottom:0;height:110px;clip-path:path('M0 0 H106 V75 H88 A35 35 0 0 1 18 75 H0 Z');pointer-events:none}
.spip-av img{position:absolute;width:100px;left:3px;top:22px;max-width:none;height:auto;transform-origin:50% 100%;transition:transform .25s cubic-bezier(.3,1.4,.5,1)}
.spip-knop:hover .spip-av img{position:absolute;width:100px;left:3px;top:22px;max-width:none;height:auto;transform-origin:50% 100%;transition:transform .25s cubic-bezier(.3,1.4,.5,1)}
.spip-knop .spip-dot{z-index:2;position:absolute;right:5px;bottom:7px;width:15px;height:15px;border-radius:50%;background:#22c55e;border:3px solid #fff}
.spip-paneel{position:fixed;right:22px;bottom:104px;width:380px;max-width:calc(100vw - 24px);height:600px;max-height:calc(100vh - 130px);background:#fff;border-radius:24px;box-shadow:0 24px 60px rgba(27,39,53,.25);display:flex;flex-direction:column;overflow:hidden;opacity:0;pointer-events:none;transform:translateY(16px);transition:opacity .25s,transform .25s;z-index:99991}
.spip-paneel.open{opacity:1;pointer-events:auto;transform:none}
.spip-kop{position:relative;background:linear-gradient(180deg,#fbf6ee,#f3e8d9);height:236px;flex:none;overflow:hidden}
.spip-naam{position:absolute;left:18px;top:16px}.spip-naam b{font-size:18px;display:block}.spip-naam span{font-size:12.5px;color:#6b7280}
.spip-status{position:absolute;left:16px;top:70px;font-size:12px;background:#fff;border-radius:999px;padding:5px 10px;color:#166534;font-weight:600}
.spip-status:before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:#22c55e;margin-right:6px}
.spip-sluit{position:absolute;right:14px;top:14px;z-index:2;border:0;background:#fff;border-radius:50%;width:30px;height:30px;cursor:pointer;font-size:15px;line-height:30px;padding:0;color:var(--spip-ink)}
.spip-podium{position:absolute;right:52px;bottom:-4px;width:218px;aspect-ratio:1/1}
.spip-fig{position:absolute;inset:0;opacity:0;transition:opacity .25s}
.spip-fig.on{opacity:1}.spip-fig.bot{left:12%;right:-12%}
.spip-fig>div{position:absolute;inset:0}
.spip-fig img{position:absolute;display:block;pointer-events:none;user-select:none;max-width:none;height:auto}
.spip-k{opacity:0;transition:opacity .08s linear}.spip-k.on{opacity:1}
.spip-staart{transform-origin:78.9% 36.0%;animation:spip-kwispel 1.2s ease-in-out infinite}
.spip-romp{transform-origin:50% 96%;animation:spip-adem 3.4s ease-in-out infinite}
.spip-vrolijk .spip-staart{animation-duration:.34s}.spip-denkt .spip-staart{animation-duration:2.6s}
.spip-fig.hup{animation:spip-hup .5s cubic-bezier(.3,.7,.4,1) 2}
@keyframes spip-kwispel{0%,100%{transform:rotate(-4deg)}50%{transform:rotate(4deg)}}
@keyframes spip-adem{0%,100%{transform:scale(1,1)}50%{transform:scale(1.004,1.01)}}
@keyframes spip-hup{0%,100%{transform:translateY(0)}40%{transform:translateY(-6%)}}
.spip-log{flex:1;overflow:auto;padding:16px;display:flex;flex-direction:column;gap:10px}
.spip-m{max-width:84%;padding:10px 13px;border-radius:16px;font-size:14.5px;line-height:1.45;word-wrap:break-word}
.spip-m.pip{background:#f4f1ec;border-bottom-left-radius:4px}.spip-m.ik{background:var(--spip-ink);color:#fff;align-self:flex-end;border-bottom-right-radius:4px}
.spip-m a{color:var(--spip-rood);font-weight:600}
.spip-typ span{display:inline-block;width:7px;height:7px;border-radius:50%;background:#9ca3af;margin-right:4px;animation:spip-dot 1s infinite}
.spip-typ span:nth-child(2){animation-delay:.15s}.spip-typ span:nth-child(3){animation-delay:.3s}
@keyframes spip-dot{0%,100%{opacity:.3}50%{opacity:1}}
.spip-chips{display:flex;flex-wrap:wrap;gap:6px;padding:0 16px 10px}
.spip-chips button{border:1px solid #e5e7eb;background:#fff;border-radius:999px;padding:7px 11px;font-size:13px;cursor:pointer;color:var(--spip-ink);font-family:inherit}
.spip-chips button:hover{border-color:var(--spip-rood);color:var(--spip-rood)}
.spip-form{display:flex;gap:8px;padding:12px;border-top:1px solid #f0f0f0;margin:0}
.spip-form input{flex:1;border:1px solid #e5e7eb;border-radius:12px;padding:11px 12px;font:inherit;font-size:15px;min-width:0;background:#fff;color:var(--spip-ink)}
.spip-form button{border:0;background:var(--spip-rood);color:#fff;border-radius:12px;padding:0 16px;font-weight:700;cursor:pointer;font-family:inherit}
.spip-voet{font-size:11px;color:#9ca3af;text-align:center;padding:0 12px 10px}
.spip-beheer{font-size:11px;background:#fef3c7;color:#92400e;text-align:center;padding:4px}
@media (max-width:520px){.spip-paneel{right:12px;bottom:96px;height:calc(100vh - 120px)}.spip-launch{right:14px;bottom:14px}.spip-bubbel{display:none}}
@media (prefers-reduced-motion:reduce){.spip-staart,.spip-romp,.spip-fig.hup{animation:none!important}}
.spip-duim{margin-top:6px;display:flex;gap:4px}.spip-duim button{border:0;background:transparent;cursor:pointer;font-size:14px;padding:2px 4px;opacity:.45;transition:opacity .2s}.spip-duim button:hover{opacity:1}.spip-duim span{font-size:12px;color:#6b7280}
.spip-bubbel[style*="opacity: 0"]{pointer-events:none}.spip-m.spip-tip{background:#fff6ec;border:1px dashed #f1c9a5}
.spip-melding{margin:10px 16px 0;padding:9px 12px;border-radius:12px;background:#fff4e5;color:#8a4b00;font-size:13.5px;line-height:1.4;border:1px solid #ffd8a8}
.spip.spip-storing .spip-dot{background:#f59e0b!important}
/* Meer leesruimte: groter paneel, compacte kop zodra er gepraat wordt, knop voor extra groot */
.spip-paneel{width:400px;height:min(680px,calc(100vh - 130px));transition:opacity .25s,transform .25s,width .3s,height .3s}
.spip-kop{transition:height .35s ease}
.spip-podium{transition:width .35s ease,right .35s ease,bottom .35s ease}
.spip-groot{position:absolute;right:50px;top:14px;z-index:2;border:0;background:#fff;border-radius:50%;width:30px;height:30px;cursor:pointer;font-size:15px;line-height:30px;padding:0;color:var(--spip-ink)}
.spip-paneel.spip-gesprek .spip-kop{height:128px}
.spip-paneel.spip-gesprek .spip-podium{width:128px;right:96px;bottom:-2px}
.spip-paneel.spip-gesprek .spip-chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding-bottom:8px}
.spip-paneel.spip-gesprek .spip-chips::-webkit-scrollbar{display:none}
.spip-paneel.spip-gesprek .spip-chips button{flex:none}
.spip-paneel.spip-gesprek .spip-voet{display:none}
.spip-paneel.spip-gesprek .spip-m{max-width:90%}
.spip-paneel.spip-groot-aan{width:min(600px,calc(100vw - 44px));height:calc(100vh - 130px)}
.spip-paneel.spip-groot-aan .spip-m{font-size:15.5px}
@media (max-width:520px){.spip-paneel{width:auto;left:12px;height:calc(100vh - 120px)}.spip-groot{display:none}.spip-paneel.spip-gesprek .spip-kop{height:104px}.spip-paneel.spip-gesprek .spip-podium{width:108px;right:58px}}
/* Losse tekeningen: passend en onderaan in hetzelfde vlak, niets afgesneden of uitgerekt */
.spip-fig.los img.fit{left:0;top:0;width:100%;height:100%;object-fit:contain;object-position:center bottom}
@media (prefers-reduced-motion:reduce){.spip-fig{transition:none}}
.spip-fig.los{top:5%}.spip-paneel.spip-gesprek .spip-fig.los{top:7%}
