.pcb-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.25);z-index:99998}
.pcb-modal{position:fixed;right:16px;bottom:16px;width:420px;max-width:95vw;height:75vh;background:#fff;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,.2);display:flex;flex-direction:column;z-index:99999}
.pcb-head{padding:12px 14px;border-bottom:1px solid #eee;display:flex;justify-content:space-between;align-items:center;font-weight:600}
.pcb-body{flex:1;overflow:auto;padding:12px;background:#fafafa}
.pcb-foot{padding:10px;border-top:1px solid #eee;display:flex;gap:8px}
.pcb-input{flex:1;min-height:44px;border:1px solid #ddd;border-radius:10px;padding:8px;resize:vertical}
.pcb-send{border:none;background:#2e7d32;color:#fff;padding:10px 14px;border-radius:10px;cursor:pointer}
.pcb-msg{margin:8px 0;padding:8px 10px;border-radius:10px;display:inline-block}
.pcb-msg.user{background:#e8f0fe;border-radius:10px 10px 2px 10px}
.pcb-msg.assistant{background:#eaf7ea;border-radius:10px 10px 10px 2px}
.pcb-title{font-size:14px}
.pcb-close{border:none;background:transparent;font-size:20px;cursor:pointer}

/* UX poboljšanja */
.pcb-foot{align-items:flex-start}
.pcb-input{line-height:1.35}
.pcb-file{display:flex;gap:8px;align-items:center}
.pcb-file label{border:1px dashed #bbb;border-radius:10px;padding:8px 10px;background:#fff}
.pcb-thumb{max-width:64px;max-height:64px;border-radius:8px;border:1px solid #ddd}
.pcb-remove{border:none;background:#eee;padding:6px 10px;border-radius:8px;cursor:pointer}
.pcb-send[disabled]{opacity:.6;cursor:not-allowed}

/* Čišći UI: textarea gore, kontrole dolje; sakrij native file input */
.pcb-foot{display:flex;flex-direction:column;gap:8px;align-items:stretch}
.pcb-controls{display:flex;justify-content:space-between;align-items:center;gap:8px}
.pcb-input{min-height:80px;font-size:14px;padding:10px;border-radius:12px;border:1px solid #d6d6d6;background:#fff}
.pcb-file input[type=file]{display:none !important}
.pcb-file label{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border:1px dashed #bbb;border-radius:12px;background:#fff}
.pcb-send{padding:10px 16px;border-radius:12px}
.pcb-thumb{max-width:64px;max-height:64px;margin-left:6px}

/* Kontekst izbornik */
.pcb-context select {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
}
